org.apache.camel.component.jhc
Class JhcProducer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultProducer<JhcExchange>
          extended by org.apache.camel.component.jhc.JhcProducer
All Implemented Interfaces:
AsyncProcessor, Processor, Producer<JhcExchange>, Service

public class JhcProducer
extends DefaultProducer<JhcExchange>
implements AsyncProcessor


Field Summary
static Set<String> HEADERS_TO_SKIP
          Deprecated. 
static String HTTP_RESPONSE_CODE
           
 
Constructor Summary
JhcProducer(JhcEndpoint endpoint)
           
 
Method Summary
protected  org.apache.http.HttpEntity createEntity(Exchange exchange)
           
protected  org.apache.http.HttpRequest createRequest(Exchange exchange)
           
protected  void doStart()
           
protected  void doStop()
           
 JhcEndpoint getEndpoint()
           
 void process(Exchange exchange)
           
 boolean process(Exchange exchange, AsyncCallback callback)
           
 
Methods inherited from class org.apache.camel.impl.DefaultProducer
createExchange, createExchange, createExchange, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Field Detail

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. 
Constructor Detail

JhcProducer

public JhcProducer(JhcEndpoint endpoint)
Method Detail

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