org.apache.camel.component.jetty
Class JettyHttpProducer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer
org.apache.camel.component.jetty.JettyHttpProducer
- All Implemented Interfaces:
- AsyncProcessor, IsSingleton, Processor, Producer, Service, ShutdownableService
public class JettyHttpProducer
- extends DefaultProducer
- implements AsyncProcessor
- Version:
- $Revision: 19997 $
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, start, stop |
JettyHttpProducer
public JettyHttpProducer(Endpoint endpoint,
org.eclipse.jetty.client.HttpClient client)
getEndpoint
public JettyHttpEndpoint getEndpoint()
- Specified by:
getEndpoint in interface Producer- Overrides:
getEndpoint in class DefaultProducer
process
public void process(Exchange exchange)
throws Exception
- Specified by:
process in interface Processor
- Throws:
Exception
process
public boolean process(Exchange exchange,
AsyncCallback callback)
- Specified by:
process in interface AsyncProcessor
createHttpExchange
protected JettyContentExchange createHttpExchange(Exchange exchange,
AsyncCallback callback)
throws Exception
- Throws:
Exception
doSendExchange
protected static void doSendExchange(org.eclipse.jetty.client.HttpClient client,
JettyContentExchange httpExchange)
throws IOException
- Throws:
IOException
getBinding
public JettyHttpBinding getBinding()
setBinding
public void setBinding(JettyHttpBinding binding)
doStart
protected void doStart()
throws Exception
- Overrides:
doStart in class DefaultProducer
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop in class DefaultProducer
- Throws:
Exception
Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.