public class GAuthProducer
extends org.apache.camel.impl.DefaultProducer
Constructor and Description |
---|
GAuthProducer(GAuthEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> |
getAuthorizeBinding() |
GAuthEndpoint |
getEndpoint() |
OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> |
getUpgradeBinding() |
void |
process(org.apache.camel.Exchange exchange)
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. |
createExchange, createExchange, createExchange, doStart, doStop, isSingleton, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public GAuthProducer(GAuthEndpoint endpoint)
public GAuthEndpoint getEndpoint()
getEndpoint
in interface org.apache.camel.EndpointAware
getEndpoint
in class org.apache.camel.impl.DefaultProducer
public OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> getAuthorizeBinding()
public OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> getUpgradeBinding()
public void process(org.apache.camel.Exchange exchange) throws Exception
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.Exception
Apache Camel