com.sshtools.j2ssh.forwarding
Class ForwardingBindingChannel
java.lang.Object
com.sshtools.j2ssh.connection.Channel
com.sshtools.j2ssh.connection.BindingChannel
com.sshtools.j2ssh.forwarding.ForwardingBindingChannel
- All Implemented Interfaces:
- ForwardingChannel
public class ForwardingBindingChannel
- extends BindingChannel
- implements ForwardingChannel
- Version:
- $Revision: 1.12 $
- Author:
- $author$
Constructor Summary |
ForwardingBindingChannel(java.lang.String forwardType,
java.lang.String name,
java.lang.String hostToConnectOrBind,
int portToConnectOrBind,
java.lang.String originatingHost,
int originatingPort)
Creates a new ForwardingBindingChannel object. |
Methods inherited from class com.sshtools.j2ssh.connection.Channel |
addEventListener, close, finalizeClose, getLocalChannelId, getLocalPacketSize, getLocalWindow, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, open, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setLocalEOF, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForwardingBindingChannel
public ForwardingBindingChannel(java.lang.String forwardType,
java.lang.String name,
java.lang.String hostToConnectOrBind,
int portToConnectOrBind,
java.lang.String originatingHost,
int originatingPort)
throws ForwardingConfigurationException
- Creates a new ForwardingBindingChannel object.
- Parameters:
forwardType
- hostToConnectOrBind
- portToConnectOrBind
- originatingHost
- originatingPort
-
- Throws:
ForwardingConfigurationException
getName
public java.lang.String getName()
- Specified by:
getName
in interface ForwardingChannel
- Overrides:
getName
in class Channel
getChannelOpenData
public byte[] getChannelOpenData()
- Specified by:
getChannelOpenData
in class Channel
- Returns:
getChannelConfirmationData
public byte[] getChannelConfirmationData()
- Specified by:
getChannelConfirmationData
in class Channel
- Returns:
getChannelType
public java.lang.String getChannelType()
- Specified by:
getChannelType
in interface ForwardingChannel
- Specified by:
getChannelType
in class Channel
- Returns:
getMinimumWindowSpace
protected int getMinimumWindowSpace()
- Specified by:
getMinimumWindowSpace
in class Channel
- Returns:
getMaximumWindowSpace
protected int getMaximumWindowSpace()
- Specified by:
getMaximumWindowSpace
in class Channel
- Returns:
getMaximumPacketSize
protected int getMaximumPacketSize()
- Specified by:
getMaximumPacketSize
in class Channel
- Returns:
getOriginatingHost
public java.lang.String getOriginatingHost()
- Specified by:
getOriginatingHost
in interface ForwardingChannel
- Returns:
getOriginatingPort
public int getOriginatingPort()
- Specified by:
getOriginatingPort
in interface ForwardingChannel
- Returns:
getHostToConnectOrBind
public java.lang.String getHostToConnectOrBind()
- Specified by:
getHostToConnectOrBind
in interface ForwardingChannel
- Returns:
getPortToConnectOrBind
public int getPortToConnectOrBind()
- Specified by:
getPortToConnectOrBind
in interface ForwardingChannel
- Returns:
onChannelRequest
protected void onChannelRequest(java.lang.String request,
boolean wantReply,
byte[] requestData)
throws java.io.IOException
- Specified by:
onChannelRequest
in class Channel
- Parameters:
request
- wantReply
- requestData
-
- Throws:
java.io.IOException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.