public class JettyHttpProducer
extends org.apache.camel.impl.DefaultAsyncProducer
implements org.apache.camel.AsyncProcessor
| Constructor and Description |
|---|
JettyHttpProducer(org.apache.camel.Endpoint endpoint)
Creates this producer.
|
JettyHttpProducer(org.apache.camel.Endpoint endpoint,
org.eclipse.jetty.client.HttpClient client)
Creates this producer
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
JettyHttpBinding |
getBinding() |
org.eclipse.jetty.client.HttpClient |
getClient() |
JettyHttpEndpoint |
getEndpoint() |
org.eclipse.jetty.client.HttpClient |
getSharedClient() |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
void |
setBinding(JettyHttpBinding binding) |
void |
setClient(org.eclipse.jetty.client.HttpClient client) |
void |
setSharedClient(org.eclipse.jetty.client.HttpClient sharedClient) |
createExchange, createExchange, createExchange, isSingleton, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic JettyHttpProducer(org.apache.camel.Endpoint endpoint)
setClient(org.eclipse.jetty.client.HttpClient)
or setSharedClient(org.eclipse.jetty.client.HttpClient).endpoint - the endpointpublic JettyHttpProducer(org.apache.camel.Endpoint endpoint,
org.eclipse.jetty.client.HttpClient client)
endpoint - the endpointclient - the non-shared client to usepublic JettyHttpEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.impl.DefaultProducerpublic boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
process in interface org.apache.camel.AsyncProcessorpublic JettyHttpBinding getBinding()
public void setBinding(JettyHttpBinding binding)
public org.eclipse.jetty.client.HttpClient getClient()
public void setClient(org.eclipse.jetty.client.HttpClient client)
public org.eclipse.jetty.client.HttpClient getSharedClient()
public void setSharedClient(org.eclipse.jetty.client.HttpClient sharedClient)
protected void doStart()
throws Exception
doStart in class org.apache.camel.impl.DefaultProducerExceptionApache Camel