Package org.apache.sshd.server.session
Class SessionFactory
-
- All Implemented Interfaces:
IoHandler
public class SessionFactory extends AbstractSessionFactory<ServerFactoryManager,ServerSessionImpl>
A factory of server sessions. This class can be used as a way to customize the creation of server sessions.- Author:
- Apache MINA SSHD Project
- See Also:
SshServer.setSessionFactory(SessionFactory)
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description SessionFactory(ServerFactoryManager server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ServerSessionImpl
doCreateSession(IoSession ioSession)
ServerFactoryManager
getServer()
-
Methods inherited from class org.apache.sshd.common.session.helpers.AbstractSessionFactory
createSession, getFactoryManager, setupSession
-
Methods inherited from class org.apache.sshd.common.session.helpers.AbstractSessionIoHandler
exceptionCaught, messageReceived, sessionClosed, sessionCreated
-
-
-
-
Constructor Detail
-
SessionFactory
public SessionFactory(ServerFactoryManager server)
-
-
Method Detail
-
getServer
public final ServerFactoryManager getServer()
-
doCreateSession
protected ServerSessionImpl doCreateSession(IoSession ioSession) throws Exception
- Specified by:
doCreateSession
in classAbstractSessionFactory<ServerFactoryManager,ServerSessionImpl>
- Throws:
Exception
-
-