|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.builder.ProxyBuilder
public final class ProxyBuilder
A build to create Camel proxies.
Constructor Summary | |
---|---|
ProxyBuilder(CamelContext camelContext)
|
Method Summary | ||
---|---|---|
|
build(Class<T>... interfaceClasses)
Builds the proxy. |
|
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyBuilder(CamelContext camelContext)
Method Detail |
---|
public ProxyBuilder endpoint(String url)
url
- uri of endpoint
public ProxyBuilder endpoint(Endpoint endpoint)
endpoint
- the endpoint
public <T> T build(Class<T> interfaceClass) throws Exception
interfaceClass
- the service interface
Exception
- is thrown if error creating the proxypublic <T> T build(Class<T>... interfaceClasses) throws Exception
interfaceClasses
- the service interface(s)
Exception
- is thrown if error creating the proxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |