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.
-
-
Field Summary
Fields Modifier and Type Field Description private Mmanager-
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
-
-
-
-
Field Detail
-
manager
private final M extends FactoryManager manager
-
-
Constructor Detail
-
AbstractSessionFactory
protected AbstractSessionFactory(M manager)
-
-
Method Detail
-
getFactoryManager
public M getFactoryManager()
-
createSession
protected S createSession(IoSession ioSession) throws java.lang.Exception
- Specified by:
createSessionin classAbstractSessionIoHandler- Throws:
java.lang.Exception
-
doCreateSession
protected abstract S doCreateSession(IoSession ioSession) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-