org.apache.camel.component.mina
Class MinaEndpoint
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.mina.MinaEndpoint
- All Implemented Interfaces:
- org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.MultipleConsumersSupport, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId
public class MinaEndpoint
- extends org.apache.camel.impl.DefaultEndpoint
- implements org.apache.camel.MultipleConsumersSupport
Endpoint for Camel MINA.
- Version:
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
| Methods inherited from interface org.apache.camel.Service |
start, stop |
HEADER_MINA_IOSESSION
@Deprecated
public static final transient String HEADER_MINA_IOSESSION
- Deprecated.
- The key of the IoSession which is stored in the message header
- See Also:
- Constant Field Values
HEADER_LOCAL_ADDRESS
@Deprecated
public static final transient String HEADER_LOCAL_ADDRESS
- Deprecated.
- The socket address of local machine that received the message.
- See Also:
- Constant Field Values
HEADER_REMOTE_ADDRESS
@Deprecated
public static final transient String HEADER_REMOTE_ADDRESS
- Deprecated.
- The socket address of the remote machine that send the message.
- See Also:
- Constant Field Values
MinaEndpoint
public MinaEndpoint()
MinaEndpoint
public MinaEndpoint(String endpointUri,
MinaComponent component)
createProducer
public org.apache.camel.Producer createProducer()
throws Exception
- Specified by:
createProducer in interface org.apache.camel.Endpoint
- Throws:
Exception
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
- Specified by:
createConsumer in interface org.apache.camel.Endpoint
- Throws:
Exception
createExchange
public org.apache.camel.Exchange createExchange(org.apache.mina.common.IoSession session,
Object payload)
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton in interface org.apache.camel.IsSingleton
isMultipleConsumersSupported
public boolean isMultipleConsumersSupported()
- Specified by:
isMultipleConsumersSupported in interface org.apache.camel.MultipleConsumersSupport
getConfiguration
public MinaConfiguration getConfiguration()
setConfiguration
public void setConfiguration(MinaConfiguration configuration)
getAddress
public SocketAddress getAddress()
setAddress
public void setAddress(SocketAddress address)
getAcceptor
public org.apache.mina.common.IoAcceptor getAcceptor()
setAcceptor
public void setAcceptor(org.apache.mina.common.IoAcceptor acceptor)
getConnector
public org.apache.mina.common.IoConnector getConnector()
setConnector
public void setConnector(org.apache.mina.common.IoConnector connector)
getAcceptorConfig
public org.apache.mina.common.IoAcceptorConfig getAcceptorConfig()
setAcceptorConfig
public void setAcceptorConfig(org.apache.mina.common.IoAcceptorConfig acceptorConfig)
getConnectorConfig
public org.apache.mina.common.IoConnectorConfig getConnectorConfig()
setConnectorConfig
public void setConnectorConfig(org.apache.mina.common.IoConnectorConfig connectorConfig)
Apache CAMEL