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

java.lang.Object
  extended by org.apache.camel.impl.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:
CamelContextAware, OutboundBindingSupport<GHttpEndpoint,com.google.appengine.api.urlfetch.HTTPRequest,com.google.appengine.api.urlfetch.HTTPResponse>, Endpoint, IsSingleton, Service, ShutdownableService, HasId, HeaderFilterStrategyAware

public class GHttpEndpoint
extends 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
           
 
Constructor Summary
GHttpEndpoint(String endpointUri, ServletComponent component, URI httpUri, org.apache.commons.httpclient.params.HttpClientParams params, org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager, HttpClientConfigurer clientConfigurer)
           
 
Method Summary
 Producer createProducer()
          Creates a new producer which is used send messages into the endpoint
 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()
           
 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, getHttpUri, getPath, getPort, getProtocol, getProxyHost, getProxyPort, isBridgeEndpoint, isChunked, isDisableStreamCache, isLenientProperties, isMatchOnUriPrefix, isSingleton, isThrowExceptionOnFailure, isTransferException, setAuthMethodPriority, setBinding, setBridgeEndpoint, setChunked, setClientParams, setDisableStreamCache, setHeaderFilterStrategy, setHttpClientConfigurer, setHttpConnectionManager, setHttpUri, setMatchOnUriPrefix, setProxyHost, setProxyPort, setThrowExceptionOnFailure, setTransferException
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
createEndpointUri, createExchange, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isSynchronous, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
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
 
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,
                     ServletComponent component,
                     URI httpUri,
                     org.apache.commons.httpclient.params.HttpClientParams params,
                     org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager,
                     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 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.

createProducer

public Producer createProducer()
                        throws Exception
Description copied from interface: Endpoint
Creates a new producer which is used send messages into the endpoint

Specified by:
createProducer in interface Endpoint
Overrides:
createProducer in class ServletEndpoint
Returns:
a newly created producer
Throws:
Exception - can be thrown


Apache CAMEL