Package org.apache.camel.impl.cloud
Class DefaultServiceCallExpression
- java.lang.Object
-
- org.apache.camel.support.ExpressionSupport
-
- org.apache.camel.support.ExpressionAdapter
-
- org.apache.camel.impl.cloud.ServiceCallExpressionSupport
-
- org.apache.camel.impl.cloud.DefaultServiceCallExpression
-
- All Implemented Interfaces:
org.apache.camel.Expression
,org.apache.camel.Predicate
public class DefaultServiceCallExpression extends ServiceCallExpressionSupport
Support class for custom implementations of 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", "netty:tcp:myService?connectTimeout=1000") -> netty:tcp:hostname:port?connectTimeout=1000
-
-
Constructor Summary
Constructors Constructor Description DefaultServiceCallExpression()
DefaultServiceCallExpression(String hostHeader, String portHeader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class org.apache.camel.impl.cloud.ServiceCallExpressionSupport
evaluate, getHostHeader, getPortHeader, setHostHeader, setPortHeader
-
Methods inherited from class org.apache.camel.support.ExpressionAdapter
assertionFailureMessage, evaluate
-
-
-
-
Method Detail
-
buildCamelEndpointUri
protected String buildCamelEndpointUri(String name, String host, Integer port, String uri, String contextPath, String scheme)
- Specified by:
buildCamelEndpointUri
in classServiceCallExpressionSupport
-
-