org.apache.camel.component.gae.http
Class GHttpProducer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer
org.apache.camel.component.gae.http.GHttpProducer
- All Implemented Interfaces:
- IsSingleton, Processor, Producer, Service, ShutdownableService
public class GHttpProducer
- extends DefaultProducer
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
GHttpProducer
public GHttpProducer(GHttpEndpoint endpoint)
getEndpoint
public GHttpEndpoint getEndpoint()
- Specified by:
getEndpoint in interface Producer- Overrides:
getEndpoint in class DefaultProducer
getOutboundBinding
public OutboundBinding<GHttpEndpoint,com.google.appengine.api.urlfetch.HTTPRequest,com.google.appengine.api.urlfetch.HTTPResponse> getOutboundBinding()
getUrlFetchService
public com.google.appengine.api.urlfetch.URLFetchService getUrlFetchService()
process
public void process(Exchange exchange)
throws Exception
- Invokes the URL fetch service.
- Parameters:
exchange - contains the request data in the in-message. The result is
written to the out-message.
- Throws:
GHttpException - if the response code is >= 400 and
HttpEndpoint.isThrowExceptionOnFailure() returns
true.
Exception- See Also:
GHttpBinding
Apache CAMEL