Class AbstractSessionFactory<M extends FactoryManager,S extends AbstractSession>
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.session.helpers.AbstractSessionIoHandler
-
- org.apache.sshd.common.session.helpers.AbstractSessionFactory<M,S>
-
- Type Parameters:
M- Type ofFactoryManagerS- Type ofAbstractSession
- All Implemented Interfaces:
IoHandler
- Direct Known Subclasses:
SessionFactory,SessionFactory
public abstract class AbstractSessionFactory<M extends FactoryManager,S extends AbstractSession> extends AbstractSessionIoHandler
An abstract base factory of sessions.- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSessionFactory(M manager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ScreateSession(IoSession ioSession)protected abstract SdoCreateSession(IoSession ioSession)MgetFactoryManager()protected SsetupSession(S session)-
Methods inherited from class org.apache.sshd.common.session.helpers.AbstractSessionIoHandler
exceptionCaught, messageReceived, sessionClosed, sessionCreated
-
-
-
-
Constructor Detail
-
AbstractSessionFactory
protected AbstractSessionFactory(M manager)
-
-
Method Detail
-
getFactoryManager
public M getFactoryManager()
-
createSession
protected S createSession(IoSession ioSession) throws Exception
- Specified by:
createSessionin classAbstractSessionIoHandler- Throws:
Exception
-
doCreateSession
protected abstract S doCreateSession(IoSession ioSession) throws Exception
- Throws:
Exception
-
-