com.jscape.inet.ssh
Class SshDisconnectedEvent
java.lang.Object
java.util.EventObject
com.jscape.inet.ssh.SshDisconnectedEvent
- All Implemented Interfaces:
- java.io.Serializable
public class SshDisconnectedEvent
- extends java.util.EventObject
Fired by Ssh instance upon disconnect from server.
- Version:
- 1.0
- Author:
- vglass
- See Also:
- Serialized Form
Constructor Summary |
SshDisconnectedEvent(java.lang.Object source,
java.lang.String host,
int port)
Created SshDisconnectedEvent. |
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 |
SshDisconnectedEvent
public SshDisconnectedEvent(java.lang.Object source,
java.lang.String host,
int port)
- Created SshDisconnectedEvent.
- 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