Package com.sshtools.j2ssh.forwarding
Class ForwardingChannelImpl
java.lang.Object
com.sshtools.j2ssh.forwarding.ForwardingChannelImpl
- All Implemented Interfaces:
ForwardingChannel
- Version:
- $Revision: 1.11 $
- Author:
- $author$
-
Field Summary
Fields inherited from interface com.sshtools.j2ssh.forwarding.ForwardingChannel
LOCAL_FORWARDING_CHANNEL, REMOTE_FORWARDING_CHANNEL, X11_FORWARDING_CHANNEL -
Constructor Summary
ConstructorsConstructorDescriptionForwardingChannelImpl(String forwardType, String name, String hostToConnectOrBind, int portToConnectOrBind, String originatingHost, int originatingPort) Creates a new ForwardingChannelImpl object. -
Method Summary
-
Constructor Details
-
ForwardingChannelImpl
public ForwardingChannelImpl(String forwardType, String name, String hostToConnectOrBind, int portToConnectOrBind, String originatingHost, int originatingPort) throws ForwardingConfigurationException Creates a new ForwardingChannelImpl object.- Parameters:
forwardType-hostToConnectOrBind-portToConnectOrBind-originatingHost-originatingPort-- Throws:
ForwardingConfigurationException
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceForwardingChannel
-
getHostToConnectOrBind
- Specified by:
getHostToConnectOrBindin interfaceForwardingChannel- Returns:
-
getPortToConnectOrBind
public int getPortToConnectOrBind()- Specified by:
getPortToConnectOrBindin interfaceForwardingChannel- Returns:
-
getChannelOpenData
public byte[] getChannelOpenData()- Returns:
-
getChannelConfirmationData
public byte[] getChannelConfirmationData()- Returns:
-
getChannelType
- Specified by:
getChannelTypein interfaceForwardingChannel- Returns:
-
getOriginatingHost
- Specified by:
getOriginatingHostin interfaceForwardingChannel- Returns:
-
getOriginatingPort
public int getOriginatingPort()- Specified by:
getOriginatingPortin interfaceForwardingChannel- Returns:
-