Uses of Interface
org.apache.mina.core.session.IoSession
Packages that use IoSession
Package
Description
Common types required for users to use MINA.
Base class for implementing transport based on active polling strategies like NIO select call,
or any API based on I/O polling system calls (epoll, poll, select, kqueue, etc).
Filter implementations that helps you to implement complex protocols via 'codec' concept.
Protocol codecs that helps you to implement even more complex protocols by splitting a codec into multiple sub-codecs.
Protocol codecs which uses Java object serilization and leads to rapid protocol implementation.
A protocol codec for text-based protocols.
An IoFilter that provides flexible error generation facilities.
IoFilters that provide flexible thread model and event queue monitoring interface.
Classes that implement IoFilter and provide host blocking and throttling.
IoFilter that provides the ability for connections to remain open when data is not being transferred.
Classes that implement IoFilter and provide logging of the events and data that flows through a MINA-based system.
Classes that implement IoFilter and provide Secure Sockets Layer functionality.
Classes that implement IoFilter and provide the ability for filters to be timed on their performance.
Stream based IoFilter implementation.
Utility classes for the MINA filtering portion of the library.
A handler implementation that helps you implement sequentially layered protocols using Chains of Responsibility pattern.
A handler implementation that helps you implement complex protocols by splitting
messageReceived handlers into multiple sub-handlers.
Enables creating a handler per session instead of having one handler for many sessions, using Multiton pattern.
Socket (TCP/IP) and Datagram (UDP/IP) support based on Java NIO (New I/O) API.
In-VM pipe support which removes the overhead of local loopback communication.
-
Uses of IoSession in org.apache.mina.core
Fields in org.apache.mina.core declared as IoSessionMethods in org.apache.mina.core with parameters of type IoSessionModifier and TypeMethodDescriptionstatic List<WriteFuture> Writes the specifiedmessageto the specifiedsessions.Method parameters in org.apache.mina.core with type arguments of type IoSessionModifier and TypeMethodDescriptionstatic List<WriteFuture> Writes the specifiedmessageto the specifiedsessions.static List<WriteFuture> IoUtil.broadcast(Object message, Collection<IoSession> sessions) Writes the specifiedmessageto the specifiedsessions.static List<WriteFuture> Writes the specifiedmessageto the specifiedsessions.private static voidIoUtil.broadcast(Object message, Iterator<IoSession> sessions, Collection<WriteFuture> answer) -
Uses of IoSession in org.apache.mina.core.filterchain
Methods in org.apache.mina.core.filterchain that return IoSessionMethods in org.apache.mina.core.filterchain with parameters of type IoSessionModifier and TypeMethodDescriptionprivate voidDefaultIoFilterChain.callNextExceptionCaught(IoFilterChain.Entry entry, IoSession session, Throwable cause) private voidDefaultIoFilterChain.callNextFilterEvent(IoFilterChain.Entry entry, IoSession session, FilterEvent event) private voidDefaultIoFilterChain.callNextInputClosed(IoFilterChain.Entry entry, IoSession session) private voidDefaultIoFilterChain.callNextMessageReceived(IoFilterChain.Entry entry, IoSession session, Object message) private voidDefaultIoFilterChain.callNextMessageSent(IoFilterChain.Entry entry, IoSession session, WriteRequest writeRequest) private voidDefaultIoFilterChain.callNextSessionClosed(IoFilterChain.Entry entry, IoSession session) private voidDefaultIoFilterChain.callNextSessionCreated(IoFilterChain.Entry entry, IoSession session) private voidDefaultIoFilterChain.callNextSessionIdle(IoFilterChain.Entry entry, IoSession session, IdleStatus status) private voidDefaultIoFilterChain.callNextSessionOpened(IoFilterChain.Entry entry, IoSession session) private voidDefaultIoFilterChain.callPreviousFilterClose(IoFilterChain.Entry entry, IoSession session) private voidDefaultIoFilterChain.callPreviousFilterWrite(IoFilterChain.Entry entry, IoSession session, WriteRequest writeRequest) voidDefaultIoFilterChain.TailFilter.event(IoFilter.NextFilter nextFilter, IoSession session, FilterEvent event) voidIoFilter.event(IoFilter.NextFilter nextFilter, IoSession session, FilterEvent event) Propagate an event up to theIoHandlervoidIoFilter.NextFilter.event(IoSession session, FilterEvent event) Forwards an event to next filter.voidIoFilterAdapter.event(IoFilter.NextFilter nextFilter, IoSession session, FilterEvent event) Propagate an event up to theIoHandlervoidDefaultIoFilterChain.TailFilter.exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, Throwable cause) voidIoFilter.exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, Throwable cause) FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.voidIoFilter.NextFilter.exceptionCaught(IoSession session, Throwable cause) ForwardsexceptionCaughtevent to next filter.voidIoFilterAdapter.exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, Throwable cause) FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.voidDefaultIoFilterChain.HeadFilter.filterClose(IoFilter.NextFilter nextFilter, IoSession session) voidIoFilter.filterClose(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoSession.closeNow()or aIoSession.closeOnFlush()method invocations.voidIoFilter.NextFilter.filterClose(IoSession session) ForwardsfilterCloseevent to next filter.voidIoFilterAdapter.filterClose(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoSession.closeNow()or aIoSession.closeOnFlush()method invocations.voidDefaultIoFilterChain.HeadFilter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) voidIoFilter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoSession.write(Object)method invocation.voidIoFilter.NextFilter.filterWrite(IoSession session, WriteRequest writeRequest) ForwardsfilterWriteevent to next filter.voidIoFilterAdapter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoSession.write(Object)method invocation.voidDefaultIoFilterChain.TailFilter.inputClosed(IoFilter.NextFilter nextFilter, IoSession session) voidIoFilter.inputClosed(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.inputClosed(IoSession)event.voidIoFilter.NextFilter.inputClosed(IoSession session) voidIoFilterAdapter.inputClosed(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.inputClosed(IoSession)event.voidDefaultIoFilterChain.TailFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) voidIoFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) FiltersIoHandler.messageReceived(IoSession,Object)event.voidIoFilter.NextFilter.messageReceived(IoSession session, Object message) ForwardsmessageReceivedevent to next filter.voidIoFilterAdapter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) FiltersIoHandler.messageReceived(IoSession,Object)event.voidDefaultIoFilterChain.TailFilter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) voidIoFilter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoHandler.messageSent(IoSession,Object)event.voidIoFilter.NextFilter.messageSent(IoSession session, WriteRequest writeRequest) ForwardsmessageSentevent to next filter.voidIoFilterAdapter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoHandler.messageSent(IoSession,Object)event.voidDefaultIoFilterChain.TailFilter.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) voidIoFilter.NextFilter.sessionClosed(IoSession session) ForwardssessionClosedevent to next filter.voidIoFilter.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionClosed(IoSession)event.voidIoFilterAdapter.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionClosed(IoSession)event.voidDefaultIoFilterChain.TailFilter.sessionCreated(IoFilter.NextFilter nextFilter, IoSession session) voidIoFilter.NextFilter.sessionCreated(IoSession session) ForwardssessionCreatedevent to next filter.voidIoFilter.sessionCreated(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionCreated(IoSession)event.voidIoFilterAdapter.sessionCreated(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionCreated(IoSession)event.voidDefaultIoFilterChain.TailFilter.sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status) voidIoFilter.NextFilter.sessionIdle(IoSession session, IdleStatus status) ForwardssessionIdleevent to next filter.voidIoFilter.sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status) FiltersIoHandler.sessionIdle(IoSession,IdleStatus)event.voidIoFilterAdapter.sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status) FiltersIoHandler.sessionIdle(IoSession,IdleStatus)event.voidDefaultIoFilterChain.TailFilter.sessionOpened(IoFilter.NextFilter nextFilter, IoSession session) voidIoFilter.NextFilter.sessionOpened(IoSession session) ForwardssessionOpenedevent to next filter.voidIoFilter.sessionOpened(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionOpened(IoSession)event.voidIoFilterAdapter.sessionOpened(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionOpened(IoSession)event.Constructors in org.apache.mina.core.filterchain with parameters of type IoSessionModifierConstructorDescriptionIoFilterEvent(IoFilter.NextFilter nextFilter, IoEventType type, IoSession session, Object parameter) Creates a new IoFilterEvent instance -
Uses of IoSession in org.apache.mina.core.future
Fields in org.apache.mina.core.future declared as IoSessionModifier and TypeFieldDescriptionprivate final IoSessionDefaultIoFuture.sessionThe associated sessionMethods in org.apache.mina.core.future that return IoSessionModifier and TypeMethodDescriptionConnectFuture.getSession()ReturnsIoSessionwhich is the result of connect operation.DefaultConnectFuture.getSession()DefaultIoFuture.getSession()IoFuture.getSession()Methods in org.apache.mina.core.future with parameters of type IoSessionModifier and TypeMethodDescriptionstatic WriteFutureDefaultWriteFuture.newNotWrittenFuture(IoSession session, Throwable cause) Returns a newDefaultWriteFuturewhich is already marked as 'not written'.static WriteFutureDefaultWriteFuture.newWrittenFuture(IoSession session) Returns a newDefaultWriteFuturewhich is already marked as 'written'.voidConnectFuture.setSession(IoSession session) Sets the newly connected session and notifies all threads waiting for this future.voidDefaultConnectFuture.setSession(IoSession session) Sets the newly connected session and notifies all threads waiting for this future.Constructors in org.apache.mina.core.future with parameters of type IoSessionModifierConstructorDescriptionDefaultCloseFuture(IoSession session) Creates a new instance.DefaultIoFuture(IoSession session) Creates a new instance associated with anIoSession.DefaultReadFuture(IoSession session) Creates a new instance.DefaultWriteFuture(IoSession session) Creates a new instance. -
Uses of IoSession in org.apache.mina.core.polling
Methods in org.apache.mina.core.polling that return IoSessionModifier and TypeMethodDescriptionfinal IoSessionAbstractPollingIoAcceptor.newSession(SocketAddress remoteAddress, SocketAddress localAddress) (Optional) Returns anIoSessionthat is bound to the specifiedlocalAddressand the specifiedremoteAddresswhich reuses the local address that is already bound by this service. -
Uses of IoSession in org.apache.mina.core.service
Classes in org.apache.mina.core.service with type parameters of type IoSessionModifier and TypeInterfaceDescriptioninterfaceIoProcessor<S extends IoSession>An internal interface to represent an 'I/O processor' that performs actual I/O operations forIoSessions.Fields in org.apache.mina.core.service with type parameters of type IoSessionModifier and TypeFieldDescriptionprivate final ConcurrentMap<Long, IoSession> IoServiceListenerSupport.managedSessionsTracks managed sessions.IoServiceListenerSupport.readOnlyManagedSessionsRead only version ofIoServiceListenerSupport.managedSessions.Methods in org.apache.mina.core.service that return IoSessionModifier and TypeMethodDescriptionIoAcceptor.newSession(SocketAddress remoteAddress, SocketAddress localAddress) (Optional) Returns anIoSessionthat is bound to the specifiedlocalAddressand the specifiedremoteAddresswhich reuses the local address that is already bound by this service.Methods in org.apache.mina.core.service that return types with arguments of type IoSessionModifier and TypeMethodDescriptionAbstractIoService.getManagedSessions()IoService.getManagedSessions()IoServiceListenerSupport.getManagedSessions()Methods in org.apache.mina.core.service with parameters of type IoSessionModifier and TypeMethodDescriptionvoidIoHandler.event(IoSession session, FilterEvent event) Invoked when a filter event is fired.voidIoHandlerAdapter.event(IoSession session, FilterEvent event) Invoked when a filter event is fired.voidIoHandler.exceptionCaught(IoSession session, Throwable cause) Invoked when any exception is thrown by userIoHandlerimplementation or by MINA.voidIoHandlerAdapter.exceptionCaught(IoSession session, Throwable cause) Invoked when any exception is thrown by userIoHandlerimplementation or by MINA.protected final voidAbstractIoConnector.finishSessionInitialization0(IoSession session, IoFuture future) Adds required internal attributes andIoFutureListeners related with event notifications to the specifiedsessionandfuture.protected voidAbstractIoService.finishSessionInitialization0(IoSession session, IoFuture future) Implement this method to perform additional tasks required for session initialization.voidIoServiceListenerSupport.fireSessionCreated(IoSession session) CallsIoServiceListener.sessionCreated(IoSession)for all registered listeners.voidIoServiceListenerSupport.fireSessionDestroyed(IoSession session) CallsIoServiceListener.sessionDestroyed(IoSession)for all registered listeners.protected final voidAbstractIoService.initSession(IoSession session, IoFuture future, IoSessionInitializer sessionInitializer) voidIoHandler.inputClosed(IoSession session) Handle the closure of an half-duplex TCP channelvoidIoHandlerAdapter.inputClosed(IoSession session) Handle the closure of an half-duplex TCP channelvoidIoHandler.messageReceived(IoSession session, Object message) Invoked when a message is received.voidIoHandlerAdapter.messageReceived(IoSession session, Object message) Invoked when a message is received.voidIoHandler.messageSent(IoSession session, Object message) Invoked when a message written byIoSession.write(Object)is sent out.voidIoHandlerAdapter.messageSent(IoSession session, Object message) Invoked when a message written byIoSession.write(Object)is sent out.voidIoHandler.sessionClosed(IoSession session) Invoked when a connection is closed.voidIoHandlerAdapter.sessionClosed(IoSession session) Invoked when a connection is closed.voidIoServiceListener.sessionClosed(IoSession session) Invoked when a new session is closed by anIoService.voidIoHandler.sessionCreated(IoSession session) Invoked from an I/O processor thread when a new connection has been created.voidIoHandlerAdapter.sessionCreated(IoSession session) Invoked from an I/O processor thread when a new connection has been created.voidIoServiceListener.sessionCreated(IoSession session) Invoked when a new session is created by anIoService.voidIoServiceListener.sessionDestroyed(IoSession session) Invoked when a session is being destroyed by anIoService.voidIoHandler.sessionIdle(IoSession session, IdleStatus status) Invoked with the relatedIdleStatuswhen a connection becomes idle.voidIoHandlerAdapter.sessionIdle(IoSession session, IdleStatus status) Invoked with the relatedIdleStatuswhen a connection becomes idle.voidIoHandler.sessionOpened(IoSession session) Invoked when a connection has been opened.voidIoHandlerAdapter.sessionOpened(IoSession session) Invoked when a connection has been opened. -
Uses of IoSession in org.apache.mina.core.session
Classes in org.apache.mina.core.session that implement IoSessionClasses in org.apache.mina.core.session that implement interfaces with type arguments of type IoSessionFields in org.apache.mina.core.session declared as IoSessionModifier and TypeFieldDescriptionprivate final IoSessionIoEvent.sessionThe associated IoSessionFields in org.apache.mina.core.session with type parameters of type IoSessionModifier and TypeFieldDescriptionprivate final IoProcessor<IoSession> DummySession.processorprivate ExpiringMap<String, IoSession> ExpiringSessionRecycler.sessionMapA map used to store the sessionMethods in org.apache.mina.core.session that return IoSessionModifier and TypeMethodDescriptionIoEvent.getSession()ExpiringSessionRecycler.recycle(SocketAddress remoteAddress, int port) Attempts to retrieve a recycledIoSession.IoSessionRecycler.recycle(SocketAddress remoteAddress, int port) Attempts to retrieve a recycledIoSession.Methods in org.apache.mina.core.session that return types with arguments of type IoSessionMethods in org.apache.mina.core.session with parameters of type IoSessionModifier and TypeMethodDescriptionvoidRemoves all the requests from this session's queue.booleanDefaultIoSessionDataStructureFactory.DefaultIoSessionAttributeMap.containsAttribute(IoSession session, Object key) booleanIoSessionAttributeMap.containsAttribute(IoSession session, Object key) voidDisposes any releases associated with the specified session.voidDisposes any releases associated with the specified session.voidDisposes any releases associated with the specified session.voidDefaultIoSessionDataStructureFactory.DefaultIoSessionAttributeMap.getAttribute(IoSession session, Object key, Object defaultValue) IoSessionAttributeMap.getAttribute(IoSession session, Object key, Object defaultValue) DefaultIoSessionDataStructureFactory.DefaultIoSessionAttributeMap.getAttributeKeys(IoSession session) IoSessionAttributeMap.getAttributeKeys(IoSession session) DefaultIoSessionDataStructureFactory.getAttributeMap(IoSession session) IoSessionDataStructureFactory.getAttributeMap(IoSession session) DefaultIoSessionDataStructureFactory.getWriteRequestQueue(IoSession session) IoSessionDataStructureFactory.getWriteRequestQueue(IoSession session) voidIoSessionInitializer.initializeSession(IoSession session, T future) Initialize a sessionbooleanTells if the WriteRequest queue is empty or not for a sessionstatic voidAbstractIoSession.notifyIdleSession(IoSession session, long currentTime) Fires aIoEventType.SESSION_IDLEevent if applicable for the specifiedsession.private static voidAbstractIoSession.notifyIdleSession0(IoSession session, long currentTime, long idleTime, IdleStatus status, long lastIoTime) private static voidAbstractIoSession.notifyWriteTimeout(IoSession session, long currentTime) voidDefaultIoSessionDataStructureFactory.DefaultWriteRequestQueue.offer(IoSession session, WriteRequest writeRequest) Add a new WriteRequest to the session write's queueGet the first request available in the queue for a session.voidCalled when the underlying transport creates or writes a newIoSession.voidCalled when the underlying transport creates or writes a newIoSession.voidCalled when anIoSessionis explicitly closed.voidCalled when anIoSessionis explicitly closed.DefaultIoSessionDataStructureFactory.DefaultIoSessionAttributeMap.removeAttribute(IoSession session, Object key) Removes a user-defined attribute with the specified key.booleanDefaultIoSessionDataStructureFactory.DefaultIoSessionAttributeMap.removeAttribute(IoSession session, Object key, Object value) Removes a user defined attribute with the specified key if the current attribute value is equal to the specified value.IoSessionAttributeMap.removeAttribute(IoSession session, Object key) Removes a user-defined attribute with the specified key.booleanIoSessionAttributeMap.removeAttribute(IoSession session, Object key, Object value) Removes a user defined attribute with the specified key if the current attribute value is equal to the specified value.booleanDefaultIoSessionDataStructureFactory.DefaultIoSessionAttributeMap.replaceAttribute(IoSession session, Object key, Object oldValue, Object newValue) Replaces a user defined attribute with the specified key if the value of the attribute is equals to the specified old value.booleanIoSessionAttributeMap.replaceAttribute(IoSession session, Object key, Object oldValue, Object newValue) Replaces a user defined attribute with the specified key if the value of the attribute is equals to the specified old value.DefaultIoSessionDataStructureFactory.DefaultIoSessionAttributeMap.setAttribute(IoSession session, Object key, Object value) Sets a user-defined attribute.IoSessionAttributeMap.setAttribute(IoSession session, Object key, Object value) Sets a user-defined attribute.DefaultIoSessionDataStructureFactory.DefaultIoSessionAttributeMap.setAttributeIfAbsent(IoSession session, Object key, Object value) Sets a user defined attribute if the attribute with the specified key is not set yet.IoSessionAttributeMap.setAttributeIfAbsent(IoSession session, Object key, Object value) Sets a user defined attribute if the attribute with the specified key is not set yet.Method parameters in org.apache.mina.core.session with type arguments of type IoSessionModifier and TypeMethodDescriptionstatic voidAbstractIoSession.notifyIdleness(Iterator<? extends IoSession> sessions, long currentTime) Fires aIoEventType.SESSION_IDLEevent to any applicable sessions in the specified collection.Constructors in org.apache.mina.core.session with parameters of type IoSessionModifierConstructorDescriptionIoEvent(IoEventType type, IoSession session, Object parameter) Creates a new IoEvent -
Uses of IoSession in org.apache.mina.core.write
Methods in org.apache.mina.core.write with parameters of type IoSessionModifier and TypeMethodDescriptionvoidRemoves all the requests from this session's queue.voidDisposes any releases associated with the specified session.booleanTells if the WriteRequest queue is empty or not for a sessionvoidWriteRequestQueue.offer(IoSession session, WriteRequest writeRequest) Add a new WriteRequest to the session write's queueGet the first request available in the queue for a session. -
Uses of IoSession in org.apache.mina.filter.buffer
Fields in org.apache.mina.filter.buffer with type parameters of type IoSessionModifier and TypeFieldDescriptionprivate final LazyInitializedCacheMap<IoSession, IoBuffer> BufferedWriteFilter.buffersMapMethods in org.apache.mina.filter.buffer with parameters of type IoSessionModifier and TypeMethodDescriptionvoidBufferedWriteFilter.exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, Throwable cause) FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.voidBufferedWriteFilter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoSession.write(Object)method invocation.voidFlushes the buffered data.private voidInternal method that actually frees theIoBufferthat contains the buffered data that has not been flushed.private voidBufferedWriteFilter.internalFlush(IoFilter.NextFilter nextFilter, IoSession session, IoBuffer buf) Internal method that actually flushes the buffered data.voidBufferedWriteFilter.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionClosed(IoSession)event.private voidWrites anIoBufferto the session's buffer.private voidConstructor parameters in org.apache.mina.filter.buffer with type arguments of type IoSessionModifierConstructorDescriptionBufferedWriteFilter(int bufferSize, LazyInitializedCacheMap<IoSession, IoBuffer> buffersMap) Constructor which sets buffer size tobufferSize. -
Uses of IoSession in org.apache.mina.filter.codec
Classes in org.apache.mina.filter.codec that implement IoSessionModifier and TypeClassDescriptionclassFields in org.apache.mina.filter.codec declared as IoSessionModifier and TypeFieldDescriptionprivate final IoSessionProtocolCodecFilter.ProtocolEncoderOutputImpl.sessionMethods in org.apache.mina.filter.codec with parameters of type IoSessionModifier and TypeMethodDescriptionvoidCumulativeProtocolDecoder.decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) Cumulates content ofininto internal buffer and forwards decoding request to doDecode(IoSession, IoBuffer, ProtocolDecoderOutput).voidProtocolDecoder.decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) Decodes binary or protocol-specific content into higher-level message objects.voidSynchronizedProtocolDecoder.decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) Decodes binary or protocol-specific content into higher-level message objects.voidReleases the cumulative buffer used by the specifiedsession.voidReleases all resources related with this decoder.voidOverride this method to dispose all resources related with this decoder.voidReleases all resources related with this encoder.voidOverride this method dispose all resources related with this encoder.voidReleases all resources related with this decoder.voidReleases all resources related with this encoder.private voidProtocolCodecFilter.disposeCodec(IoSession session) Dispose the encoder, decoder, and the callback for the decoded messages.private voidProtocolCodecFilter.disposeDecoder(IoSession session) Dispose the decoder, removing its instance from the session's attributes, and calling the associated dispose method.private voidProtocolCodecFilter.disposeDecoderOut(IoSession session) Remove the decoder callback from the session's attributes.private voidProtocolCodecFilter.disposeEncoder(IoSession session) Dispose the encoder, removing its instance from the session's attributes, and calling the associated dispose method.protected abstract booleanCumulativeProtocolDecoder.doDecode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) Implement this method to consume the specified cumulative buffer and decode its content into message(s).voidProtocolEncoder.encode(IoSession session, Object message, ProtocolEncoderOutput out) Encodes higher-level message objects into binary or protocol-specific data.voidSynchronizedProtocolEncoder.encode(IoSession session, Object message, ProtocolEncoderOutput out) Encodes higher-level message objects into binary or protocol-specific data.voidProtocolCodecFilter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoSession.write(Object)method invocation.voidProtocolDecoder.finishDecode(IoSession session, ProtocolDecoderOutput out) Invoked when the specifiedsessionis closed.voidProtocolDecoderAdapter.finishDecode(IoSession session, ProtocolDecoderOutput out) Override this method to deal with the closed connection.voidSynchronizedProtocolDecoder.finishDecode(IoSession session, ProtocolDecoderOutput out) Invoked when the specifiedsessionis closed.voidProtocolCodecFilter.ProtocolDecoderOutputImpl.flush(IoFilter.NextFilter nextFilter, IoSession session) Flushes all messages you wrote viaProtocolDecoderOutput.write(Object)to the next filter.voidProtocolDecoderOutput.flush(IoFilter.NextFilter nextFilter, IoSession session) Flushes all messages you wrote viaProtocolDecoderOutput.write(Object)to the next filter.ProtocolCodecFactory.getDecoder(IoSession session) Returns a new (or reusable) instance ofProtocolDecoderwhich decodes binary or protocol-specific data into message objects.private ProtocolDecoderOutputProtocolCodecFilter.getDecoderOut(IoSession session, IoFilter.NextFilter nextFilter) Return a reference to the decoder callback.ProtocolCodecFactory.getEncoder(IoSession session) Returns a new (or reusable) instance ofProtocolEncoderwhich encodes message objects into binary or protocol-specific data.ProtocolCodecFilter.getEncoder(IoSession session) Get the encoder instance from a given session.private ProtocolEncoderOutputProtocolCodecFilter.getEncoderOut(IoSession session, IoFilter.NextFilter nextFilter, WriteRequest writeRequest) voidProtocolCodecFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) Process the incoming message, calling the session decoder.voidProtocolCodecFilter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoHandler.messageSent(IoSession,Object)event.private voidCumulativeProtocolDecoder.removeSessionBuffer(IoSession session) voidProtocolCodecFilter.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionClosed(IoSession)event.private voidCumulativeProtocolDecoder.storeRemainingInSession(IoBuffer buf, IoSession session) Constructors in org.apache.mina.filter.codec with parameters of type IoSessionModifierConstructorDescriptionProtocolEncoderOutputImpl(IoSession session, IoFilter.NextFilter nextFilter, WriteRequest writeRequest) -
Uses of IoSession in org.apache.mina.filter.codec.demux
Methods in org.apache.mina.filter.codec.demux with parameters of type IoSessionModifier and TypeMethodDescriptionChecks the specified buffer is decodable by this decoder.MessageDecoder.decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) Decodes binary or protocol-specific content into higher-level message objects.voidReleases the cumulative buffer used by the specifiedsession.voidReleases all resources related with this encoder.protected booleanDemuxingProtocolDecoder.doDecode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) Implement this method to consume the specified cumulative buffer and decode its content into message(s).voidDemuxingProtocolEncoder.encode(IoSession session, Object message, ProtocolEncoderOutput out) Encodes higher-level message objects into binary or protocol-specific data.voidMessageEncoder.encode(IoSession session, T message, ProtocolEncoderOutput out) Encodes higher-level message objects into binary or protocol-specific data.voidDemuxingProtocolDecoder.finishDecode(IoSession session, ProtocolDecoderOutput out) Override this method to deal with the closed connection.voidMessageDecoder.finishDecode(IoSession session, ProtocolDecoderOutput out) Invoked when the specifiedsessionis closed while this decoder was parsing the data.voidMessageDecoderAdapter.finishDecode(IoSession session, ProtocolDecoderOutput out) Override this method to deal with the closed connection.DemuxingProtocolCodecFactory.getDecoder(IoSession session) Returns a new (or reusable) instance ofProtocolDecoderwhich decodes binary or protocol-specific data into message objects.DemuxingProtocolCodecFactory.getEncoder(IoSession session) Returns a new (or reusable) instance ofProtocolEncoderwhich encodes message objects into binary or protocol-specific data.private DemuxingProtocolDecoder.Stateprivate DemuxingProtocolEncoder.State -
Uses of IoSession in org.apache.mina.filter.codec.prefixedstring
Methods in org.apache.mina.filter.codec.prefixedstring with parameters of type IoSessionModifier and TypeMethodDescriptionprotected booleanPrefixedStringDecoder.doDecode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) Implement this method to consume the specified cumulative buffer and decode its content into message(s).voidPrefixedStringEncoder.encode(IoSession session, Object message, ProtocolEncoderOutput out) Encodes higher-level message objects into binary or protocol-specific data.PrefixedStringCodecFactory.getDecoder(IoSession session) Returns a new (or reusable) instance ofProtocolDecoderwhich decodes binary or protocol-specific data into message objects.PrefixedStringCodecFactory.getEncoder(IoSession session) Returns a new (or reusable) instance ofProtocolEncoderwhich encodes message objects into binary or protocol-specific data. -
Uses of IoSession in org.apache.mina.filter.codec.serialization
Methods in org.apache.mina.filter.codec.serialization with parameters of type IoSessionModifier and TypeMethodDescriptionprotected booleanObjectSerializationDecoder.doDecode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) Implement this method to consume the specified cumulative buffer and decode its content into message(s).voidObjectSerializationEncoder.encode(IoSession session, Object message, ProtocolEncoderOutput out) Encodes higher-level message objects into binary or protocol-specific data.ObjectSerializationCodecFactory.getDecoder(IoSession session) Returns a new (or reusable) instance ofProtocolDecoderwhich decodes binary or protocol-specific data into message objects.ObjectSerializationCodecFactory.getEncoder(IoSession session) Returns a new (or reusable) instance ofProtocolEncoderwhich encodes message objects into binary or protocol-specific data. -
Uses of IoSession in org.apache.mina.filter.codec.statemachine
Fields in org.apache.mina.filter.codec.statemachine declared as IoSessionMethods in org.apache.mina.filter.codec.statemachine with parameters of type IoSessionModifier and TypeMethodDescriptionvoidDecodingStateProtocolDecoder.decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) Decodes binary or protocol-specific content into higher-level message objects.voidReleases all resources related with this decoder.voidDecodingStateProtocolDecoder.finishDecode(IoSession session, ProtocolDecoderOutput out) Invoked when the specifiedsessionis closed. -
Uses of IoSession in org.apache.mina.filter.codec.textline
Methods in org.apache.mina.filter.codec.textline with parameters of type IoSessionModifier and TypeMethodDescriptionvoidTextLineDecoder.decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) Decodes binary or protocol-specific content into higher-level message objects.private voidTextLineDecoder.decodeAuto(TextLineDecoder.Context ctx, IoSession session, IoBuffer in, ProtocolDecoderOutput out) Decode a line using the default delimiter on the current systemprivate voidTextLineDecoder.decodeNormal(TextLineDecoder.Context ctx, IoSession session, IoBuffer in, ProtocolDecoderOutput out) Decode a line using the delimiter defined by the callervoidReleases all resources related with this decoder.voidTextLineEncoder.encode(IoSession session, Object message, ProtocolEncoderOutput out) Encodes higher-level message objects into binary or protocol-specific data.voidTextLineDecoder.finishDecode(IoSession session, ProtocolDecoderOutput out) Invoked when the specifiedsessionis closed.private TextLineDecoder.ContextTextLineDecoder.getContext(IoSession session) TextLineCodecFactory.getDecoder(IoSession session) Returns a new (or reusable) instance ofProtocolDecoderwhich decodes binary or protocol-specific data into message objects.TextLineCodecFactory.getEncoder(IoSession session) Returns a new (or reusable) instance ofProtocolEncoderwhich encodes message objects into binary or protocol-specific data.protected voidTextLineDecoder.writeText(IoSession session, String text, ProtocolDecoderOutput out) By default, this method propagates the decoded line of text toProtocolDecoderOutput#write(Object). -
Uses of IoSession in org.apache.mina.filter.compression
Methods in org.apache.mina.filter.compression with parameters of type IoSessionModifier and TypeMethodDescriptionprotected ObjectCompressionFilter.doFilterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) voidCompressionFilter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoSession.write(Object)method invocation.voidCompressionFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) -
Uses of IoSession in org.apache.mina.filter.errorgenerating
Methods in org.apache.mina.filter.errorgenerating with parameters of type IoSessionModifier and TypeMethodDescriptionvoidErrorGeneratingFilter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) private IoBufferErrorGeneratingFilter.insertBytesToNewIoBuffer(IoSession session, IoBuffer buffer) private voidErrorGeneratingFilter.manipulateIoBuffer(IoSession session, IoBuffer buffer) voidErrorGeneratingFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) -
Uses of IoSession in org.apache.mina.filter.executor
Fields in org.apache.mina.filter.executor declared as IoSessionModifier and TypeFieldDescriptionprivate static final IoSessionOrderedThreadPoolExecutor.EXIT_SIGNALprivate final IoSessionPriorityThreadPoolExecutor.SessionEntry.sessionFields in org.apache.mina.filter.executor with type parameters of type IoSessionModifier and TypeFieldDescriptionprivate final Comparator<IoSession> PriorityThreadPoolExecutor.comparatorThe session comparatorprivate final Comparator<IoSession> PriorityThreadPoolExecutor.SessionEntry.comparatorprivate final BlockingQueue<IoSession> OrderedThreadPoolExecutor.waitingSessionsA queue used to store the available sessionsMethods in org.apache.mina.filter.executor that return IoSessionModifier and TypeMethodDescriptionprivate IoSessionOrderedThreadPoolExecutor.Worker.fetchSession()private IoSessionPriorityThreadPoolExecutor.Worker.fetchSession()PriorityThreadPoolExecutor.SessionEntry.getSession()Methods in org.apache.mina.filter.executor with parameters of type IoSessionModifier and TypeMethodDescriptionfinal voidExecutorFilter.exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, Throwable cause) FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.final voidExecutorFilter.filterClose(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoSession.closeNow()or aIoSession.closeOnFlush()method invocations.final voidExecutorFilter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoSession.write(Object)method invocation.voidWriteRequestFilter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoSession.write(Object)method invocation.OrderedThreadPoolExecutor.getSessionTasksQueue(IoSession session) Get the session's tasks queue.PriorityThreadPoolExecutor.getSessionTasksQueue(IoSession session) Get the session's tasks queue.final voidExecutorFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) FiltersIoHandler.messageReceived(IoSession,Object)event.final voidExecutorFilter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoHandler.messageSent(IoSession,Object)event.final voidExecutorFilter.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionClosed(IoSession)event.final voidExecutorFilter.sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status) FiltersIoHandler.sessionIdle(IoSession,IdleStatus)event.final voidExecutorFilter.sessionOpened(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionOpened(IoSession)event.Constructors in org.apache.mina.filter.executor with parameters of type IoSessionConstructor parameters in org.apache.mina.filter.executor with type arguments of type IoSessionModifierConstructorDescriptionPriorityThreadPoolExecutor(int minimumPoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, ThreadFactory threadFactory, IoEventQueueHandler eventQueueHandler, Comparator<IoSession> comparator) Creates a new instance of a PrioritisedOrderedThreadPoolExecutor.PriorityThreadPoolExecutor(int maximumPoolSize, Comparator<IoSession> comparator) Creates a default ThreadPool, with default values : maximum pool size is 16 keepAlive set to 30 seconds A default ThreadFactory All events are acceptedPriorityThreadPoolExecutor(Comparator<IoSession> comparator) Creates a default ThreadPool, with default values : minimum pool size is 0 maximum pool size is 16 keepAlive set to 30 seconds A default ThreadFactory All events are acceptedSessionEntry(IoSession session, Comparator<IoSession> comparator) -
Uses of IoSession in org.apache.mina.filter.firewall
Methods in org.apache.mina.filter.firewall with parameters of type IoSessionModifier and TypeMethodDescriptionprivate voidBlacklistFilter.blockSession(IoSession session) voidBlacklistFilter.event(IoFilter.NextFilter nextFilter, IoSession session, FilterEvent event) Propagate an event up to theIoHandlerprivate booleanprotected booleanConnectionThrottleFilter.isConnectionOk(IoSession session) Method responsible for deciding if a connection is OK to continuevoidBlacklistFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) FiltersIoHandler.messageReceived(IoSession,Object)event.voidBlacklistFilter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoHandler.messageSent(IoSession,Object)event.voidBlacklistFilter.sessionCreated(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionCreated(IoSession)event.voidConnectionThrottleFilter.sessionCreated(IoFilter.NextFilter nextFilter, IoSession session) voidBlacklistFilter.sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status) FiltersIoHandler.sessionIdle(IoSession,IdleStatus)event.voidBlacklistFilter.sessionOpened(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionOpened(IoSession)event. -
Uses of IoSession in org.apache.mina.filter.keepalive
Methods in org.apache.mina.filter.keepalive with parameters of type IoSessionModifier and TypeMethodDescriptionKeepAliveMessageFactory.getRequest(IoSession session) KeepAliveMessageFactory.getResponse(IoSession session, Object request) private voidKeepAliveFilter.handlePingTimeout(IoSession session) private booleanKeepAliveFilter.isKeepAliveMessage(IoSession session, Object message) booleanbooleanKeepAliveMessageFactory.isResponse(IoSession session, Object message) voidKeepAliveRequestTimeoutHandler.keepAliveRequestTimedOut(KeepAliveFilter filter, IoSession session) Invoked whenKeepAliveFiltercouldn't receive the response for the sent keep alive message.private voidKeepAliveFilter.markStatus(IoSession session) voidKeepAliveFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) FiltersIoHandler.messageReceived(IoSession,Object)event.voidKeepAliveFilter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoHandler.messageSent(IoSession,Object)event.private voidKeepAliveFilter.resetStatus(IoSession session) voidKeepAliveFilter.sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status) FiltersIoHandler.sessionIdle(IoSession,IdleStatus)event. -
Uses of IoSession in org.apache.mina.filter.logging
Methods in org.apache.mina.filter.logging with parameters of type IoSessionModifier and TypeMethodDescriptionvoidLoggingFilter.exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, Throwable cause) FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.protected voidMdcInjectionFilter.fillContext(IoSession session, Map<String, String> context) write key properties of the session to the Mapped Diagnostic Context sub-classes could override this method to map more/other attributesMdcInjectionFilter.getAndFillContext(IoSession session) MdcInjectionFilter.getContext(IoSession session) static StringMdcInjectionFilter.getProperty(IoSession session, String key) Get the property associated with a given keyvoidLoggingFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) FiltersIoHandler.messageReceived(IoSession,Object)event.voidLoggingFilter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoHandler.messageSent(IoSession,Object)event.static voidMdcInjectionFilter.removeProperty(IoSession session, String key) Remove a property from the context for the given session This property will be removed from the MDC for all subsequent eventsvoidLoggingFilter.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionClosed(IoSession)event.voidLoggingFilter.sessionCreated(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionCreated(IoSession)event.voidLoggingFilter.sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status) FiltersIoHandler.sessionIdle(IoSession,IdleStatus)event.voidLoggingFilter.sessionOpened(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionOpened(IoSession)event.static voidMdcInjectionFilter.setProperty(IoSession session, String key, String value) Add a property to the context for the given session This property will be added to the MDC for all subsequent events -
Uses of IoSession in org.apache.mina.filter.ssl
Fields in org.apache.mina.filter.ssl declared as IoSessionMethods in org.apache.mina.filter.ssl that return IoSessionMethods in org.apache.mina.filter.ssl with parameters of type IoSessionModifier and TypeMethodDescriptionvoidSslFilter.exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, Throwable cause) voidSslFilter.filterClose(IoFilter.NextFilter nextFilter, IoSession session) voidSslFilter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) (package private) StringSslFilter.getSessionInfo(IoSession session) An extended toString() method for sessions.SslFilter.getSslSession(IoSession session) Returns the underlyingSSLSessionfor the specified session.private SslHandlerSslFilter.getSslSessionHandler(IoSession session) private WriteFutureSslFilter.initiateClosure(IoFilter.NextFilter nextFilter, IoSession session) private voidSslFilter.initiateHandshake(IoFilter.NextFilter nextFilter, IoSession session) voidSslFilter.initiateHandshake(IoSession session) Initiate the SSL handshake.booleanbooleanSslFilter.isSslStarted(IoSession session) voidSslFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) voidSslFilter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) voidSslFilter.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) boolean(Re)starts SSL session for the specifiedsessionif not started yet.Stops the SSL session by sending TLSclose_notifymessage to initiate TLS closure.Constructors in org.apache.mina.filter.ssl with parameters of type IoSessionModifierConstructorDescription(package private)SslHandler(SslFilter sslFilter, IoSession session) Create a new SSL Handler, and initialize it. -
Uses of IoSession in org.apache.mina.filter.statistic
Methods in org.apache.mina.filter.statistic with parameters of type IoSessionModifier and TypeMethodDescriptionvoidProfilerTimerFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) Profile a MessageReceived event.voidProfilerTimerFilter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) Profile a MessageSent event.voidProfilerTimerFilter.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) Profile a SessionClosed event.voidProfilerTimerFilter.sessionCreated(IoFilter.NextFilter nextFilter, IoSession session) Profile a SessionCreated event.voidProfilerTimerFilter.sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status) Profile a SessionIdle event.voidProfilerTimerFilter.sessionOpened(IoFilter.NextFilter nextFilter, IoSession session) Profile a SessionOpened event. -
Uses of IoSession in org.apache.mina.filter.stream
Methods in org.apache.mina.filter.stream with parameters of type IoSessionModifier and TypeMethodDescriptionvoidAbstractStreamWriteFilter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoSession.write(Object)method invocation.private Queue<WriteRequest> AbstractStreamWriteFilter.getWriteRequestQueue(IoSession session) voidAbstractStreamWriteFilter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoHandler.messageSent(IoSession,Object)event.private Queue<WriteRequest> AbstractStreamWriteFilter.removeWriteRequestQueue(IoSession session) -
Uses of IoSession in org.apache.mina.filter.util
Methods in org.apache.mina.filter.util with parameters of type IoSessionModifier and TypeMethodDescriptionvoidCommonEventFilter.event(IoFilter.NextFilter nextFilter, IoSession session, FilterEvent event) Propagate an event up to theIoHandlerfinal voidCommonEventFilter.exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, Throwable cause) FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.voidReferenceCountingFilter.exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, Throwable cause) FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.final voidCommonEventFilter.filterClose(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoSession.closeNow()or aIoSession.closeOnFlush()method invocations.voidReferenceCountingFilter.filterClose(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoSession.closeNow()or aIoSession.closeOnFlush()method invocations.final voidCommonEventFilter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoSession.write(Object)method invocation.voidReferenceCountingFilter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoSession.write(Object)method invocation.voidCommonEventFilter.inputClosed(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.inputClosed(IoSession)event.final voidCommonEventFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) FiltersIoHandler.messageReceived(IoSession,Object)event.voidReferenceCountingFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) FiltersIoHandler.messageReceived(IoSession,Object)event.final voidCommonEventFilter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoHandler.messageSent(IoSession,Object)event.voidReferenceCountingFilter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) FiltersIoHandler.messageSent(IoSession,Object)event.final voidCommonEventFilter.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionClosed(IoSession)event.voidReferenceCountingFilter.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionClosed(IoSession)event.final voidCommonEventFilter.sessionCreated(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionCreated(IoSession)event.voidReferenceCountingFilter.sessionCreated(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionCreated(IoSession)event.voidSessionAttributeInitializingFilter.sessionCreated(IoFilter.NextFilter nextFilter, IoSession session) Puts all pre-configured attributes into the actual session attribute map and forward the event to the next filter.final voidCommonEventFilter.sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status) FiltersIoHandler.sessionIdle(IoSession,IdleStatus)event.voidReferenceCountingFilter.sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status) FiltersIoHandler.sessionIdle(IoSession,IdleStatus)event.final voidCommonEventFilter.sessionOpened(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionOpened(IoSession)event.voidReferenceCountingFilter.sessionOpened(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionOpened(IoSession)event. -
Uses of IoSession in org.apache.mina.handler.chain
Methods in org.apache.mina.handler.chain with parameters of type IoSessionModifier and TypeMethodDescriptionprivate voidIoHandlerChain.callNextCommand(IoHandlerChain.Entry entry, IoSession session, Object message) voidIoHandlerChain.execute(IoHandlerCommand.NextCommand next, IoSession session, Object message) Execute a unit of processing work to be performed.voidIoHandlerCommand.execute(IoHandlerCommand.NextCommand next, IoSession session, Object message) Execute a unit of processing work to be performed.voidForwards the request to the nextIoHandlerCommandin theIoHandlerChain.voidChainedIoHandler.messageReceived(IoSession session, Object message) Handles the specifiedmessageReceivedevent with theIoHandlerCommandorIoHandlerChainyou specified in the constructor. -
Uses of IoSession in org.apache.mina.handler.demux
Methods in org.apache.mina.handler.demux with parameters of type IoSessionModifier and TypeMethodDescriptionvoidDemuxingIoHandler.exceptionCaught(IoSession session, Throwable cause) Invoked when any exception is thrown by user IoHandler implementation or by MINA.voidExceptionHandler.exceptionCaught(IoSession session, E cause) Invoked when the specific type of exception is caught from the specifiedsession.voidMessageHandler.handleMessage(IoSession session, M message) Invoked when the specific type of message is received from or sent to the specifiedsession.voidDemuxingIoHandler.messageReceived(IoSession session, Object message) Forwards the received events into the appropriateMessageHandlerwhich is registered byDemuxingIoHandler.addReceivedMessageHandler(Class, MessageHandler).voidDemuxingIoHandler.messageSent(IoSession session, Object message) Invoked when a message written by IoSession.write(Object) is sent out. -
Uses of IoSession in org.apache.mina.handler.multiton
Fields in org.apache.mina.handler.multiton declared as IoSessionModifier and TypeFieldDescriptionprivate final IoSessionSingleSessionIoHandlerAdapter.sessionDeprecated.The session to which the handler is assigned.Methods in org.apache.mina.handler.multiton that return IoSessionModifier and TypeMethodDescriptionprotected IoSessionSingleSessionIoHandlerAdapter.getSession()Deprecated.Retrieves the session to which this handler is assigned.Methods in org.apache.mina.handler.multiton with parameters of type IoSessionModifier and TypeMethodDescriptionvoidSingleSessionIoHandlerDelegate.event(IoSession session, FilterEvent event) Deprecated.Delegates the method call to theSingleSessionIoHandler.event(FilterEvent)method of the handler assigned to this session.voidSingleSessionIoHandlerDelegate.exceptionCaught(IoSession session, Throwable cause) Deprecated.Delegates the method call to theSingleSessionIoHandler.exceptionCaught(Throwable)method of the handler assigned to this session.SingleSessionIoHandlerFactory.getHandler(IoSession session) Deprecated.voidSingleSessionIoHandler.inputClosed(IoSession session) Deprecated.Invoked when a half-duplex connection is closedvoidSingleSessionIoHandlerAdapter.inputClosed(IoSession session) Deprecated.Invoked when a half-duplex connection is closedvoidSingleSessionIoHandlerDelegate.inputClosed(IoSession session) Deprecated.Handle the closure of an half-duplex TCP channelvoidSingleSessionIoHandlerDelegate.messageReceived(IoSession session, Object message) Deprecated.Delegates the method call to theSingleSessionIoHandler.messageReceived(Object)method of the handler assigned to this session.voidSingleSessionIoHandlerDelegate.messageSent(IoSession session, Object message) Deprecated.Delegates the method call to theSingleSessionIoHandler.messageSent(Object)method of the handler assigned to this session.voidSingleSessionIoHandlerDelegate.sessionClosed(IoSession session) Deprecated.Delegates the method call to theSingleSessionIoHandler.sessionClosed()method of the handler assigned to this session.voidSingleSessionIoHandlerDelegate.sessionCreated(IoSession session) Deprecated.Creates a new instance with the factory passed to the constructor of this class.voidSingleSessionIoHandlerDelegate.sessionIdle(IoSession session, IdleStatus status) Deprecated.Delegates the method call to theSingleSessionIoHandler.sessionIdle(IdleStatus)method of the handler assigned to this session.voidSingleSessionIoHandlerDelegate.sessionOpened(IoSession session) Deprecated.Delegates the method call to theSingleSessionIoHandler.sessionOpened()method of the handler assigned to this session.Constructors in org.apache.mina.handler.multiton with parameters of type IoSessionModifierConstructorDescriptionSingleSessionIoHandlerAdapter(IoSession session) Deprecated.Creates a new instance that is assigned to the passed in session. -
Uses of IoSession in org.apache.mina.handler.stream
Fields in org.apache.mina.handler.stream declared as IoSessionMethods in org.apache.mina.handler.stream with parameters of type IoSessionModifier and TypeMethodDescriptionvoidStreamIoHandler.exceptionCaught(IoSession session, Throwable cause) Forwards caught exceptions to input stream.voidStreamIoHandler.messageReceived(IoSession session, Object buf) Forwards read data to input stream.protected abstract voidStreamIoHandler.processStreamIo(IoSession session, InputStream in, OutputStream out) Implement this method to execute your stream I/O logic; please note that you must forward the process request to other thread or thread pool.voidStreamIoHandler.sessionClosed(IoSession session) Closes streamsvoidStreamIoHandler.sessionIdle(IoSession session, IdleStatus status) Handles read timeout.voidStreamIoHandler.sessionOpened(IoSession session) Initializes streams and timeout settings.Constructors in org.apache.mina.handler.stream with parameters of type IoSession -
Uses of IoSession in org.apache.mina.http
Methods in org.apache.mina.http with parameters of type IoSessionModifier and TypeMethodDescriptionvoidHttpClientDecoder.decode(IoSession session, IoBuffer msg, ProtocolDecoderOutput out) Decodes binary or protocol-specific content into higher-level message objects.voidHttpServerDecoder.decode(IoSession session, IoBuffer msg, ProtocolDecoderOutput out) Decodes binary or protocol-specific content into higher-level message objects.voidReleases all resources related with this decoder.voidReleases all resources related with this encoder.voidReleases all resources related with this decoder.voidReleases all resources related with this encoder.voidHttpClientEncoder.encode(IoSession session, Object message, ProtocolEncoderOutput out) Encodes higher-level message objects into binary or protocol-specific data.voidHttpServerEncoder.encode(IoSession session, Object message, ProtocolEncoderOutput out) Encodes higher-level message objects into binary or protocol-specific data.voidHttpClientDecoder.finishDecode(IoSession session, ProtocolDecoderOutput out) Invoked when the specifiedsessionis closed.voidHttpServerDecoder.finishDecode(IoSession session, ProtocolDecoderOutput out) Invoked when the specifiedsessionis closed.voidHttpClientCodec.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionClosed(IoSession)event.voidHttpServerCodec.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) FiltersIoHandler.sessionClosed(IoSession)event. -
Uses of IoSession in org.apache.mina.proxy
Methods in org.apache.mina.proxy that return IoSessionMethods in org.apache.mina.proxy with parameters of type IoSessionModifier and TypeMethodDescriptionprotected ConnectFutureProxyConnector.fireConnected(IoSession session) Fires the connection event on the real future to notify the client.abstract voidAbstractProxyIoHandler.proxySessionOpened(IoSession session) Method called only when handshake has completed.final voidAbstractProxyIoHandler.sessionOpened(IoSession session) Hooked session opened event. -
Uses of IoSession in org.apache.mina.proxy.event
Fields in org.apache.mina.proxy.event declared as IoSessionMethods in org.apache.mina.proxy.event that return IoSessionMethods in org.apache.mina.proxy.event with parameters of type IoSessionModifier and TypeMethodDescriptionprivate static voidIoSessionEvent.deliverEvent(IoFilter.NextFilter nextFilter, IoSession session, IoSessionEventType type, IdleStatus status) Static method which effectively delivers the specified event to the next filternextFilteron thesession.Constructors in org.apache.mina.proxy.event with parameters of type IoSessionModifierConstructorDescriptionIoSessionEvent(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status) Creates an instance of this class when event type isIoSessionEventType.IDLE.IoSessionEvent(IoFilter.NextFilter nextFilter, IoSession session, IoSessionEventType type) Creates an instance of this class when event type differs fromIoSessionEventType.IDLE. -
Uses of IoSession in org.apache.mina.proxy.filter
Methods in org.apache.mina.proxy.filter with parameters of type IoSessionModifier and TypeMethodDescriptionvoidProxyFilter.exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, Throwable cause) Called when an exception occurs in the chain.voidProxyFilter.filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) Filters outgoing writes, queueing them up if necessary while a handshake is ongoing.private ProxyLogicHandlerProxyFilter.getProxyHandler(IoSession session) Get theProxyLogicHandlerfor a given session.voidProxyFilter.messageReceived(IoFilter.NextFilter nextFilter, IoSession session, Object message) Receives data from the remote host, passes to the handler if a handshake is in progress, otherwise passes on transparently.voidProxyFilter.messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest) Filter handshake related messages from reaching the messageSent callbacks of downstream filters.voidProxyFilter.sessionClosed(IoFilter.NextFilter nextFilter, IoSession session) Event is stored in anIoSessionEventQueuefor later delivery to the next filter in the chain when the handshake would have succeed.voidProxyFilter.sessionCreated(IoFilter.NextFilter nextFilter, IoSession session) Called when the session is created.voidProxyFilter.sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status) Event is stored in anIoSessionEventQueuefor later delivery to the next filter in the chain when the handshake would have succeed.voidProxyFilter.sessionOpened(IoFilter.NextFilter nextFilter, IoSession session) Event is stored in anIoSessionEventQueuefor later delivery to the next filter in the chain when the handshake would have succeed.voidProxyFilter.writeData(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest, boolean isHandshakeData) Actually write data. -
Uses of IoSession in org.apache.mina.proxy.handlers.http.digest
Methods in org.apache.mina.proxy.handlers.http.digest with parameters of type IoSession -
Uses of IoSession in org.apache.mina.proxy.session
Fields in org.apache.mina.proxy.session declared as IoSessionMethods in org.apache.mina.proxy.session that return IoSessionMethods in org.apache.mina.proxy.session with parameters of type IoSessionModifier and TypeMethodDescriptionvoidProxyIoSessionInitializer.initializeSession(IoSession session, T future) Initialize a sessionvoidProxyIoSession.setSession(IoSession session) Sets theIoSessionin use. -
Uses of IoSession in org.apache.mina.transport.socket.apr
Classes in org.apache.mina.transport.socket.apr that implement IoSession -
Uses of IoSession in org.apache.mina.transport.socket.nio
Classes in org.apache.mina.transport.socket.nio that implement IoSessionModifier and TypeClassDescription(package private) classAnIoSessionfor datagram transport (UDP/IP).classAnIoSessionwhich is managed by the NIO transport.(package private) classAnIoSessionfor socket transport (TCP/IP).Methods in org.apache.mina.transport.socket.nio that return IoSessionModifier and TypeMethodDescriptionfinal IoSessionNioDatagramAcceptor.newSession(SocketAddress remoteAddress, SocketAddress localAddress) (Optional) Returns anIoSessionthat is bound to the specifiedlocalAddressand the specifiedremoteAddresswhich reuses the local address that is already bound by this service.private IoSessionNioDatagramAcceptor.newSessionWithoutLock(SocketAddress remoteAddress, SocketAddress localAddress) -
Uses of IoSession in org.apache.mina.transport.vmpipe
Classes in org.apache.mina.transport.vmpipe that implement IoSessionModifier and TypeClassDescription(package private) classAIoSessionfor in-VM transport (VM_PIPE).Methods in org.apache.mina.transport.vmpipe that return IoSessionModifier and TypeMethodDescriptionVmPipeAcceptor.newSession(SocketAddress remoteAddress, SocketAddress localAddress) (Optional) Returns anIoSessionthat is bound to the specifiedlocalAddressand the specifiedremoteAddresswhich reuses the local address that is already bound by this service.Methods in org.apache.mina.transport.vmpipe with parameters of type IoSessionModifier and TypeMethodDescription(package private) voidVmPipeAcceptor.doFinishSessionInitialization(IoSession session, IoFuture future)