public final class ProxyBuilder extends Object
| Constructor and Description |
|---|
ProxyBuilder(CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
<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 <T> T build(Class<T> interfaceClass) throws Exception
interfaceClass - the service interfaceException - is thrown if error creating the proxyApache Camel