@UriEndpoint(scheme="gtask",
syntax="gtask:queueName",
producerOnly=true,
label="cloud")
public class GTaskEndpoint
extends org.apache.camel.component.servlet.ServletEndpoint
implements OutboundBindingSupport<GTaskEndpoint,com.google.appengine.api.taskqueue.TaskOptions,Void>
| Constructor and Description |
|---|
GTaskEndpoint(String endpointUri,
org.apache.camel.component.servlet.ServletComponent component,
URI httpUri,
org.apache.commons.httpclient.params.HttpClientParams params,
org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager,
org.apache.camel.component.http.HttpClientConfigurer clientConfigurer) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Producer |
createProducer() |
org.apache.camel.component.http.HttpBinding |
getBinding()
Proxies the
HttpBinding returned by super#getBinding()
with a dynamic proxy. |
InboundBinding<GTaskEndpoint,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> |
getInboundBinding() |
OutboundBinding<GTaskEndpoint,com.google.appengine.api.taskqueue.TaskOptions,Void> |
getOutboundBinding() |
com.google.appengine.api.taskqueue.Queue |
getQueue() |
String |
getQueueName() |
String |
getWorkerRoot() |
void |
setInboundBinding(InboundBinding<GTaskEndpoint,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> inboundBinding) |
void |
setOutboundBinding(OutboundBinding<GTaskEndpoint,com.google.appengine.api.taskqueue.TaskOptions,Void> outboundBinding) |
void |
setQueue(com.google.appengine.api.taskqueue.Queue queue) |
void |
setQueueName(String queueName) |
void |
setWorkerRoot(String workerRoot)
Sets the web hook path root.
|
createConsumer, getServletName, isLenientProperties, setServletNameconnect, createHttpClient, createPollingConsumer, disconnect, getAuthMethodPriority, getClientParams, getHeaderFilterStrategy, getHttpClientConfigurer, getHttpConnectionManager, getHttpMethodRestrict, getHttpUri, getPath, getPort, getProtocol, getProxyHost, getProxyPort, getResponseBufferSize, getUrlRewrite, isBridgeEndpoint, isChunked, isDisableStreamCache, isMatchOnUriPrefix, isSingleton, isThrowExceptionOnFailure, isTraceEnabled, isTransferException, setAuthMethodPriority, setBinding, setBridgeEndpoint, setChunked, setClientParams, setDisableStreamCache, setHeaderFilterStrategy, setHttpClientConfigurer, setHttpConnectionManager, setHttpMethodRestrict, setHttpUri, setMatchOnUriPrefix, setProxyHost, setProxyPort, setResponseBufferSize, setThrowExceptionOnFailure, setTraceEnabled, setTransferException, setUrlRewriteconfigureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic GTaskEndpoint(String endpointUri, org.apache.camel.component.servlet.ServletComponent component, URI httpUri, org.apache.commons.httpclient.params.HttpClientParams params, org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager, org.apache.camel.component.http.HttpClientConfigurer clientConfigurer) throws URISyntaxException
URISyntaxExceptionpublic OutboundBinding<GTaskEndpoint,com.google.appengine.api.taskqueue.TaskOptions,Void> getOutboundBinding()
getOutboundBinding in interface OutboundBindingSupport<GTaskEndpoint,com.google.appengine.api.taskqueue.TaskOptions,Void>public void setOutboundBinding(OutboundBinding<GTaskEndpoint,com.google.appengine.api.taskqueue.TaskOptions,Void> outboundBinding)
setOutboundBinding in interface OutboundBindingSupport<GTaskEndpoint,com.google.appengine.api.taskqueue.TaskOptions,Void>public InboundBinding<GTaskEndpoint,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> getInboundBinding()
public void setInboundBinding(InboundBinding<GTaskEndpoint,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> inboundBinding)
public org.apache.camel.component.http.HttpBinding getBinding()
HttpBinding returned by super#getBinding()
with a dynamic proxy. The proxy's invocation handler further delegates to
InboundBinding.readRequest(org.apache.camel.Endpoint, Exchange, Object) .getBinding in class org.apache.camel.component.http.HttpEndpointHttpBinding.public String getWorkerRoot()
setWorkerRoot(String)public void setWorkerRoot(String workerRoot)
workerRoot - the assumed web hook path root. The default is worker.
The servlet handling the callback from the task queueing service should have
a /worker/* servlet mapping in this case. If another servlet mapping
is used it must be set here accordingly.public com.google.appengine.api.taskqueue.Queue getQueue()
public void setQueue(com.google.appengine.api.taskqueue.Queue queue)
public String getQueueName()
public void setQueueName(String queueName)
Apache Camel