org.apache.camel.component.jhc
Class JhcProducer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer<JhcExchange>
org.apache.camel.component.jhc.JhcProducer
- All Implemented Interfaces:
- AsyncProcessor, Processor, Producer<JhcExchange>, Service
public class JhcProducer
- extends DefaultProducer<JhcExchange>
- implements AsyncProcessor
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
HTTP_RESPONSE_CODE
public static final String HTTP_RESPONSE_CODE
- See Also:
- Constant Field Values
HEADERS_TO_SKIP
@Deprecated
public static final Set<String> HEADERS_TO_SKIP
- Deprecated.
JhcProducer
public JhcProducer(JhcEndpoint endpoint)
getEndpoint
public JhcEndpoint getEndpoint()
- Specified by:
getEndpoint in interface Producer<JhcExchange>- Overrides:
getEndpoint in class DefaultProducer<JhcExchange>
doStart
protected void doStart()
throws Exception
- Overrides:
doStart in class DefaultProducer<JhcExchange>
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop in class DefaultProducer<JhcExchange>
- Throws:
Exception
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
createRequest
protected org.apache.http.HttpRequest createRequest(Exchange exchange)
createEntity
protected org.apache.http.HttpEntity createEntity(Exchange exchange)
Apache CAMEL