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
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 -
Method Summary
Methods inherited from class org.apache.camel.impl.cloud.ServiceCallExpressionSupport
evaluate, getHostHeader, getPortHeader, setHostHeader, setPortHeaderMethods inherited from class org.apache.camel.support.ExpressionAdapter
assertionFailureMessage, evaluate, initMethods inherited from class org.apache.camel.support.ExpressionSupport
assertMatches, matchesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Predicate
initPredicate
-
Constructor Details
-
DefaultServiceCallExpression
public DefaultServiceCallExpression() -
DefaultServiceCallExpression
-
-
Method Details
-
buildCamelEndpointUri
protected String buildCamelEndpointUri(String name, String host, Integer port, String uri, String contextPath, String scheme) - Specified by:
buildCamelEndpointUriin classServiceCallExpressionSupport
-
doBuildCamelEndpointUri
-