|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.util.CamelClient<E>
public class CamelClient<E extends Exchange>
A helper client for working with Camel
Constructor Summary | |
---|---|
CamelClient(CamelContext context)
|
Method Summary | |
---|---|
protected void |
doStart()
|
protected void |
doStop()
|
CamelContext |
getContext()
|
Producer<E> |
getProducer(Endpoint<E> endpoint)
|
protected Endpoint |
resolveMandatoryEndpoint(String endpointUri)
|
E |
send(Endpoint<E> endpoint,
E exchange)
Sends the exchange to the given endpoint |
E |
send(Endpoint<E> endpoint,
Processor<E> processor)
Sends an exchange to an endpoint using a supplied @{link Processor} to populate the exchange |
E |
send(String endpointUri,
E exchange)
Sends the exchange to the given endpoint |
E |
send(String endpointUri,
Processor<E> processor)
Sends an exchange to an endpoint using a supplied @{link Processor} to populate the exchange |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
---|
isStarted, isStopped, isStopping, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CamelClient(CamelContext context)
Method Detail |
---|
public E send(String endpointUri, E exchange)
endpointUri
- the endpoint URI to send the exchange toexchange
- the exchange to sendpublic E send(String endpointUri, Processor<E> processor)
endpointUri
- the endpoint URI to send the exchange toprocessor
- the transformer used to populate the new exchangepublic E send(Endpoint<E> endpoint, E exchange)
endpoint
- the endpoint to send the exchange toexchange
- the exchange to sendpublic E send(Endpoint<E> endpoint, Processor<E> processor)
endpoint
- the endpoint to send the exchange toprocessor
- the transformer used to populate the new exchangepublic Producer<E> getProducer(Endpoint<E> endpoint)
public CamelContext getContext()
protected Endpoint resolveMandatoryEndpoint(String endpointUri)
protected void doStart() throws Exception
doStart
in class ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class ServiceSupport
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |