public class GHttpProducer
extends org.apache.camel.impl.DefaultProducer
| Constructor and Description |
|---|
GHttpProducer(GHttpEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
GHttpEndpoint |
getEndpoint() |
OutboundBinding<GHttpEndpoint,com.google.appengine.api.urlfetch.HTTPRequest,com.google.appengine.api.urlfetch.HTTPResponse> |
getOutboundBinding() |
com.google.appengine.api.urlfetch.URLFetchService |
getUrlFetchService() |
void |
process(org.apache.camel.Exchange exchange)
Invokes the URL fetch service.
|
createExchange, createExchange, createExchange, doStart, doStop, isSingleton, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic GHttpProducer(GHttpEndpoint endpoint)
public GHttpEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.ProducergetEndpoint in class org.apache.camel.impl.DefaultProducerpublic OutboundBinding<GHttpEndpoint,com.google.appengine.api.urlfetch.HTTPRequest,com.google.appengine.api.urlfetch.HTTPResponse> getOutboundBinding()
public com.google.appengine.api.urlfetch.URLFetchService getUrlFetchService()
public void process(org.apache.camel.Exchange exchange)
throws Exception
exchange - contains the request data in the in-message. The result is written to the out-message.GHttpException - if the response code is >= 400 and HttpEndpoint.isThrowExceptionOnFailure()
returns true.ExceptionGHttpBindingApache Camel