org.apache.sshd.client
Class SessionFactory

java.lang.Object
  extended by org.apache.mina.core.service.IoHandlerAdapter
      extended by org.apache.sshd.common.AbstractSessionIoHandler
          extended by org.apache.sshd.common.session.AbstractSessionFactory
              extended by org.apache.sshd.client.SessionFactory
All Implemented Interfaces:
org.apache.mina.core.service.IoHandler

public class SessionFactory
extends AbstractSessionFactory

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
protected  SshClient client
           
 
Fields inherited from class org.apache.sshd.common.session.AbstractSessionFactory
listeners
 
Constructor Summary
SessionFactory()
           
 
Method Summary
protected  AbstractSession doCreateSession(org.apache.mina.core.session.IoSession ioSession)
           
 void setClient(SshClient client)
           
 
Methods inherited from class org.apache.sshd.common.session.AbstractSessionFactory
addListener, createSession, removeListener
 
Methods inherited from class org.apache.sshd.common.AbstractSessionIoHandler
exceptionCaught, messageReceived, sessionClosed, sessionCreated
 
Methods inherited from class org.apache.mina.core.service.IoHandlerAdapter
messageSent, sessionIdle, sessionOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

protected SshClient client
Constructor Detail

SessionFactory

public SessionFactory()
Method Detail

setClient

public void setClient(SshClient client)

doCreateSession

protected AbstractSession doCreateSession(org.apache.mina.core.session.IoSession ioSession)
                                   throws Exception
Specified by:
doCreateSession in class AbstractSessionFactory
Throws:
Exception


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.