|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.support.ServiceSupport org.apache.camel.impl.DefaultEndpoint org.apache.camel.component.gae.auth.GAuthEndpoint
public class GAuthEndpoint
Represents a GAuth Endpoint.
Instances can have one of two names, either authorize
for
requesting an unauthorized request token or upgrade
for
upgrading an authorized request token to an access token. The corresponding
endpoint URIs are gauth:authorize
and gauth:upgrade
, respectively.
Nested Class Summary | |
---|---|
static class |
GAuthEndpoint.Name
|
Field Summary |
---|
Fields inherited from class org.apache.camel.support.ServiceSupport |
---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Constructor Summary | |
---|---|
GAuthEndpoint(String endpointUri,
org.apache.camel.Component component,
String name)
|
Method Summary | |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor)
|
org.apache.camel.Producer |
createProducer()
Returns a GAuthProducer |
OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> |
getAuthorizeBinding()
|
String |
getCallback()
Returns the value of callback query parameter in the gauth:authorize endpoint URI. |
GAuthComponent |
getComponent()
Returns the component instance that created this endpoint. |
String |
getConsumerKey()
Returns the consumer key. |
String |
getConsumerSecret()
Returns the consumer secret. |
GAuthKeyLoader |
getKeyLoader()
Returns the key loader. |
GAuthEndpoint.Name |
getName()
Returns the endpoint name. |
String |
getScope()
Returns the value of the scope query parameter in gauth:authorize endpoint URI. |
String[] |
getScopeArray()
Returns the value of the scope query parameter as array. |
GAuthService |
getService()
|
OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> |
getUpgradeBinding()
|
boolean |
isSingleton()
Returns true . |
void |
setAuthorizeBinding(OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> authorizeBinding)
Sets the binding for gauth:authorize endpoints. |
void |
setCallback(String callback)
|
void |
setConsumerKey(String consumerKey)
Sets the consumer key. |
void |
setConsumerSecret(String consumerSecret)
Sets the consumer secret. |
void |
setKeyLoader(GAuthKeyLoader keyLoader)
Sets a key loader for loading a private key. |
void |
setScope(String services)
|
void |
setService(GAuthService service)
Sets the service that makes the remote calls to Google services. |
void |
setUpgradeBinding(OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> upgradeBinding)
Sets the binding for gauth:upgrade endpoints. |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
---|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, 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 |
Constructor Detail |
---|
public GAuthEndpoint(String endpointUri, org.apache.camel.Component component, String name)
Method Detail |
---|
public OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> getAuthorizeBinding()
public void setAuthorizeBinding(OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> authorizeBinding)
gauth:authorize
endpoints.
public OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> getUpgradeBinding()
public void setUpgradeBinding(OutboundBinding<GAuthEndpoint,com.google.gdata.client.authn.oauth.GoogleOAuthParameters,com.google.gdata.client.authn.oauth.GoogleOAuthParameters> upgradeBinding)
gauth:upgrade
endpoints.
public GAuthComponent getComponent()
getComponent
in class org.apache.camel.impl.DefaultEndpoint
public GAuthEndpoint.Name getName()
public String getCallback()
gauth:authorize
endpoint URI.
public void setCallback(String callback)
public String getScope()
gauth:authorize
endpoint URI. This can be a single scope or
a comma-separated list of scopes.
public void setScope(String services)
public String[] getScopeArray()
getScope()
public String getConsumerKey()
null
then GAuthComponent.getConsumerKey()
is
returned.
public void setConsumerKey(String consumerKey)
consumerKey
- consumer key to set.public String getConsumerSecret()
null
then GAuthComponent.getConsumerSecret()
is
returned.
public void setConsumerSecret(String consumerSecret)
public GAuthKeyLoader getKeyLoader()
null
then GAuthComponent.getKeyLoader()
is
returned.
public void setKeyLoader(GAuthKeyLoader keyLoader)
public GAuthService getService()
public void setService(GAuthService service)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
UnsupportedOperationException
Exception
public org.apache.camel.Producer createProducer() throws Exception
GAuthProducer
Exception
public boolean isSingleton()
true
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |