SSH Factory

com.jscape.inet.ssh
Class SshConnectedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jscape.inet.ssh.SshConnectedEvent
All Implemented Interfaces:
java.io.Serializable

public class SshConnectedEvent
extends java.util.EventObject

Fired by Ssh instance upon successfull connection to SSH server.

Version:
1.0
Author:
vglass
See Also:
Serialized Form

Constructor Summary
SshConnectedEvent(java.lang.Object source, java.lang.String host, int port)
          Creates SshConnectedEvent.
 
Method Summary
 java.lang.String getHost()
          Gets host of SSH server.
 int getPort()
          Gets port of SSH server.
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SshConnectedEvent

public SshConnectedEvent(java.lang.Object source,
                         java.lang.String host,
                         int port)
Creates SshConnectedEvent.

Parameters:
source - the source of the event
host - the host of SSH server
port - the port of SSH server
Method Detail

getHost

public java.lang.String getHost()
Gets host of SSH server.

Returns:
host

getPort

public int getPort()
Gets port of SSH server.

Returns:
port

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject
Returns:
string representation

SSH Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved