org.apache.camel.component.gae.auth
Class GAuthProducer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer
org.apache.camel.component.gae.auth.GAuthProducer
- All Implemented Interfaces:
- IsSingleton, Processor, Producer, Service, ShutdownableService
public class GAuthProducer
- extends DefaultProducer
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, start, stop |
GAuthProducer
public GAuthProducer(GAuthEndpoint endpoint)
getEndpoint
public GAuthEndpoint getEndpoint()
- Specified by:
getEndpoint in interface Producer- Overrides:
getEndpoint in class DefaultProducer
getAuthorizeBinding
public OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> getAuthorizeBinding()
getUpgradeBinding
public OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> getUpgradeBinding()
process
public void process(Exchange exchange)
throws Exception
- Depending on the
GAuthEndpoint.Name, this method either fetches
an unauthorized request token and creates a redirect response, or
upgrades an authorized request token to an access token.
- Parameters:
exchange -
- Throws:
Exception- See Also:
GAuthAuthorizeBinding,
GAuthUpgradeBinding,
GAuthServiceImpl
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.