public abstract class AbstractSessionFactory extends AbstractSessionIoHandler
Modifier and Type | Field and Description |
---|---|
protected List<SessionListener> |
listeners |
Constructor and Description |
---|
AbstractSessionFactory() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(SessionListener listener)
Add a session |listener|.
|
protected AbstractSession |
createSession(org.apache.mina.core.session.IoSession ioSession) |
protected abstract AbstractSession |
doCreateSession(org.apache.mina.core.session.IoSession ioSession) |
void |
removeListener(SessionListener listener)
Remove a session |listener|.
|
exceptionCaught, messageReceived, sessionClosed, sessionCreated
protected final List<SessionListener> listeners
protected AbstractSession createSession(org.apache.mina.core.session.IoSession ioSession) throws Exception
createSession
in class AbstractSessionIoHandler
Exception
protected abstract AbstractSession doCreateSession(org.apache.mina.core.session.IoSession ioSession) throws Exception
Exception
public void addListener(SessionListener listener)
listener
- the session listener to addpublic void removeListener(SessionListener listener)
listener
- the session listener to removeCopyright © 2008-2012 Apache Software Foundation. All Rights Reserved.