Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.sshtools.j2ssh.connection.Channel
com.sshtools.j2ssh.connection.BindingChannel
com.sshtools.j2ssh.forwarding.ForwardingBindingChannel
Field Summary |
Fields inherited from class com.sshtools.j2ssh.connection.BindingChannel | |
boundChannel , messages |
Fields inherited from class com.sshtools.j2ssh.connection.Channel | |
connection , localChannelId , localPacketSize , localWindow , remoteChannelId , remotePacketSize , remoteWindow , state |
Fields inherited from interface com.sshtools.j2ssh.forwarding.ForwardingChannel | |
LOCAL_FORWARDING_CHANNEL , REMOTE_FORWARDING_CHANNEL , X11_FORWARDING_CHANNEL |
Constructor Summary | |
|
Method Summary | |
byte[] | |
byte[] | |
String | |
String | |
protected int | |
protected int | |
protected int | |
String |
|
String | |
int | |
int | |
protected void |
|
Methods inherited from class com.sshtools.j2ssh.connection.BindingChannel | |
bindChannel , isBound , onChannelClose , onChannelData , onChannelEOF , onChannelExtData , onChannelOpen , setRemoteEOF |
Methods inherited from class com.sshtools.j2ssh.connection.Channel | |
addEventListener , close , finalizeClose , getChannelConfirmationData , getChannelOpenData , getChannelType , getLocalChannelId , getLocalPacketSize , getLocalWindow , getMaximumPacketSize , getMaximumWindowSpace , getMinimumWindowSpace , getName , getRemoteChannelId , getRemotePacketSize , getRemoteWindow , getState , init , init , isClosed , isLocalEOF , isOpen , isRemoteEOF , onChannelClose , onChannelData , onChannelEOF , onChannelExtData , onChannelOpen , onChannelRequest , open , processChannelData , processChannelData , remoteClose , sendChannelData , sendChannelExtData , setLocalEOF , setName , setRemoteEOF |
public ForwardingBindingChannel(String forwardType, String name, String hostToConnectOrBind, int portToConnectOrBind, String originatingHost, int originatingPort) throws ForwardingConfigurationException
Creates a new ForwardingBindingChannel object.
- Parameters:
forwardType
-hostToConnectOrBind
-portToConnectOrBind
-originatingHost
-originatingPort
-
- Throws:
ForwardingConfigurationException
-
public byte[] getChannelConfirmationData()
- Overrides:
- getChannelConfirmationData in interface Channel
- Returns:
public byte[] getChannelOpenData()
- Overrides:
- getChannelOpenData in interface Channel
- Returns:
public String getChannelType()
- Specified by:
- getChannelType in interface ForwardingChannel
- Overrides:
- getChannelType in interface Channel
- Returns:
public String getHostToConnectOrBind()
- Specified by:
- getHostToConnectOrBind in interface ForwardingChannel
- Returns:
protected int getMaximumPacketSize()
- Overrides:
- getMaximumPacketSize in interface Channel
- Returns:
protected int getMaximumWindowSpace()
- Overrides:
- getMaximumWindowSpace in interface Channel
- Returns:
protected int getMinimumWindowSpace()
- Overrides:
- getMinimumWindowSpace in interface Channel
- Returns:
public String getOriginatingHost()
- Specified by:
- getOriginatingHost in interface ForwardingChannel
- Returns:
public int getOriginatingPort()
- Specified by:
- getOriginatingPort in interface ForwardingChannel
- Returns:
public int getPortToConnectOrBind()
- Specified by:
- getPortToConnectOrBind in interface ForwardingChannel
- Returns:
protected void onChannelRequest(String request, boolean wantReply, byte[] requestData) throws IOException
- Overrides:
- onChannelRequest in interface Channel
- Parameters:
request
-wantReply
-requestData
-