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

java.lang.Object
  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, 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()
           
 HttpBinding getBinding()
          Proxies the HttpBinding returned by super#getBinding() with a dynamic proxy.
 URL getEndpointUrl()
           
 InboundBinding<GHttpEndpoint,HttpServletRequest,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,HttpServletRequest,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, setAuthMethodPriority, setBinding, setBridgeEndpoint, setChunked, setClientParams, setDisableStreamCache, setHeaderFilterStrategy, setHttpClientConfigurer, setHttpConnectionManager, setHttpUri, setMatchOnUriPrefix, setProxyHost, setProxyPort, setThrowExceptionOnFailure
 
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, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, hashCode, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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,HttpServletRequest,HttpServletResponse> getInboundBinding()

setInboundBinding

public void setInboundBinding(InboundBinding<GHttpEndpoint,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.

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.