public class OrderService extends Object
| Constructor and Description |
|---|
OrderService() |
| Modifier and Type | Method and Description |
|---|---|
void |
randomlyThrowRuntimeException(String name)
This method throws a runtime exception 2 out of 3 times.
|
void |
validateOrderDate(String date)
Validate the order date - orders should only be place from Monday to Saturday.
|
public void validateOrderDate(@XPath(value="/order:order/order:date",namespaces=@NamespacePrefix(prefix="order",uri="http://fabric8.com/examples/order/v7"))
String date)
throws OrderValidationException
date - the order dateOrderValidationException - when the order date is a Sundaypublic void randomlyThrowRuntimeException(@Header(value="CamelFileName")
String name)
name - the file nameCopyright © 2011–2014 Red Hat. All rights reserved.