public final class ProxyBuilder extends Object
| Constructor and Description |
|---|
ProxyBuilder(CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
ProxyBuilder |
binding(boolean binding)
Whether to use binding or not.
|
<T> T |
build(Class<T>... interfaceClasses)
Builds the proxy.
|
<T> T |
build(Class<T> interfaceClass)
Builds the proxy.
|
ProxyBuilder |
endpoint(Endpoint endpoint)
Send the proxied message to this endpoint
|
ProxyBuilder |
endpoint(String url)
Send the proxied message to this endpoint
|
public ProxyBuilder(CamelContext camelContext)
public ProxyBuilder endpoint(String url)
url - uri of endpointpublic ProxyBuilder endpoint(Endpoint endpoint)
endpoint - the endpointpublic ProxyBuilder binding(boolean binding)
Message
on the Exchange when invoking the proxy.binding - true to use binding, false to use the old behavior with using a BeanInvocation
as a provisional message bodypublic <T> T build(Class<T> interfaceClass) throws Exception
interfaceClass - the service interfaceException - is thrown if error creating the proxyApache Camel