com.jscape.inet.ssh.connection
Class PortHandler
java.lang.Object
com.jscape.inet.ssh.connection.PortHandler
- All Implemented Interfaces:
- ChannelRequestHandler
public class PortHandler
- extends java.lang.Object
- implements ChannelRequestHandler
- Author:
- Alex Usun
Field Summary |
static java.lang.String |
CHANNEL_TYPE
The handled channel type |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CHANNEL_TYPE
public static final java.lang.String CHANNEL_TYPE
- The handled channel type
- See Also:
- Constant Field Values
PortHandler
public PortHandler()
handle
public Message handle(com.jscape.inet.ssh.connection.messages.SshMsgChannelOpen request,
Connection connection)
- Specified by:
handle
in interface ChannelRequestHandler
- Parameters:
request
- connection
-
- Returns:
- Message instance
getPortFor
public RemotePort getPortFor(java.net.InetAddress address,
int port,
Connection connection)
throws java.io.IOException,
ConnectionException
- Parameters:
address
- port
- connection
-
- Returns:
- remote port
- Throws:
java.io.IOException
ConnectionException
removePort
public void removePort(RemotePort port)
- Parameters:
port
-
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved