Class FacebookEndpoint
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultEndpoint
org.apache.camel.component.facebook.FacebookEndpoint
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,FacebookConstants
,org.apache.camel.Endpoint
,org.apache.camel.IsSingleton
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.HasId
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
@UriEndpoint(firstVersion="2.14.0",
scheme="facebook",
title="Facebook",
syntax="facebook:methodName",
category=SOCIAL,
headersClass=FacebookConstants.class)
public class FacebookEndpoint
extends org.apache.camel.support.DefaultEndpoint
implements FacebookConstants
Send requests to Facebook APIs supported by Facebook4J.
It allows producing messages to retrieve, add, and delete posts, likes, comments, photos, albums, videos, photos,
checkins, locations, links, etc. It also supports APIs that allow polling for posts, users, checkins, groups,
locations, etc.
-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
Fields inherited from interface org.apache.camel.component.facebook.FacebookConstants
FACEBOOK_DATE_FORMAT, FACEBOOK_PROPERTY_PREFIX, FACEBOOK_THREAD_PROFILE_NAME, RAW_JSON_HEADER, READING_PREFIX, READING_PROPERTY
-
Constructor Summary
ConstructorDescriptionFacebookEndpoint
(String uri, FacebookComponent facebookComponent, String remaining, FacebookEndpointConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureProperties
(Map<String, Object> options) org.apache.camel.Consumer
createConsumer
(org.apache.camel.Processor processor) org.apache.camel.Producer
void
setConfiguration
(FacebookEndpointConfiguration configuration) Sets theFacebookEndpointConfiguration
to usevoid
Sets the name of a parameter to be passed in the exchange In BodyMethods inherited from class org.apache.camel.support.DefaultEndpoint
configureConsumer, configureExchange, configurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toString
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, 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.Endpoint
getEndpointBaseUri, isSingletonProducer
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
FacebookEndpoint
public FacebookEndpoint(String uri, FacebookComponent facebookComponent, String remaining, FacebookEndpointConfiguration configuration)
-
-
Method Details
-
createProducer
- Specified by:
createProducer
in interfaceorg.apache.camel.Endpoint
- Throws:
Exception
-
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception - Specified by:
createConsumer
in interfaceorg.apache.camel.Endpoint
- Throws:
Exception
-
configureProperties
- Specified by:
configureProperties
in interfaceorg.apache.camel.Endpoint
- Overrides:
configureProperties
in classorg.apache.camel.support.DefaultEndpoint
-
getConfiguration
-
getCandidates
-
getInBody
-
getMethod
-
getNameStyle
-
setInBody
Sets the name of a parameter to be passed in the exchange In Body -
setConfiguration
Sets theFacebookEndpointConfiguration
to use- Parameters:
configuration
- theFacebookEndpointConfiguration
to use
-