Package org.apache.sshd.client.session
Class SessionFactory
-
- All Implemented Interfaces:
IoHandler
public class SessionFactory extends AbstractSessionFactory<ClientFactoryManager,ClientSessionImpl>
A factory of client sessions. This class can be used as a way to customize the creation of client sessions.- Author:
- Apache MINA SSHD Project
- See Also:
SshClient.setSessionFactory(SessionFactory)
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description SessionFactory(ClientFactoryManager client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ClientSessionImpl
doCreateSession(IoSession ioSession)
ClientFactoryManager
getClient()
-
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(ClientFactoryManager client)
-
-
Method Detail
-
getClient
public final ClientFactoryManager getClient()
-
doCreateSession
protected ClientSessionImpl doCreateSession(IoSession ioSession) throws Exception
- Specified by:
doCreateSession
in classAbstractSessionFactory<ClientFactoryManager,ClientSessionImpl>
- Throws:
Exception
-
-