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

public class SessionFactory
extends AbstractSessionFactory

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
protected  SshServer server
           
 
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 setServer(SshServer server)
           
 
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

server

protected SshServer server
Constructor Detail

SessionFactory

public SessionFactory()
Method Detail

setServer

public void setServer(SshServer server)

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.