Class SingleSessionIoHandlerAdapter
java.lang.Object
org.apache.mina.handler.multiton.SingleSessionIoHandlerAdapter
- All Implemented Interfaces:
SingleSessionIoHandler
@Deprecated
public class SingleSessionIoHandlerAdapter
extends Object
implements SingleSessionIoHandler
Deprecated.
This class is deprecated
Adapter class for implementors of the
SingleSessionIoHandler
interface. The session to which the handler is assigned is accessible
through the getSession() method.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSingleSessionIoHandlerAdapter(IoSession session) Deprecated.Creates a new instance that is assigned to the passed in session. -
Method Summary
Modifier and TypeMethodDescriptionvoidevent(FilterEvent event) Deprecated.Invoked when a filter event is fired.voidDeprecated.Invoked when any exception is thrown by userIoHandlerimplementation or by MINA.protected IoSessionDeprecated.Retrieves the session to which this handler is assigned.voidinputClosed(IoSession session) Deprecated.Invoked when a half-duplex connection is closedvoidmessageReceived(Object message) Deprecated.Invoked when protocol message is received.voidmessageSent(Object message) Deprecated.Invoked when protocol message that user requested byIoSession.write(Object)is sent out actually.voidDeprecated.Invoked when the connection is closed.voidDeprecated.Invoked when the session is created.voidsessionIdle(IdleStatus status) Deprecated.Invoked when the connection is idle.voidDeprecated.Invoked when the connection is opened.
-
Field Details
-
session
-
-
Constructor Details
-
SingleSessionIoHandlerAdapter
Deprecated.Creates a new instance that is assigned to the passed in session.- Parameters:
session- the session to which the handler is assigned
-
-
Method Details
-
getSession
Deprecated.Retrieves the session to which this handler is assigned.- Returns:
- the session
-
exceptionCaught
Deprecated.Invoked when any exception is thrown by userIoHandlerimplementation or by MINA. Ifcauseis instanceofIOException, MINA will close the connection automatically.- Specified by:
exceptionCaughtin interfaceSingleSessionIoHandler- Parameters:
th- the caught exception- Throws:
Exception- If the exception can't be handled- See Also:
-
inputClosed
Deprecated.Invoked when a half-duplex connection is closed- Specified by:
inputClosedin interfaceSingleSessionIoHandler- Parameters:
session- The current session
-
messageReceived
Deprecated.Invoked when protocol message is received. Implement your protocol flow here.- Specified by:
messageReceivedin interfaceSingleSessionIoHandler- Parameters:
message- the received message- Throws:
Exception- If the received message can't be processed- See Also:
-
messageSent
Deprecated.Invoked when protocol message that user requested byIoSession.write(Object)is sent out actually.- Specified by:
messageSentin interfaceSingleSessionIoHandler- Parameters:
message- the sent message- Throws:
Exception- If the sent message can't be processed- See Also:
-
sessionClosed
Deprecated.Invoked when the connection is closed. This method is not invoked if the transport type is UDP.- Specified by:
sessionClosedin interfaceSingleSessionIoHandler- Throws:
Exception- If the session can't be closed- See Also:
-
sessionCreated
Deprecated.Invoked when the session is created. Initialize default socket parameters and user-defined attributes here.- Specified by:
sessionCreatedin interfaceSingleSessionIoHandler- Throws:
Exception- If the session can't be created- See Also:
-
sessionIdle
Deprecated.Invoked when the connection is idle. Refer toIdleStatus. This method is not invoked if the transport type is UDP.- Specified by:
sessionIdlein interfaceSingleSessionIoHandler- Parameters:
status- the type of idleness- Throws:
Exception- If the idle event can't be handled- See Also:
-
sessionOpened
Deprecated.Invoked when the connection is opened. This method is not invoked if the transport type is UDP.- Specified by:
sessionOpenedin interfaceSingleSessionIoHandler- Throws:
Exception- If the session can't be opened- See Also:
-
event
Deprecated.Invoked when a filter event is fired. Each filter might sent a different event, this is very application specific.- Specified by:
eventin interfaceSingleSessionIoHandler- Parameters:
event- The event to process- Throws:
Exception- If we get an exception while processing the event
-