com.jscape.inet.ssh
Class SshConnectedEvent
java.lang.Object
java.util.EventObject
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 |
SshConnectedEvent
public SshConnectedEvent(java.lang.Object source,
java.lang.String host,
int port)
- Creates SshConnectedEvent.
- Parameters:
source
- the source of the eventhost
- the host of SSH serverport
- the port of SSH server
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
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved