@UriEndpoint(scheme="context", title="Camel Context", syntax="context:contextId:localEndpointUrl", label="endpoint") public class ContextEndpoint extends DefaultEndpoint implements DelegateEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
ContextEndpoint(String endpointUri,
Component component,
Endpoint delegate) |
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
|
String |
getContextId() |
Endpoint |
getEndpoint()
Gets the delegated
Endpoint . |
String |
getLocalEndpointUrl() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
void |
setCamelContext(CamelContext context)
Sets the camel context.
|
void |
setContextId(String contextId)
Is the ID you used to register the CamelContext into the Registry.
|
void |
setLocalEndpointUrl(String localEndpointUrl)
Can be a valid Camel URI evaluated within the black box CamelContext.
|
void |
start()
Starts the service
|
void |
stop()
Stops the service
|
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, 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, suspend
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createExchange, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointConfiguration, getEndpointKey, getEndpointUri, isLenientProperties
public Endpoint getEndpoint()
DelegateEndpoint
Endpoint
.getEndpoint
in interface DelegateEndpoint
public String getContextId()
public void setContextId(String contextId)
public String getLocalEndpointUrl()
public void setLocalEndpointUrl(String localEndpointUrl)
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 start() throws Exception
Service
start
in interface Service
start
in class ServiceSupport
Exception
- is thrown if starting failedpublic void stop() throws Exception
Service
stop
in interface Service
stop
in class ServiceSupport
Exception
- is thrown if stopping failedpublic void configureProperties(Map<String,Object> options)
Endpoint
configureProperties
in interface Endpoint
configureProperties
in class DefaultEndpoint
options
- the options (properties)public void setCamelContext(CamelContext context)
Endpoint
setCamelContext
in interface CamelContextAware
setCamelContext
in interface Endpoint
setCamelContext
in class DefaultEndpoint
context
- the camel contextCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.