Uses of Interface
org.apache.mina.core.session.IoSession
-
Packages that use IoSession Package Description org.apache.mina.core Common types required for users to use MINA.org.apache.mina.core.filterchain org.apache.mina.core.future org.apache.mina.core.polling 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).org.apache.mina.core.service org.apache.mina.core.session org.apache.mina.core.write org.apache.mina.filter.buffer org.apache.mina.filter.codec Filter implementations that helps you to implement complex protocols via 'codec' concept.org.apache.mina.filter.codec.demux Protocol codecs that helps you to implement even more complex protocols by splitting a codec into multiple sub-codecs.org.apache.mina.filter.codec.prefixedstring org.apache.mina.filter.codec.serialization Protocol codecs which uses Java object serilization and leads to rapid protocol implementation.org.apache.mina.filter.codec.statemachine org.apache.mina.filter.codec.textline A protocol codec for text-based protocols.org.apache.mina.filter.compression org.apache.mina.filter.errorgenerating An IoFilter that provides flexible error generation facilities.org.apache.mina.filter.executor IoFilters that provide flexible thread model and event queue monitoring interface.org.apache.mina.filter.firewall Classes that implement IoFilter and provide host blocking and throttling.org.apache.mina.filter.keepalive IoFilter that provides the ability for connections to remain open when data is not being transferred.org.apache.mina.filter.logging Classes that implement IoFilter and provide logging of the events and data that flows through a MINA-based system.org.apache.mina.filter.ssl Classes that implement IoFilter and provide Secure Sockets Layer functionality.org.apache.mina.filter.statistic Classes that implement IoFilter and provide the ability for filters to be timed on their performance.org.apache.mina.filter.stream Stream based IoFilter implementation.org.apache.mina.filter.util Utility classes for the MINA filtering portion of the library.org.apache.mina.handler.chain A handler implementation that helps you implement sequentially layered protocols using Chains of Responsibility pattern.org.apache.mina.handler.demux A handler implementation that helps you implement complex protocols by splitting messageReceived handlers into multiple sub-handlers.org.apache.mina.handler.multiton Enables creating a handler per session instead of having one handler for many sessions, using Multiton pattern.org.apache.mina.handler.stream org.apache.mina.integration.jmx JMX (Java Management eXtension) integration.org.apache.mina.integration.ognl org.apache.mina.proxy org.apache.mina.proxy.event org.apache.mina.proxy.filter org.apache.mina.proxy.handlers.http.digest org.apache.mina.proxy.session org.apache.mina.transport.socket.apr org.apache.mina.transport.socket.nio Socket (TCP/IP) and Datagram (UDP/IP) support based on Java NIO (New I/O) API.org.apache.mina.transport.vmpipe In-VM pipe support which removes the overhead of local loopback communication. -
-
Uses of IoSession in org.apache.mina.core
Methods in org.apache.mina.core with parameters of type IoSession Modifier and Type Method Description static java.util.List<WriteFuture>IoUtil. broadcast(java.lang.Object message, IoSession... sessions)Writes the specifiedmessageto the specifiedsessions.Method parameters in org.apache.mina.core with type arguments of type IoSession Modifier and Type Method Description static java.util.List<WriteFuture>IoUtil. broadcast(java.lang.Object message, java.lang.Iterable<IoSession> sessions)Writes the specifiedmessageto the specifiedsessions.static java.util.List<WriteFuture>IoUtil. broadcast(java.lang.Object message, java.util.Collection<IoSession> sessions)Writes the specifiedmessageto the specifiedsessions.static java.util.List<WriteFuture>IoUtil. broadcast(java.lang.Object message, java.util.Iterator<IoSession> sessions)Writes the specifiedmessageto the specifiedsessions. -
Uses of IoSession in org.apache.mina.core.filterchain
Methods in org.apache.mina.core.filterchain that return IoSession Modifier and Type Method Description IoSessionDefaultIoFilterChain. getSession()IoSessionIoFilterChain. getSession()Methods in org.apache.mina.core.filterchain with parameters of type IoSession Modifier and Type Method Description 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 theIoHandlervoidIoFilter. exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Throwable cause)FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.voidIoFilter.NextFilter. exceptionCaught(IoSession session, java.lang.Throwable cause)Forwards exceptionCaught event to next filter.voidIoFilterAdapter. exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Throwable cause)FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.voidIoFilter. filterClose(IoFilter.NextFilter nextFilter, IoSession session)FilterscloseNow()or acloseOnFlush()method invocations.voidIoFilter.NextFilter. filterClose(IoSession session)Forwards filterClose event to next filter.voidIoFilterAdapter. filterClose(IoFilter.NextFilter nextFilter, IoSession session)FilterscloseNow()or acloseOnFlush()method invocations.voidIoFilter. filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)Filterswrite(Object)method invocation.voidIoFilter.NextFilter. filterWrite(IoSession session, WriteRequest writeRequest)Forwards filterWrite event to next filter.voidIoFilterAdapter. filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)Filterswrite(Object)method invocation.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.voidIoFilter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Object message)FiltersIoHandler.messageReceived(IoSession,Object)event.voidIoFilter.NextFilter. messageReceived(IoSession session, java.lang.Object message)Forwards messageReceived event to next filter.voidIoFilterAdapter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Object message)FiltersIoHandler.messageReceived(IoSession,Object)event.voidIoFilter. messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)FiltersIoHandler.messageSent(IoSession,Object)event.voidIoFilter.NextFilter. messageSent(IoSession session, WriteRequest writeRequest)Forwards messageSent event to next filter.voidIoFilterAdapter. messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)FiltersIoHandler.messageSent(IoSession,Object)event.voidIoFilter.NextFilter. sessionClosed(IoSession session)Forwards sessionClosed event 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.voidIoFilter.NextFilter. sessionCreated(IoSession session)Forwards sessionCreated event 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.voidIoFilter.NextFilter. sessionIdle(IoSession session, IdleStatus status)Forwards sessionIdle event 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.voidIoFilter.NextFilter. sessionOpened(IoSession session)Forwards sessionOpened event 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 IoSession Constructor Description IoFilterEvent(IoFilter.NextFilter nextFilter, IoEventType type, IoSession session, java.lang.Object parameter)Creates a new IoFilterEvent instance -
Uses of IoSession in org.apache.mina.core.future
Methods in org.apache.mina.core.future that return IoSession Modifier and Type Method Description IoSessionConnectFuture. getSession()ReturnsIoSessionwhich is the result of connect operation.IoSessionDefaultConnectFuture. getSession()IoSessionDefaultIoFuture. getSession()IoSessionIoFuture. getSession()Methods in org.apache.mina.core.future with parameters of type IoSession Modifier and Type Method Description static WriteFutureDefaultWriteFuture. newNotWrittenFuture(IoSession session, java.lang.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 IoSession Constructor Description DefaultCloseFuture(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 IoSession Modifier and Type Method Description IoSessionAbstractPollingIoAcceptor. newSession(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)(Optional) Returns anIoSessionthat is bound to the specified localAddress and the specified remoteAddress which 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 IoSession Modifier and Type Interface Description interfaceIoProcessor<S extends IoSession>An internal interface to represent an 'I/O processor' that performs actual I/O operations forIoSessions.Methods in org.apache.mina.core.service that return IoSession Modifier and Type Method Description IoSessionIoAcceptor. newSession(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)(Optional) Returns anIoSessionthat is bound to the specified localAddress and the specified remoteAddress which 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 IoSession Modifier and Type Method Description java.util.Map<java.lang.Long,IoSession>AbstractIoService. getManagedSessions()java.util.Map<java.lang.Long,IoSession>IoService. getManagedSessions()java.util.Map<java.lang.Long,IoSession>IoServiceListenerSupport. getManagedSessions()Methods in org.apache.mina.core.service with parameters of type IoSession Modifier and Type Method Description voidIoHandler. 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, java.lang.Throwable cause)Invoked when any exception is thrown by userIoHandlerimplementation or by MINA.voidIoHandlerAdapter. exceptionCaught(IoSession session, java.lang.Throwable cause)Invoked when any exception is thrown by userIoHandlerimplementation or by MINA.protected 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 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, java.lang.Object message)Invoked when a message is received.voidIoHandlerAdapter. messageReceived(IoSession session, java.lang.Object message)Invoked when a message is received.voidIoHandler. messageSent(IoSession session, java.lang.Object message)Invoked when a message written bywrite(Object)is sent out.voidIoHandlerAdapter. messageSent(IoSession session, java.lang.Object message)Invoked when a message written bywrite(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 IoSession Modifier and Type Class Description classAbstractIoSessionBase implementation ofIoSession.classDummySessionMethods in org.apache.mina.core.session that return IoSession Modifier and Type Method Description IoSessionIoEvent. getSession()IoSessionExpiringSessionRecycler. recycle(java.net.SocketAddress remoteAddress)Attempts to retrieve a recycledIoSession.IoSessionIoSessionRecycler. recycle(java.net.SocketAddress remoteAddress)Attempts to retrieve a recycledIoSession.Methods in org.apache.mina.core.session that return types with arguments of type IoSession Modifier and Type Method Description IoProcessor<IoSession>DummySession. getProcessor()Methods in org.apache.mina.core.session with parameters of type IoSession Modifier and Type Method Description booleanIoSessionAttributeMap. containsAttribute(IoSession session, java.lang.Object key)voidIoSessionAttributeMap. dispose(IoSession session)Disposes any releases associated with the specified session.java.lang.ObjectIoSessionAttributeMap. getAttribute(IoSession session, java.lang.Object key, java.lang.Object defaultValue)java.util.Set<java.lang.Object>IoSessionAttributeMap. getAttributeKeys(IoSession session)IoSessionAttributeMapDefaultIoSessionDataStructureFactory. getAttributeMap(IoSession session)IoSessionAttributeMapIoSessionDataStructureFactory. getAttributeMap(IoSession session)WriteRequestQueueDefaultIoSessionDataStructureFactory. getWriteRequestQueue(IoSession session)WriteRequestQueueIoSessionDataStructureFactory. getWriteRequestQueue(IoSession session)voidIoSessionInitializer. initializeSession(IoSession session, T future)Initialize a sessionstatic voidAbstractIoSession. notifyIdleSession(IoSession session, long currentTime)Fires aIoEventType.SESSION_IDLEevent if applicable for the specifiedsession.voidExpiringSessionRecycler. put(IoSession session)Called when the underlying transport creates or writes a newIoSession.voidIoSessionRecycler. put(IoSession session)Called when the underlying transport creates or writes a newIoSession.voidExpiringSessionRecycler. remove(IoSession session)Called when anIoSessionis explicitly closed.voidIoSessionRecycler. remove(IoSession session)Called when anIoSessionis explicitly closed.java.lang.ObjectIoSessionAttributeMap. removeAttribute(IoSession session, java.lang.Object key)Removes a user-defined attribute with the specified key.booleanIoSessionAttributeMap. removeAttribute(IoSession session, java.lang.Object key, java.lang.Object value)Removes a user defined attribute with the specified key if the current attribute value is equal to the specified value.booleanIoSessionAttributeMap. replaceAttribute(IoSession session, java.lang.Object key, java.lang.Object oldValue, java.lang.Object newValue)Replaces a user defined attribute with the specified key if the value of the attribute is equals to the specified old value.java.lang.ObjectIoSessionAttributeMap. setAttribute(IoSession session, java.lang.Object key, java.lang.Object value)Sets a user-defined attribute.java.lang.ObjectIoSessionAttributeMap. setAttributeIfAbsent(IoSession session, java.lang.Object key, java.lang.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 IoSession Modifier and Type Method Description static voidAbstractIoSession. notifyIdleness(java.util.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 IoSession Constructor Description IoEvent(IoEventType type, IoSession session, java.lang.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 IoSession Modifier and Type Method Description voidWriteRequestQueue. clear(IoSession session)Removes all the requests from this session's queue.voidWriteRequestQueue. dispose(IoSession session)Disposes any releases associated with the specified session.booleanWriteRequestQueue. isEmpty(IoSession session)Tells 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 queueWriteRequestWriteRequestQueue. poll(IoSession session)Get the first request available in the queue for a session. -
Uses of IoSession in org.apache.mina.filter.buffer
Methods in org.apache.mina.filter.buffer with parameters of type IoSession Modifier and Type Method Description voidBufferedWriteFilter. exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Throwable cause)FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.voidBufferedWriteFilter. filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)Filterswrite(Object)method invocation.voidBufferedWriteFilter. flush(IoSession session)Flushes the buffered data.voidBufferedWriteFilter. sessionClosed(IoFilter.NextFilter nextFilter, IoSession session)FiltersIoHandler.sessionClosed(IoSession)event.Constructor parameters in org.apache.mina.filter.buffer with type arguments of type IoSession Constructor Description BufferedWriteFilter(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 IoSession Modifier and Type Class Description classProtocolCodecSessionMethods in org.apache.mina.filter.codec with parameters of type IoSession Modifier and Type Method Description voidCumulativeProtocolDecoder. decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)Cumulates content of in into 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.voidCumulativeProtocolDecoder. dispose(IoSession session)Releases the cumulative buffer used by the specified session.voidProtocolDecoder. dispose(IoSession session)Releases all resources related with this decoder.voidProtocolDecoderAdapter. dispose(IoSession session)Override this method to dispose all resources related with this decoder.voidProtocolEncoder. dispose(IoSession session)Releases all resources related with this encoder.voidProtocolEncoderAdapter. dispose(IoSession session)Override this method dispose all resources related with this encoder.voidSynchronizedProtocolDecoder. dispose(IoSession session)Releases all resources related with this decoder.voidSynchronizedProtocolEncoder. dispose(IoSession session)Releases all resources related with this encoder.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, java.lang.Object message, ProtocolEncoderOutput out)Encodes higher-level message objects into binary or protocol-specific data.voidSynchronizedProtocolEncoder. encode(IoSession session, java.lang.Object message, ProtocolEncoderOutput out)Encodes higher-level message objects into binary or protocol-specific data.voidProtocolCodecFilter. filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)Filterswrite(Object)method invocation.voidProtocolDecoder. finishDecode(IoSession session, ProtocolDecoderOutput out)Invoked when the specified session is 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 specified session is closed.voidProtocolDecoderOutput. flush(IoFilter.NextFilter nextFilter, IoSession session)Flushes all messages you wrote viaProtocolDecoderOutput.write(Object)to the next filter.ProtocolDecoderProtocolCodecFactory. getDecoder(IoSession session)Returns a new (or reusable) instance ofProtocolDecoderwhich decodes binary or protocol-specific data into message objects.ProtocolEncoderProtocolCodecFactory. getEncoder(IoSession session)Returns a new (or reusable) instance ofProtocolEncoderwhich encodes message objects into binary or protocol-specific data.ProtocolEncoderProtocolCodecFilter. getEncoder(IoSession session)Get the encoder instance from a given session.voidProtocolCodecFilter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Object message)Process the incoming message, calling the session decoder.voidProtocolCodecFilter. messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)FiltersIoHandler.messageSent(IoSession,Object)event.voidProtocolCodecFilter. sessionClosed(IoFilter.NextFilter nextFilter, IoSession session)FiltersIoHandler.sessionClosed(IoSession)event. -
Uses of IoSession in org.apache.mina.filter.codec.demux
Methods in org.apache.mina.filter.codec.demux with parameters of type IoSession Modifier and Type Method Description MessageDecoderResultMessageDecoder. decodable(IoSession session, IoBuffer in)Checks the specified buffer is decodable by this decoder.MessageDecoderResultMessageDecoder. decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)Decodes binary or protocol-specific content into higher-level message objects.voidDemuxingProtocolDecoder. dispose(IoSession session)Releases the cumulative buffer used by the specified session.voidDemuxingProtocolEncoder. dispose(IoSession session)Releases 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, java.lang.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 specified session is closed while this decoder was parsing the data.voidMessageDecoderAdapter. finishDecode(IoSession session, ProtocolDecoderOutput out)Override this method to deal with the closed connection.ProtocolDecoderDemuxingProtocolCodecFactory. getDecoder(IoSession session)Returns a new (or reusable) instance ofProtocolDecoderwhich decodes binary or protocol-specific data into message objects.ProtocolEncoderDemuxingProtocolCodecFactory. 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.prefixedstring
Methods in org.apache.mina.filter.codec.prefixedstring with parameters of type IoSession Modifier and Type Method Description protected 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, java.lang.Object message, ProtocolEncoderOutput out)Encodes higher-level message objects into binary or protocol-specific data.ProtocolDecoderPrefixedStringCodecFactory. getDecoder(IoSession session)Returns a new (or reusable) instance ofProtocolDecoderwhich decodes binary or protocol-specific data into message objects.ProtocolEncoderPrefixedStringCodecFactory. 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 IoSession Modifier and Type Method Description protected 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, java.lang.Object message, ProtocolEncoderOutput out)Encodes higher-level message objects into binary or protocol-specific data.ProtocolDecoderObjectSerializationCodecFactory. getDecoder(IoSession session)Returns a new (or reusable) instance ofProtocolDecoderwhich decodes binary or protocol-specific data into message objects.ProtocolEncoderObjectSerializationCodecFactory. 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
Methods in org.apache.mina.filter.codec.statemachine with parameters of type IoSession Modifier and Type Method Description voidDecodingStateProtocolDecoder. decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)Decodes binary or protocol-specific content into higher-level message objects.voidDecodingStateProtocolDecoder. dispose(IoSession session)Releases all resources related with this decoder.voidDecodingStateProtocolDecoder. finishDecode(IoSession session, ProtocolDecoderOutput out)Invoked when the specified session is closed. -
Uses of IoSession in org.apache.mina.filter.codec.textline
Methods in org.apache.mina.filter.codec.textline with parameters of type IoSession Modifier and Type Method Description voidTextLineDecoder. decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out)Decodes binary or protocol-specific content into higher-level message objects.voidTextLineDecoder. dispose(IoSession session)Releases all resources related with this decoder.voidTextLineEncoder. encode(IoSession session, java.lang.Object message, ProtocolEncoderOutput out)Encodes higher-level message objects into binary or protocol-specific data.voidTextLineDecoder. finishDecode(IoSession session, ProtocolDecoderOutput out)Invoked when the specified session is closed.ProtocolDecoderTextLineCodecFactory. getDecoder(IoSession session)Returns a new (or reusable) instance ofProtocolDecoderwhich decodes binary or protocol-specific data into message objects.ProtocolEncoderTextLineCodecFactory. getEncoder(IoSession session)Returns a new (or reusable) instance ofProtocolEncoderwhich encodes message objects into binary or protocol-specific data.protected voidTextLineDecoder. writeText(IoSession session, java.lang.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 IoSession Modifier and Type Method Description protected java.lang.ObjectCompressionFilter. doFilterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)voidCompressionFilter. filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)Filterswrite(Object)method invocation.voidCompressionFilter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Object message) -
Uses of IoSession in org.apache.mina.filter.errorgenerating
Methods in org.apache.mina.filter.errorgenerating with parameters of type IoSession Modifier and Type Method Description voidErrorGeneratingFilter. filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)voidErrorGeneratingFilter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Object message) -
Uses of IoSession in org.apache.mina.filter.executor
Methods in org.apache.mina.filter.executor with parameters of type IoSession Modifier and Type Method Description voidExecutorFilter. exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Throwable cause)FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.voidExecutorFilter. filterClose(IoFilter.NextFilter nextFilter, IoSession session)FilterscloseNow()or acloseOnFlush()method invocations.voidExecutorFilter. filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)Filterswrite(Object)method invocation.voidWriteRequestFilter. filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)Filterswrite(Object)method invocation.voidExecutorFilter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Object message)FiltersIoHandler.messageReceived(IoSession,Object)event.voidExecutorFilter. messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)FiltersIoHandler.messageSent(IoSession,Object)event.voidExecutorFilter. sessionClosed(IoFilter.NextFilter nextFilter, IoSession session)FiltersIoHandler.sessionClosed(IoSession)event.voidExecutorFilter. sessionIdle(IoFilter.NextFilter nextFilter, IoSession session, IdleStatus status)FiltersIoHandler.sessionIdle(IoSession,IdleStatus)event.voidExecutorFilter. sessionOpened(IoFilter.NextFilter nextFilter, IoSession session)FiltersIoHandler.sessionOpened(IoSession)event.Constructor parameters in org.apache.mina.filter.executor with type arguments of type IoSession Constructor Description PriorityThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, java.util.concurrent.TimeUnit unit, java.util.concurrent.ThreadFactory threadFactory, IoEventQueueHandler eventQueueHandler, java.util.Comparator<IoSession> comparator)Creates a new instance of a PrioritisedOrderedThreadPoolExecutor.PriorityThreadPoolExecutor(int maximumPoolSize, java.util.Comparator<IoSession> comparator)Creates a default ThreadPool, with default values : - minimum pool size is 0 - keepAlive set to 30 seconds - A default ThreadFactory - All events are acceptedPriorityThreadPoolExecutor(java.util.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 accepted -
Uses of IoSession in org.apache.mina.filter.firewall
Methods in org.apache.mina.filter.firewall with parameters of type IoSession Modifier and Type Method Description voidBlacklistFilter. event(IoFilter.NextFilter nextFilter, IoSession session, FilterEvent event)Propagate an event up to theIoHandlerprotected booleanConnectionThrottleFilter. isConnectionOk(IoSession session)Method responsible for deciding if a connection is OK to continuevoidBlacklistFilter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.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 IoSession Modifier and Type Method Description java.lang.ObjectKeepAliveMessageFactory. getRequest(IoSession session)java.lang.ObjectKeepAliveMessageFactory. getResponse(IoSession session, java.lang.Object request)booleanKeepAliveMessageFactory. isRequest(IoSession session, java.lang.Object message)booleanKeepAliveMessageFactory. isResponse(IoSession session, java.lang.Object message)voidKeepAliveRequestTimeoutHandler. keepAliveRequestTimedOut(KeepAliveFilter filter, IoSession session)Invoked whenKeepAliveFiltercouldn't receive the response for the sent keep alive message.voidKeepAliveFilter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Object message)FiltersIoHandler.messageReceived(IoSession,Object)event.voidKeepAliveFilter. messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)FiltersIoHandler.messageSent(IoSession,Object)event.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 IoSession Modifier and Type Method Description voidLoggingFilter. exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Throwable cause)FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.protected voidMdcInjectionFilter. fillContext(IoSession session, java.util.Map<java.lang.String,java.lang.String> context)write key properties of the session to the Mapped Diagnostic Context sub-classes could override this method to map more/other attributesstatic java.lang.StringMdcInjectionFilter. getProperty(IoSession session, java.lang.String key)Get the property associated with a given keyvoidLoggingFilter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.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, java.lang.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, java.lang.String key, java.lang.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
Methods in org.apache.mina.filter.ssl with parameters of type IoSession Modifier and Type Method Description voidSslFilter. exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Throwable cause)voidSslFilter. filterClose(IoFilter.NextFilter nextFilter, IoSession session)voidSslFilter. filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)javax.net.ssl.SSLSessionSslFilter. getSslSession(IoSession session)Returns the underlyingSSLSessionfor the specified session.voidSslFilter. initiateHandshake(IoSession session)Initiate the SSL handshake.booleanSslFilter. isSecured(IoSession session)booleanSslFilter. isSslStarted(IoSession session)voidSslFilter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Object message)voidSslFilter. messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)voidSslFilter. sessionClosed(IoFilter.NextFilter nextFilter, IoSession session)booleanSslFilter. startSsl(IoSession session)(Re)starts SSL session for the specified session if not started yet.WriteFutureSslFilter. stopSsl(IoSession session)Stops the SSL session by sending TLS close_notify message to initiate TLS closure. -
Uses of IoSession in org.apache.mina.filter.statistic
Methods in org.apache.mina.filter.statistic with parameters of type IoSession Modifier and Type Method Description voidProfilerTimerFilter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.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 IoSession Modifier and Type Method Description voidAbstractStreamWriteFilter. filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)Filterswrite(Object)method invocation.voidAbstractStreamWriteFilter. messageSent(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)FiltersIoHandler.messageSent(IoSession,Object)event. -
Uses of IoSession in org.apache.mina.filter.util
Methods in org.apache.mina.filter.util with parameters of type IoSession Modifier and Type Method Description voidCommonEventFilter. event(IoFilter.NextFilter nextFilter, IoSession session, FilterEvent event)Propagate an event up to theIoHandlervoidCommonEventFilter. exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Throwable cause)FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.voidReferenceCountingFilter. exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Throwable cause)FiltersIoHandler.exceptionCaught(IoSession,Throwable)event.voidCommonEventFilter. filterClose(IoFilter.NextFilter nextFilter, IoSession session)FilterscloseNow()or acloseOnFlush()method invocations.voidReferenceCountingFilter. filterClose(IoFilter.NextFilter nextFilter, IoSession session)FilterscloseNow()or acloseOnFlush()method invocations.voidCommonEventFilter. filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)Filterswrite(Object)method invocation.voidReferenceCountingFilter. filterWrite(IoFilter.NextFilter nextFilter, IoSession session, WriteRequest writeRequest)Filterswrite(Object)method invocation.voidCommonEventFilter. inputClosed(IoFilter.NextFilter nextFilter, IoSession session)FiltersIoHandler.inputClosed(IoSession)event.voidCommonEventFilter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Object message)FiltersIoHandler.messageReceived(IoSession,Object)event.voidReferenceCountingFilter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.Object message)FiltersIoHandler.messageReceived(IoSession,Object)event.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.voidCommonEventFilter. sessionClosed(IoFilter.NextFilter nextFilter, IoSession session)FiltersIoHandler.sessionClosed(IoSession)event.voidReferenceCountingFilter. sessionClosed(IoFilter.NextFilter nextFilter, IoSession session)FiltersIoHandler.sessionClosed(IoSession)event.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.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.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 IoSession Modifier and Type Method Description voidIoHandlerChain. execute(IoHandlerCommand.NextCommand next, IoSession session, java.lang.Object message)Execute a unit of processing work to be performed.voidIoHandlerCommand. execute(IoHandlerCommand.NextCommand next, IoSession session, java.lang.Object message)Execute a unit of processing work to be performed.voidIoHandlerCommand.NextCommand. execute(IoSession session, java.lang.Object message)Forwards the request to the nextIoHandlerCommandin theIoHandlerChain.voidChainedIoHandler. messageReceived(IoSession session, java.lang.Object message)Handles the specified messageReceived event 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 IoSession Modifier and Type Method Description voidDemuxingIoHandler. exceptionCaught(IoSession session, java.lang.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, java.lang.Object message)Forwards the received events into the appropriateMessageHandlerwhich is registered byDemuxingIoHandler.addReceivedMessageHandler(Class, MessageHandler).voidDemuxingIoHandler. messageSent(IoSession session, java.lang.Object message)Invoked when a message written by IoSession.write(Object) is sent out. -
Uses of IoSession in org.apache.mina.handler.multiton
Methods in org.apache.mina.handler.multiton that return IoSession Modifier and Type Method Description protected IoSessionSingleSessionIoHandlerAdapter. getSession()Deprecated.Retrieves the session to which this handler is assigned.Methods in org.apache.mina.handler.multiton with parameters of type IoSession Modifier and Type Method Description voidSingleSessionIoHandlerDelegate. 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, java.lang.Throwable cause)Deprecated.Delegates the method call to theSingleSessionIoHandler.exceptionCaught(Throwable)method of the handler assigned to this session.SingleSessionIoHandlerSingleSessionIoHandlerFactory. 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, java.lang.Object message)Deprecated.Delegates the method call to theSingleSessionIoHandler.messageReceived(Object)method of the handler assigned to this session.voidSingleSessionIoHandlerDelegate. messageSent(IoSession session, java.lang.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 IoSession Constructor Description SingleSessionIoHandlerAdapter(IoSession session)Deprecated.Creates a new instance that is assigned to the passed in session. -
Uses of IoSession in org.apache.mina.handler.stream
Methods in org.apache.mina.handler.stream with parameters of type IoSession Modifier and Type Method Description voidStreamIoHandler. exceptionCaught(IoSession session, java.lang.Throwable cause)Forwards caught exceptions to input stream.voidStreamIoHandler. messageReceived(IoSession session, java.lang.Object buf)Forwards read data to input stream.protected abstract voidStreamIoHandler. processStreamIo(IoSession session, java.io.InputStream in, java.io.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. -
Uses of IoSession in org.apache.mina.integration.jmx
Constructors in org.apache.mina.integration.jmx with parameters of type IoSession Constructor Description IoSessionMBean(IoSession source)Creates a new IoSessionMBean instance -
Uses of IoSession in org.apache.mina.integration.ognl
Methods in org.apache.mina.integration.ognl that return types with arguments of type IoSession Modifier and Type Method Description java.util.Set<IoSession>IoSessionFinder. find(java.lang.Iterable<IoSession> sessions)Finds aSetofIoSessions that matches the query from the specified sessions and returns the matches.Method parameters in org.apache.mina.integration.ognl with type arguments of type IoSession Modifier and Type Method Description java.util.Set<IoSession>IoSessionFinder. find(java.lang.Iterable<IoSession> sessions)Finds aSetofIoSessions that matches the query from the specified sessions and returns the matches. -
Uses of IoSession in org.apache.mina.proxy
Methods in org.apache.mina.proxy that return IoSession Modifier and Type Method Description protected IoSessionAbstractProxyLogicHandler. getSession()Methods in org.apache.mina.proxy with parameters of type IoSession Modifier and Type Method Description protected 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.voidAbstractProxyIoHandler. sessionOpened(IoSession session)Hooked session opened event. -
Uses of IoSession in org.apache.mina.proxy.event
Methods in org.apache.mina.proxy.event that return IoSession Modifier and Type Method Description IoSessionIoSessionEvent. getSession()Constructors in org.apache.mina.proxy.event with parameters of type IoSession Constructor Description IoSessionEvent(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 IoSession Modifier and Type Method Description voidProxyFilter. exceptionCaught(IoFilter.NextFilter nextFilter, IoSession session, java.lang.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.voidProxyFilter. messageReceived(IoFilter.NextFilter nextFilter, IoSession session, java.lang.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 Modifier and Type Method Description static java.lang.StringDigestUtilities. computeResponseValue(IoSession session, java.util.Map<java.lang.String,java.lang.String> map, java.lang.String method, java.lang.String pwd, java.lang.String charsetName, java.lang.String body)Computes the response to the DIGEST challenge. -
Uses of IoSession in org.apache.mina.proxy.session
Methods in org.apache.mina.proxy.session that return IoSession Modifier and Type Method Description IoSessionProxyIoSession. getSession()Methods in org.apache.mina.proxy.session with parameters of type IoSession Modifier and Type Method Description voidProxyIoSessionInitializer. 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 Modifier and Type Class Description classAprSessionAn abstractIoSessionserving of base for APR based sessions. -
Uses of IoSession in org.apache.mina.transport.socket.nio
Classes in org.apache.mina.transport.socket.nio that implement IoSession Modifier and Type Class Description classNioSessionAnIoSessionwhich is managed by the NIO transport.Methods in org.apache.mina.transport.socket.nio that return IoSession Modifier and Type Method Description IoSessionNioDatagramAcceptor. newSession(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)(Optional) Returns anIoSessionthat is bound to the specified localAddress and the specified remoteAddress which reuses the local address that is already bound by this service. -
Uses of IoSession in org.apache.mina.transport.vmpipe
Methods in org.apache.mina.transport.vmpipe that return IoSession Modifier and Type Method Description IoSessionVmPipeAcceptor. newSession(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress)(Optional) Returns anIoSessionthat is bound to the specified localAddress and the specified remoteAddress which reuses the local address that is already bound by this service.
-