openlsd.network.client.admin.LSDClientAdminSessionHandler Class Reference

Inheritance diagram for openlsd.network.client.admin.LSDClientAdminSessionHandler:

Inheritance graph
[legend]
Collaboration diagram for openlsd.network.client.admin.LSDClientAdminSessionHandler:

Collaboration graph
[legend]

List of all members.


Detailed Description

This LSDClientAdminSessionHandler is the main class for the client part (Admin).

Author:
Frederic Bregier LGPL

Public Member Functions

void exceptionCaught (IoSession session, Throwable arg1)
void sessionIdle (IoSession session, IdleStatus arg1) throws Exception
void sessionClosed (IoSession session) throws Exception
void messageReceived (IoSession session, Object arg1) throws Exception
void messageSent (IoSession session, Object arg1) throws Exception

Protected Member Functions

void messageRun (IoSession session, LSDMsgAnswear lma)
boolean messageClear (IoSession session, Object arg1)
void sessionFinished (IoSession session, byte status)

Member Function Documentation

void openlsd.network.client.admin.LSDClientAdminSessionHandler.messageRun ( IoSession  session,
LSDMsgAnswear  lma 
) [protected, virtual]

When a message is received, call the message function according to the kind of message.

See also:
openlsd.network.client.common.LSDClientCommonSessionHandler.messageRun(org.apache.mina.common.IoSession, openlsd.network.common.message.LSDMsgAnswear)

Implements openlsd.network.client.common.LSDClientCommonSessionHandler.

boolean openlsd.network.client.admin.LSDClientAdminSessionHandler.messageClear ( IoSession  session,
Object  arg1 
) [protected, virtual]

Clear the message sent from memory.

See also:
openlsd.network.client.common.LSDClientCommonSessionHandler.messageClear(org.apache.mina.common.IoSession, java.lang.Object)

Implements openlsd.network.client.common.LSDClientCommonSessionHandler.

void openlsd.network.client.common.LSDClientCommonSessionHandler.exceptionCaught ( IoSession  session,
Throwable  arg1 
) [inherited]

In case of exception, if the session is present, free the lock such that the main call is released.

See also:
org.apache.mina.common.IoHandlerAdapter.exceptionCaught(org.apache.mina.common.IoSession, java.lang.Throwable)

void openlsd.network.client.common.LSDClientCommonSessionHandler.sessionIdle ( IoSession  session,
IdleStatus  arg1 
) throws Exception [inherited]

In case of idle, if the session is present, free the lock such that the main call is released.

See also:
org.apache.mina.common.IoHandlerAdapter.sessionIdle(org.apache.mina.common.IoSession, org.apache.mina.common.IdleStatus)

void openlsd.network.client.common.LSDClientCommonSessionHandler.sessionClosed ( IoSession  session  )  throws Exception [inherited]

When the session is closed, free the session associated.

See also:
org.apache.mina.common.IoHandlerAdapter.sessionClosed(org.apache.mina.common.IoSession)

void openlsd.network.client.common.LSDClientCommonSessionHandler.messageReceived ( IoSession  session,
Object  arg1 
) throws Exception [inherited]

When a message is received, call the messageRun to run a specific task according to the kind of message.

See also:
org.apache.mina.common.IoHandlerAdapter.messageReceived(org.apache.mina.common.IoSession, java.lang.Object)

void openlsd.network.client.common.LSDClientCommonSessionHandler.messageSent ( IoSession  session,
Object  arg1 
) throws Exception [inherited]

Clear the message sent from memory. Call the function messageClear to extend to adapt to the kind of message to clear.

WARNING : one access to LSDClient from network.client.example to remove when ready to production.

Parameters:
session 
arg1 
See also:
org.apache.mina.common.IoHandlerAdapter.messageSent(org.apache.mina.common.IoSession, java.lang.Object)

void openlsd.network.client.common.LSDClientCommonSessionHandler.sessionFinished ( IoSession  session,
byte  status 
) [protected, inherited]

Finish the current session by simply assign the status and releasing the possible lock.

Parameters:
session 
status 


The documentation for this class was generated from the following file: