com.maverick.sshd
Class Connection

java.lang.Object
  extended by com.maverick.sshd.Connection

public class Connection
extends Object


Constructor Summary
Connection()
           
 
Method Summary
 void addConnectionListener(ConnectionListener listener)
           
 void disconnect(String reason)
           
protected  void fireClosed(String reason)
           
protected  void fireClosing(String reason)
           
 SshContext getContext()
           
 String getLocalAddress()
           
 int getLocalPort()
           
 SocketAddress getLocalSocketAddress()
           
 Object getProperty(String name)
           
 Set getPropertyNames()
           
 String getRemoteAddress()
           
 int getRemotePort()
           
 SocketAddress getRemoteSocketAddress()
           
 String getSessionId()
           
 String getUsername()
           
 boolean isAuthenticated()
           
 boolean isDisconnected()
           
 void removeConnectionListener(ConnectionListener listener)
           
 Object removeProperty(String name)
           
 void setProperty(String name, Object val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connection

public Connection()
Method Detail

addConnectionListener

public void addConnectionListener(ConnectionListener listener)

removeConnectionListener

public void removeConnectionListener(ConnectionListener listener)

getSessionId

public String getSessionId()

getUsername

public String getUsername()

getRemoteAddress

public String getRemoteAddress()

getRemotePort

public int getRemotePort()

getRemoteSocketAddress

public SocketAddress getRemoteSocketAddress()

getLocalSocketAddress

public SocketAddress getLocalSocketAddress()

getLocalAddress

public String getLocalAddress()

getLocalPort

public int getLocalPort()

isDisconnected

public boolean isDisconnected()

disconnect

public void disconnect(String reason)

removeProperty

public Object removeProperty(String name)

getProperty

public Object getProperty(String name)

setProperty

public void setProperty(String name,
                        Object val)

getPropertyNames

public Set getPropertyNames()

isAuthenticated

public boolean isAuthenticated()

getContext

public SshContext getContext()

fireClosing

protected void fireClosing(String reason)

fireClosed

protected void fireClosed(String reason)


Copyright © 2012. All Rights Reserved.