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
- Version:
- $Revision: 1.12 $
- Author:
- $author$
-
Field Summary
Fields inherited from class com.sshtools.j2ssh.connection.BindingChannel
boundChannel, messagesFields inherited from class com.sshtools.j2ssh.connection.Channel
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, stateFields inherited from interface com.sshtools.j2ssh.forwarding.ForwardingChannel
LOCAL_FORWARDING_CHANNEL, REMOTE_FORWARDING_CHANNEL, X11_FORWARDING_CHANNEL -
Constructor Summary
ConstructorsConstructorDescriptionForwardingBindingChannel(String forwardType, String name, String hostToConnectOrBind, int portToConnectOrBind, String originatingHost, int originatingPort) Creates a new ForwardingBindingChannel object. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]byte[]protected intprotected intprotected intgetName()intintprotected voidonChannelRequest(String request, boolean wantReply, byte[] requestData) Methods inherited from class com.sshtools.j2ssh.connection.BindingChannel
bindChannel, isBound, onChannelClose, onChannelData, onChannelEOF, onChannelExtData, onChannelOpen, setRemoteEOFMethods 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 Details
-
ForwardingBindingChannel
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
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceForwardingChannel- Overrides:
getNamein classChannel- Returns:
-
getChannelOpenData
public byte[] getChannelOpenData()- Specified by:
getChannelOpenDatain classChannel- Returns:
-
getChannelConfirmationData
public byte[] getChannelConfirmationData()- Specified by:
getChannelConfirmationDatain classChannel- Returns:
-
getChannelType
- Specified by:
getChannelTypein interfaceForwardingChannel- Specified by:
getChannelTypein classChannel- Returns:
-
getMinimumWindowSpace
protected int getMinimumWindowSpace()- Specified by:
getMinimumWindowSpacein classChannel- Returns:
-
getMaximumWindowSpace
protected int getMaximumWindowSpace()- Specified by:
getMaximumWindowSpacein classChannel- Returns:
-
getMaximumPacketSize
protected int getMaximumPacketSize()- Specified by:
getMaximumPacketSizein classChannel- Returns:
-
getOriginatingHost
- Specified by:
getOriginatingHostin interfaceForwardingChannel- Returns:
-
getOriginatingPort
public int getOriginatingPort()- Specified by:
getOriginatingPortin interfaceForwardingChannel- Returns:
-
getHostToConnectOrBind
- Specified by:
getHostToConnectOrBindin interfaceForwardingChannel- Returns:
-
getPortToConnectOrBind
public int getPortToConnectOrBind()- Specified by:
getPortToConnectOrBindin interfaceForwardingChannel- Returns:
-
onChannelRequest
protected void onChannelRequest(String request, boolean wantReply, byte[] requestData) throws IOException - Specified by:
onChannelRequestin classChannel- Parameters:
request-wantReply-requestData-- Throws:
IOException
-