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:
getName
in interfaceForwardingChannel
-
getHostToConnectOrBind
- Specified by:
getHostToConnectOrBind
in interfaceForwardingChannel
- Returns:
-
getPortToConnectOrBind
public int getPortToConnectOrBind()- Specified by:
getPortToConnectOrBind
in interfaceForwardingChannel
- Returns:
-
getChannelOpenData
public byte[] getChannelOpenData()- Returns:
-
getChannelConfirmationData
public byte[] getChannelConfirmationData()- Returns:
-
getChannelType
- Specified by:
getChannelType
in interfaceForwardingChannel
- Returns:
-
getOriginatingHost
- Specified by:
getOriginatingHost
in interfaceForwardingChannel
- Returns:
-
getOriginatingPort
public int getOriginatingPort()- Specified by:
getOriginatingPort
in interfaceForwardingChannel
- Returns:
-