public abstract class ServiceCallExpressionSupport extends ExpressionAdapter
ServiceCall EIP
components.
Below are some examples how to call a service and what Camel endpoint URI is constructed based on the input:
serviceCall("myService") -> http://hostname:port serviceCall("myService/foo") -> http://hostname:port/foo serviceCall("http:myService/foo") -> http:hostname:port/foo serviceCall("myService", "http:myService.host:myService.port/foo") -> http:hostname:port/foo serviceCall("myService", "netty4:tcp:myService?connectTimeout=1000") -> netty:tcp:hostname:port?connectTimeout=1000
Constructor and Description |
---|
ServiceCallExpressionSupport(String name,
String scheme,
String contextPath,
String uri) |
Modifier and Type | Method and Description |
---|---|
protected static String |
buildCamelEndpointUri(String ip,
int port,
String name,
String uri,
String contextPath,
String scheme) |
Object |
evaluate(Exchange exchange) |
abstract String |
getIp(Exchange exchange) |
abstract int |
getPort(Exchange exchange) |
assertionFailureMessage, evaluate
assertMatches, matches
public ServiceCallExpressionSupport(String name, String scheme, String contextPath, String uri)
public Object evaluate(Exchange exchange)
evaluate
in class ExpressionSupport
Apache Camel