com.sshtools.j2ssh.forwarding

Class ForwardingIOChannel

Implemented Interfaces:
ForwardingChannel

public class ForwardingIOChannel
extends IOChannel
implements ForwardingChannel

Version:
$Revision: 1.13 $
Author:
$author$

Field Summary

Fields inherited from class com.sshtools.j2ssh.connection.IOChannel

boundInputStream, boundOutputStream, in, ios, out

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

ForwardingIOChannel(String forwardType, String name, String hostToConnectOrBind, int portToConnectOrBind, String originatingHost, int originatingPort)
Creates a new ForwardingIOChannel 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
onChannelOpen()
protected void
onChannelRequest(String request, boolean wantReply, byte[] requestData)

Methods inherited from class com.sshtools.j2ssh.connection.IOChannel

bindInputStream, bindOutputStream, getInputStream, getOutputStream, init, onChannelClose, onChannelData, onChannelEOF, onChannelExtData, open, setLocalEOF

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

ForwardingIOChannel

public ForwardingIOChannel(String forwardType,
                           String name,
                           String hostToConnectOrBind,
                           int portToConnectOrBind,
                           String originatingHost,
                           int originatingPort)
            throws ForwardingConfigurationException
Creates a new ForwardingIOChannel 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:

onChannelOpen

protected void onChannelOpen()
            throws IOException
Overrides:
onChannelOpen in interface Channel

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.