com.sshtools.j2ssh.forwarding

Class ForwardingBindingChannel

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

ForwardingBindingChannel(String forwardType, String name, String hostToConnectOrBind, int portToConnectOrBind, String originatingHost, int originatingPort)
Creates a new ForwardingBindingChannel object.

Method Summary

byte[]
getChannelConfirmationData()
byte[]
getChannelOpenData()
String
getChannelType()
String
getHostToConnectOrBind()
protected int
getMaximumPacketSize()
protected int
getMaximumWindowSpace()
protected int
getMinimumWindowSpace()
String
getName()
String
getOriginatingHost()
int
getOriginatingPort()
int
getPortToConnectOrBind()
protected void
onChannelRequest(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, 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

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 -

Method Details

getChannelConfirmationData

public byte[] getChannelConfirmationData()
Overrides:
getChannelConfirmationData in interface Channel
Returns:

getChannelOpenData

public byte[] getChannelOpenData()
Overrides:
getChannelOpenData in interface Channel
Returns:

getChannelType

public String getChannelType()
Specified by:
getChannelType in interface ForwardingChannel
Overrides:
getChannelType in interface Channel
Returns:

getHostToConnectOrBind

public String getHostToConnectOrBind()
Specified by:
getHostToConnectOrBind in interface ForwardingChannel
Returns:

getMaximumPacketSize

protected int getMaximumPacketSize()
Overrides:
getMaximumPacketSize in interface Channel
Returns:

getMaximumWindowSpace

protected int getMaximumWindowSpace()
Overrides:
getMaximumWindowSpace in interface Channel
Returns:

getMinimumWindowSpace

protected int getMinimumWindowSpace()
Overrides:
getMinimumWindowSpace in interface Channel
Returns:

getName

public String getName()
Specified by:
getName in interface ForwardingChannel
Overrides:
getName in interface Channel

getOriginatingHost

public String getOriginatingHost()
Specified by:
getOriginatingHost in interface ForwardingChannel
Returns:

getOriginatingPort

public int getOriginatingPort()
Specified by:
getOriginatingPort in interface ForwardingChannel
Returns:

getPortToConnectOrBind

public int getPortToConnectOrBind()
Specified by:
getPortToConnectOrBind in interface ForwardingChannel
Returns:

onChannelRequest

protected void onChannelRequest(String request,
                                boolean wantReply,
                                byte[] requestData)
            throws IOException
Overrides:
onChannelRequest in interface Channel
Parameters:
request -
wantReply -
requestData -

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.