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, setPortHeader
Methods inherited from class org.apache.camel.support.ExpressionAdapter
assertionFailureMessage, evaluate, init
Methods inherited from class org.apache.camel.support.ExpressionSupport
assertMatches, matches
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
buildCamelEndpointUri
in classServiceCallExpressionSupport
-
doBuildCamelEndpointUri
-