org.apache.camel.component.gae.http
Class GHttpEndpoint

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.impl.ScheduledPollEndpoint
              extended by org.apache.camel.impl.DefaultPollingEndpoint
                  extended by org.apache.camel.component.http.HttpEndpoint
                      extended by org.apache.camel.component.servlet.ServletEndpoint
                          extended by org.apache.camel.component.gae.http.GHttpEndpoint
All Implemented Interfaces:
org.apache.camel.CamelContextAware, OutboundBindingSupport<GHttpEndpoint,com.google.appengine.api.urlfetch.HTTPRequest,com.google.appengine.api.urlfetch.HTTPResponse>, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.spi.HeaderFilterStrategyAware, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class GHttpEndpoint
extends org.apache.camel.component.servlet.ServletEndpoint
implements OutboundBindingSupport<GHttpEndpoint,com.google.appengine.api.urlfetch.HTTPRequest,com.google.appengine.api.urlfetch.HTTPResponse>

Represents a Google App Engine HTTP endpoint.


Field Summary
static String GHTTP_SCHEME
           
static String GHTTPS_SCHEME
           
static String HTTP_SCHEME
           
static String HTTPS_SCHEME
           
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
GHttpEndpoint(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)
           
 
Method Summary
 org.apache.camel.Producer createProducer()
           
 org.apache.camel.component.http.HttpBinding getBinding()
          Proxies the HttpBinding returned by super#getBinding() with a dynamic proxy.
 URL getEndpointUrl()
           
 InboundBinding<GHttpEndpoint,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> getInboundBinding()
           
 OutboundBinding<GHttpEndpoint,com.google.appengine.api.urlfetch.HTTPRequest,com.google.appengine.api.urlfetch.HTTPResponse> getOutboundBinding()
           
 com.google.appengine.api.urlfetch.URLFetchService getUrlFetchService()
           
 boolean isLenientProperties()
           
 void setInboundBinding(InboundBinding<GHttpEndpoint,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> inboundBinding)
           
 void setOutboundBinding(OutboundBinding<GHttpEndpoint,com.google.appengine.api.urlfetch.HTTPRequest,com.google.appengine.api.urlfetch.HTTPResponse> outboundBinding)
           
 void setUrlFetchService(com.google.appengine.api.urlfetch.URLFetchService urlFetchService)
           
 
Methods inherited from class org.apache.camel.component.servlet.ServletEndpoint
createConsumer, getServletName, setServletName
 
Methods inherited from class org.apache.camel.component.http.HttpEndpoint
connect, 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, setUrlRewrite
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setProperties, setSynchronous, toString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Field Detail

GHTTP_SCHEME

public static final String GHTTP_SCHEME
See Also:
Constant Field Values

GHTTPS_SCHEME

public static final String GHTTPS_SCHEME
See Also:
Constant Field Values

HTTP_SCHEME

public static final String HTTP_SCHEME
See Also:
Constant Field Values

HTTPS_SCHEME

public static final String HTTPS_SCHEME
See Also:
Constant Field Values
Constructor Detail

GHttpEndpoint

public GHttpEndpoint(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
Throws:
URISyntaxException
Method Detail

getEndpointUrl

public URL getEndpointUrl()
                   throws Exception
Throws:
Exception

getUrlFetchService

public com.google.appengine.api.urlfetch.URLFetchService getUrlFetchService()

setUrlFetchService

public void setUrlFetchService(com.google.appengine.api.urlfetch.URLFetchService urlFetchService)

getOutboundBinding

public OutboundBinding<GHttpEndpoint,com.google.appengine.api.urlfetch.HTTPRequest,com.google.appengine.api.urlfetch.HTTPResponse> getOutboundBinding()
Specified by:
getOutboundBinding in interface OutboundBindingSupport<GHttpEndpoint,com.google.appengine.api.urlfetch.HTTPRequest,com.google.appengine.api.urlfetch.HTTPResponse>

setOutboundBinding

public void setOutboundBinding(OutboundBinding<GHttpEndpoint,com.google.appengine.api.urlfetch.HTTPRequest,com.google.appengine.api.urlfetch.HTTPResponse> outboundBinding)
Specified by:
setOutboundBinding in interface OutboundBindingSupport<GHttpEndpoint,com.google.appengine.api.urlfetch.HTTPRequest,com.google.appengine.api.urlfetch.HTTPResponse>

getInboundBinding

public InboundBinding<GHttpEndpoint,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> getInboundBinding()

setInboundBinding

public void setInboundBinding(InboundBinding<GHttpEndpoint,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse> inboundBinding)

getBinding

public org.apache.camel.component.http.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 org.apache.camel.component.http.HttpEndpoint
Returns:
proxied HttpBinding.

createProducer

public org.apache.camel.Producer createProducer()
                                         throws Exception
Specified by:
createProducer in interface org.apache.camel.Endpoint
Overrides:
createProducer in class org.apache.camel.component.servlet.ServletEndpoint
Throws:
Exception

isLenientProperties

public boolean isLenientProperties()
Specified by:
isLenientProperties in interface org.apache.camel.Endpoint
Overrides:
isLenientProperties in class org.apache.camel.component.servlet.ServletEndpoint


Apache Camel