public class DefaultServiceCallExpression extends ServiceCallExpressionSupport
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") -> http4://hostname:port
serviceCall("myService/foo") -> http4://hostname:port/foo
serviceCall("http4:myService/foo") -> http4:hostname:port/foo
serviceCall("myService", "http4:myService.host:myService.port/foo") -> http4:hostname:port/foo
serviceCall("myService", "netty4:tcp:myService?connectTimeout=1000") -> netty:tcp:hostname:port?connectTimeout=1000
| Constructor and Description |
|---|
DefaultServiceCallExpression() |
DefaultServiceCallExpression(String hostHeader,
String portHeader) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildCamelEndpointUri(String name,
String host,
Integer port,
String uri,
String contextPath,
String scheme) |
protected String |
doBuildCamelEndpointUri(String host,
Integer port,
String contextPath,
String scheme) |
evaluate, getHostHeader, getPortHeader, setHostHeader, setPortHeaderassertionFailureMessage, evaluateassertMatches, matchespublic DefaultServiceCallExpression()
public DefaultServiceCallExpression(String hostHeader, String portHeader)
protected String buildCamelEndpointUri(String name, String host, Integer port, String uri, String contextPath, String scheme)
buildCamelEndpointUri in class ServiceCallExpressionSupportApache Camel