Package 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$
-
-
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
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getChannelConfirmationData()
byte[]
getChannelOpenData()
java.lang.String
getChannelType()
java.lang.String
getHostToConnectOrBind()
protected int
getMaximumPacketSize()
protected int
getMaximumWindowSpace()
protected int
getMinimumWindowSpace()
java.lang.String
getName()
java.lang.String
getOriginatingHost()
int
getOriginatingPort()
int
getPortToConnectOrBind()
protected void
onChannelRequest(java.lang.String request, boolean wantReply, byte[] requestData)
-
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, getLocalChannelId, getLocalPacketSize, getLocalWindow, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, open, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setLocalEOF, setName
-
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceForwardingChannel
- Overrides:
getName
in classChannel
-
getChannelOpenData
public byte[] getChannelOpenData()
- Specified by:
getChannelOpenData
in classChannel
- Returns:
-
getChannelConfirmationData
public byte[] getChannelConfirmationData()
- Specified by:
getChannelConfirmationData
in classChannel
- Returns:
-
getChannelType
public java.lang.String getChannelType()
- Specified by:
getChannelType
in interfaceForwardingChannel
- Specified by:
getChannelType
in classChannel
- Returns:
-
getMinimumWindowSpace
protected int getMinimumWindowSpace()
- Specified by:
getMinimumWindowSpace
in classChannel
- Returns:
-
getMaximumWindowSpace
protected int getMaximumWindowSpace()
- Specified by:
getMaximumWindowSpace
in classChannel
- Returns:
-
getMaximumPacketSize
protected int getMaximumPacketSize()
- Specified by:
getMaximumPacketSize
in classChannel
- Returns:
-
getOriginatingHost
public java.lang.String getOriginatingHost()
- Specified by:
getOriginatingHost
in interfaceForwardingChannel
- Returns:
-
getOriginatingPort
public int getOriginatingPort()
- Specified by:
getOriginatingPort
in interfaceForwardingChannel
- Returns:
-
getHostToConnectOrBind
public java.lang.String getHostToConnectOrBind()
- Specified by:
getHostToConnectOrBind
in interfaceForwardingChannel
- Returns:
-
getPortToConnectOrBind
public int getPortToConnectOrBind()
- Specified by:
getPortToConnectOrBind
in interfaceForwardingChannel
- Returns:
-
onChannelRequest
protected void onChannelRequest(java.lang.String request, boolean wantReply, byte[] requestData) throws java.io.IOException
- Specified by:
onChannelRequest
in classChannel
- Parameters:
request
-wantReply
-requestData
-- Throws:
java.io.IOException
-
-