public class NettyEndpoint extends DefaultEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
NettyEndpoint(java.lang.String endpointUri,
NettyComponent component,
NettyConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
Consumer |
createConsumer(Processor processor)
Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
|
protected java.lang.String |
createEndpointUri()
A factory method to lazily create the endpointUri if none is specified
|
Exchange |
createExchange(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent messageEvent) |
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint
|
protected void |
doStart()
Implementations override this method to support customized start/stop.
|
protected void |
enrichWithClientCertInformation(javax.net.ssl.SSLSession sslSession,
Message message)
Enriches the message with client certificate details such as subject name, serial number etc.
|
NettyComponent |
getComponent()
Returns the component that created this endpoint.
|
NettyConfiguration |
getConfiguration() |
protected javax.net.ssl.SSLSession |
getSSLSession(org.jboss.netty.channel.ChannelHandlerContext ctx) |
org.jboss.netty.util.Timer |
getTimer() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
void |
setConfiguration(NettyConfiguration configuration) |
void |
setTimer(org.jboss.netty.util.Timer timer) |
protected void |
updateMessageHeader(Message in,
org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent messageEvent) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createExchange, createExchange, createExchange, createPollingConsumer, doStop, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic NettyEndpoint(java.lang.String endpointUri,
NettyComponent component,
NettyConfiguration configuration)
public Consumer createConsumer(Processor processor) throws java.lang.Exception
Endpointprocessor - the given processorjava.lang.Exception - can be thrownpublic Producer createProducer() throws java.lang.Exception
Endpointjava.lang.Exception - can be thrownpublic Exchange createExchange(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent messageEvent) throws java.lang.Exception
java.lang.Exceptionpublic boolean isSingleton()
IsSingletonpublic NettyComponent getComponent()
DefaultEndpointgetComponent in class DefaultEndpointpublic NettyConfiguration getConfiguration()
public void setConfiguration(NettyConfiguration configuration)
public void setTimer(org.jboss.netty.util.Timer timer)
public org.jboss.netty.util.Timer getTimer()
protected java.lang.String createEndpointUri()
DefaultEndpointcreateEndpointUri in class DefaultEndpointprotected void doStart()
throws java.lang.Exception
ServiceSupportServiceSupport.doStop() for more details.doStart in class DefaultEndpointjava.lang.ExceptionServiceSupport.doStop()protected javax.net.ssl.SSLSession getSSLSession(org.jboss.netty.channel.ChannelHandlerContext ctx)
protected void updateMessageHeader(Message in, org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent messageEvent)
protected void enrichWithClientCertInformation(javax.net.ssl.SSLSession sslSession,
Message message)
sslSession - the SSL sessionmessage - the message to enrichCopyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.