Class 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