@UriEndpoint(scheme="glogin",
title="Google Login",
syntax="glogin:hostName",
producerOnly=true,
label="cloud,paas",
excludeProperties="httpUri")
public class GLoginEndpoint
extends org.apache.camel.impl.DefaultEndpoint
Constructor and Description |
---|
GLoginEndpoint(String endpointUri,
org.apache.camel.Component component,
String hostName,
int devPort)
Creates a new GLoginEndpoint.
|
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor)
|
org.apache.camel.Producer |
createProducer()
Creates a
GLoginProducer . |
String |
getClientName() |
GLoginComponent |
getComponent()
Returns the component instance that created this endpoint.
|
int |
getDevPort()
Returns the port for connecting to a development server.
|
String |
getHostName()
Returns the internet hostname of the GAE application where to login.
|
OutboundBinding<GLoginEndpoint,GLoginData,GLoginData> |
getOutboundBinding() |
String |
getPassword() |
GLoginService |
getService() |
String |
getServiceRef() |
String |
getUserName() |
boolean |
isDevAdmin() |
boolean |
isDevMode() |
boolean |
isSingleton()
Returns
true . |
void |
setClientName(String clientName)
Sets the client name used for authentication.
|
void |
setDevAdmin(boolean devAdmin)
Set to
true for logging in as admin to a development server. |
void |
setDevMode(boolean devMode)
Set to
true for connecting to a development server. |
void |
setOutboundBinding(OutboundBinding<GLoginEndpoint,GLoginData,GLoginData> outboundBinding)
Sets the outbound binding for
glogin endpoints. |
void |
setPassword(String password)
Sets the login password.
|
void |
setService(GLoginService service)
Sets the service that makes the remote calls to Google services or the
local development server.
|
void |
setServiceRef(String serviceRef)
A reference name to lookup a
GLoginService from the registry. |
void |
setUserName(String userName)
Sets the login username (a Google mail address).
|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public GLoginEndpoint(String endpointUri, org.apache.camel.Component component, String hostName, int devPort)
endpointUri
- the endpoint uricomponent
- component that created this endpoint.hostName
- internet hostname of a GAE application, for example
example.appspot.com
, or localhost
if
the application is running on a local development server.devPort
- port for connecting to the local development server.public GLoginComponent getComponent()
getComponent
in class org.apache.camel.impl.DefaultEndpoint
public String getHostName()
public OutboundBinding<GLoginEndpoint,GLoginData,GLoginData> getOutboundBinding()
public void setOutboundBinding(OutboundBinding<GLoginEndpoint,GLoginData,GLoginData> outboundBinding)
glogin
endpoints. Default binding
is GLoginBinding
.public String getClientName()
public void setClientName(String clientName)
apache-camel-2.x
.public String getUserName()
public void setUserName(String userName)
public String getPassword()
public void setPassword(String password)
public int getDevPort()
devMode
is true
. Default is 8080.public boolean isDevAdmin()
public void setDevAdmin(boolean devAdmin)
true
for logging in as admin to a development server.
Only used if devMode
is true
. Default is
false
.public boolean isDevMode()
public void setDevMode(boolean devMode)
true
for connecting to a development server.public GLoginService getService()
public void setService(GLoginService service)
public String getServiceRef()
public void setServiceRef(String serviceRef)
GLoginService
from the registry.
The GloginService the service that makes the remote calls to Google services or the
local development server.public org.apache.camel.Producer createProducer() throws Exception
GLoginProducer
.Exception
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
public boolean isSingleton()
true
.Apache Camel