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 ofFactoryManager
S
- 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 M
manager
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSessionFactory(M manager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected S
createSession(IoSession ioSession)
protected abstract S
doCreateSession(IoSession ioSession)
M
getFactoryManager()
protected S
setupSession(S session)
-
Methods inherited from class org.apache.sshd.common.session.helpers.AbstractSessionIoHandler
exceptionCaught, messageReceived, sessionClosed, sessionCreated
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
getSimplifiedLogger
-
-
-
-
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:
createSession
in classAbstractSessionIoHandler
- Throws:
java.lang.Exception
-
doCreateSession
protected abstract S doCreateSession(IoSession ioSession) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-