public class JettyHttpProducer
extends org.apache.camel.impl.DefaultProducer
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 JettyContentExchange |
createHttpExchange(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
protected static void |
doSendExchange(org.eclipse.jetty.client.HttpClient client,
JettyContentExchange httpExchange) |
protected void |
doStart() |
protected void |
doStop() |
JettyHttpBinding |
getBinding() |
org.eclipse.jetty.client.HttpClient |
getClient() |
JettyHttpEndpoint |
getEndpoint() |
org.eclipse.jetty.client.HttpClient |
getSharedClient() |
void |
process(org.apache.camel.Exchange exchange) |
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, 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.ProducergetEndpoint in class org.apache.camel.impl.DefaultProducerpublic void process(org.apache.camel.Exchange exchange)
throws Exception
process in interface org.apache.camel.ProcessorExceptionpublic boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
process in interface org.apache.camel.AsyncProcessorprotected JettyContentExchange createHttpExchange(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) throws Exception
Exceptionprotected static void doSendExchange(org.eclipse.jetty.client.HttpClient client,
JettyContentExchange httpExchange)
throws IOException
IOExceptionpublic 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