org.apache.sshd.common.session
Class AbstractSessionFactory
java.lang.Object
org.apache.mina.core.service.IoHandlerAdapter
org.apache.sshd.common.AbstractSessionIoHandler
org.apache.sshd.common.session.AbstractSessionFactory
- All Implemented Interfaces:
- org.apache.mina.core.service.IoHandler
- Direct Known Subclasses:
- SessionFactory, SessionFactory
public abstract class AbstractSessionFactory
- extends AbstractSessionIoHandler
An abstract base factory of sessions.
- Author:
- Apache MINA SSHD Project
Methods inherited from class org.apache.mina.core.service.IoHandlerAdapter |
messageSent, sessionIdle, sessionOpened |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listeners
protected final List<SessionListener> listeners
AbstractSessionFactory
public AbstractSessionFactory()
createSession
protected AbstractSession createSession(org.apache.mina.core.session.IoSession ioSession)
throws Exception
- Specified by:
createSession
in class AbstractSessionIoHandler
- Throws:
Exception
doCreateSession
protected abstract AbstractSession doCreateSession(org.apache.mina.core.session.IoSession ioSession)
throws Exception
- Throws:
Exception
addListener
public void addListener(SessionListener listener)
- Add a session |listener|.
- Parameters:
listener
- the session listener to add
removeListener
public void removeListener(SessionListener listener)
- Remove a session |listener|.
- Parameters:
listener
- the session listener to remove
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.