|
||||||||||
| 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.CamelClient<E>
public class CamelClient<E extends Exchange>
A Client object for working with Camel and invoking Endpoint instances with Exchange instances
| Constructor Summary | |
|---|---|
CamelClient(CamelContext context)
|
|
| Method Summary | |
|---|---|
protected void |
doStart()
|
protected void |
doStop()
|
protected Object |
extractResultBody(E result)
|
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 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 processor)
Sends an exchange to an endpoint using a supplied @{link Processor} to populate the exchange |
Object |
sendBody(String endpointUri,
Object body)
Send the body to an endpoint |
Object |
sendBody(String endpointUri,
Object body,
String header,
Object headerValue)
Sends the body to an endpoint with a specified header and header value |
| 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 send
public E send(String endpointUri,
Processor processor)
endpointUri - the endpoint URI to send the exchange toprocessor - the transformer used to populate the new exchange
public E send(Endpoint<E> endpoint,
E exchange)
endpoint - the endpoint to send the exchange toexchange - the exchange to send
public E send(Endpoint<E> endpoint,
Processor processor)
endpoint - the endpoint to send the exchange toprocessor - the transformer used to populate the new exchange
public Object sendBody(String endpointUri,
Object body)
endpointUri - body - = the payload
public Object sendBody(String endpointUri,
Object body,
String header,
Object headerValue)
endpointUri - the endpoint URI to send tobody - the payload sendheader - the header nameheaderValue - the header value
public Producer<E> getProducer(Endpoint<E> endpoint)
public CamelContext getContext()
protected Endpoint resolveMandatoryEndpoint(String endpointUri)
protected void doStart()
throws Exception
doStart in class ServiceSupportException
protected void doStop()
throws Exception
doStop in class ServiceSupportExceptionprotected Object extractResultBody(E result)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||