@UriEndpoint(scheme="facebook", title="Facebook", syntax="facebook:methodName", consumerClass=FacebookConsumer.class, label="social") public class FacebookEndpoint extends DefaultEndpoint implements FacebookConstants
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
FACEBOOK_DATE_FORMAT, FACEBOOK_PROPERTY_PREFIX, FACEBOOK_THREAD_PROFILE_NAME, RAW_JSON_HEADER, READING_PREFIX, READING_PROPERTY
Constructor and Description |
---|
FacebookEndpoint(String uri,
FacebookComponent facebookComponent,
String remaining,
FacebookEndpointConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
configureProperties(Map<String,Object> options)
Configure properties on this endpoint.
|
Consumer |
createConsumer(Processor processor)
Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
|
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint
|
List<FacebookMethodsType> |
getCandidates() |
FacebookEndpointConfiguration |
getConfiguration() |
String |
getInBody() |
String |
getMethod() |
FacebookNameStyle |
getNameStyle() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
void |
setInBody(String inBody)
Sets the name of a parameter to be passed in the exchange In Body
|
configureConsumer, configurePollingConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, 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 FacebookEndpoint(String uri, FacebookComponent facebookComponent, String remaining, FacebookEndpointConfiguration configuration) throws NoTypeConversionAvailableException
public Producer createProducer() throws Exception
Endpoint
createProducer
in interface Endpoint
Exception
- can be thrownpublic Consumer createConsumer(Processor processor) throws Exception
Endpoint
createConsumer
in interface Endpoint
processor
- the given processorException
- can be thrownpublic boolean isSingleton()
IsSingleton
isSingleton
in interface IsSingleton
public void configureProperties(Map<String,Object> options)
Endpoint
configureProperties
in interface Endpoint
configureProperties
in class DefaultEndpoint
options
- the options (properties)public FacebookEndpointConfiguration getConfiguration()
public List<FacebookMethodsType> getCandidates()
public String getInBody()
public String getMethod()
public FacebookNameStyle getNameStyle()
public void setInBody(String inBody)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.