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.client.SessionFactory
All Implemented Interfaces:
org.apache.mina.core.service.IoHandler

public class SessionFactory
extends AbstractSessionIoHandler

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
           
 
Constructor Summary
SessionFactory()
           
 
Method Summary
protected  AbstractSession createSession(org.apache.mina.core.session.IoSession ioSession)
           
 void setClient(SshClient client)
           
 
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)

createSession

protected AbstractSession createSession(org.apache.mina.core.session.IoSession ioSession)
                                 throws java.lang.Exception
Specified by:
createSession in class AbstractSessionIoHandler
Throws:
java.lang.Exception


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.