org.apache.camel.component.gae.task
Class GTaskEndpoint
java.lang.Object
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.impl.ScheduledPollEndpoint
org.apache.camel.impl.DefaultPollingEndpoint
org.apache.camel.component.http.HttpEndpoint
org.apache.camel.component.servlet.ServletEndpoint
org.apache.camel.component.gae.task.GTaskEndpoint
- All Implemented Interfaces:
- CamelContextAware, OutboundBindingSupport<GTaskEndpoint,com.google.appengine.api.labs.taskqueue.TaskOptions,Void>, Endpoint, IsSingleton, HeaderFilterStrategyAware
public class GTaskEndpoint
- extends ServletEndpoint
- implements OutboundBindingSupport<GTaskEndpoint,com.google.appengine.api.labs.taskqueue.TaskOptions,Void>
Represents a Google App Engine Task Queueing endpoint.
| Methods inherited from class org.apache.camel.component.http.HttpEndpoint |
connect, createHttpClient, createPollingConsumer, disconnect, getAuthMethodPriority, getClientParams, getHeaderFilterStrategy, getHttpClientConfigurer, getHttpConnectionManager, getHttpUri, getPath, getPort, getProtocol, getProxyHost, getProxyPort, isBridgeEndpoint, isChunked, isDisableStreamCache, isLenientProperties, isMatchOnUriPrefix, isSingleton, isThrowExceptionOnFailure, setAuthMethodPriority, setBinding, setBridgeEndpoint, setChunked, setClientParams, setDisableStreamCache, setHeaderFilterStrategy, setHttpClientConfigurer, setHttpConnectionManager, setHttpUri, setMatchOnUriPrefix, setProxyHost, setProxyPort, setThrowExceptionOnFailure |
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
createEndpointUri, createExchange, createExchange, createExchange, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, hashCode, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, toString |
GTaskEndpoint
public GTaskEndpoint(String endpointUri,
ServletComponent component,
URI httpUri,
org.apache.commons.httpclient.params.HttpClientParams params,
org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager,
HttpClientConfigurer clientConfigurer)
throws URISyntaxException
- Throws:
URISyntaxException
getOutboundBinding
public OutboundBinding<GTaskEndpoint,com.google.appengine.api.labs.taskqueue.TaskOptions,Void> getOutboundBinding()
- Specified by:
getOutboundBinding in interface OutboundBindingSupport<GTaskEndpoint,com.google.appengine.api.labs.taskqueue.TaskOptions,Void>
setOutboundBinding
public void setOutboundBinding(OutboundBinding<GTaskEndpoint,com.google.appengine.api.labs.taskqueue.TaskOptions,Void> outboundBinding)
- Specified by:
setOutboundBinding in interface OutboundBindingSupport<GTaskEndpoint,com.google.appengine.api.labs.taskqueue.TaskOptions,Void>
getInboundBinding
public InboundBinding<GTaskEndpoint,HttpServletRequest,HttpServletResponse> getInboundBinding()
setInboundBinding
public void setInboundBinding(InboundBinding<GTaskEndpoint,HttpServletRequest,HttpServletResponse> inboundBinding)
getBinding
public HttpBinding getBinding()
- Proxies the
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)
.
- Overrides:
getBinding in class HttpEndpoint
- Returns:
- proxied
HttpBinding.
getWorkerRoot
public String getWorkerRoot()
- See Also:
setWorkerRoot(String)
setWorkerRoot
public void setWorkerRoot(String workerRoot)
- Sets the web hook path root.
- Parameters:
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.
getQueue
public com.google.appengine.api.labs.taskqueue.Queue getQueue()
setQueue
public void setQueue(com.google.appengine.api.labs.taskqueue.Queue queue)
createProducer
public Producer createProducer()
throws Exception
- Specified by:
createProducer in interface Endpoint- Overrides:
createProducer in class ServletEndpoint
- Throws:
Exception
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.