org.apache.camel.component.mina
Class MinaComponent
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultComponent
org.apache.camel.component.mina.MinaComponent
- All Implemented Interfaces:
- org.apache.camel.CamelContextAware, org.apache.camel.Component, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
public class MinaComponent
- extends org.apache.camel.impl.DefaultComponent
Component for Apache MINA.
- Version:
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Method Summary |
protected void |
configureCodecFactory(String type,
org.apache.mina.common.IoServiceConfig config,
MinaConfiguration configuration)
|
protected void |
configureDataGramCodecFactory(String type,
org.apache.mina.common.IoServiceConfig config,
MinaConfiguration configuration)
For datagrams the entire message is available as a single ByteBuffer so lets just pass those around by default
and try converting whatever they payload is into ByteBuffers unless some custom converter is specified |
protected void |
configureDefaultCodecFactory(String type,
org.apache.mina.common.IoServiceConfig config,
MinaConfiguration configuration)
|
protected MinaEndpoint |
createDatagramEndpoint(String uri,
MinaConfiguration configuration)
|
org.apache.camel.Endpoint |
createEndpoint(MinaConfiguration config)
|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
|
protected MinaEndpoint |
createSocketEndpoint(String uri,
MinaConfiguration configuration)
|
protected MinaEndpoint |
createVmEndpoint(String uri,
MinaConfiguration configuration)
|
MinaConfiguration |
getConfiguration()
|
void |
setConfiguration(MinaConfiguration configuration)
|
Methods inherited from class org.apache.camel.impl.DefaultComponent |
afterConfiguration, createComponentConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MinaComponent
public MinaComponent()
MinaComponent
public MinaComponent(org.apache.camel.CamelContext context)
createEndpoint
protected org.apache.camel.Endpoint createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
throws Exception
- Specified by:
createEndpoint
in class org.apache.camel.impl.DefaultComponent
- Throws:
Exception
createEndpoint
public org.apache.camel.Endpoint createEndpoint(MinaConfiguration config)
throws Exception
- Throws:
Exception
createVmEndpoint
protected MinaEndpoint createVmEndpoint(String uri,
MinaConfiguration configuration)
createSocketEndpoint
protected MinaEndpoint createSocketEndpoint(String uri,
MinaConfiguration configuration)
configureCodecFactory
protected void configureCodecFactory(String type,
org.apache.mina.common.IoServiceConfig config,
MinaConfiguration configuration)
configureDefaultCodecFactory
protected void configureDefaultCodecFactory(String type,
org.apache.mina.common.IoServiceConfig config,
MinaConfiguration configuration)
createDatagramEndpoint
protected MinaEndpoint createDatagramEndpoint(String uri,
MinaConfiguration configuration)
configureDataGramCodecFactory
protected void configureDataGramCodecFactory(String type,
org.apache.mina.common.IoServiceConfig config,
MinaConfiguration configuration)
- For datagrams the entire message is available as a single ByteBuffer so lets just pass those around by default
and try converting whatever they payload is into ByteBuffers unless some custom converter is specified
getConfiguration
public MinaConfiguration getConfiguration()
setConfiguration
public void setConfiguration(MinaConfiguration configuration)
Apache Camel