com.sshtools.j2ssh.forwarding
Class ForwardingIOChannel

java.lang.Object
  extended by com.sshtools.j2ssh.connection.Channel
      extended by com.sshtools.j2ssh.connection.IOChannel
          extended by com.sshtools.j2ssh.forwarding.ForwardingIOChannel
All 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(java.lang.String forwardType, java.lang.String name, java.lang.String hostToConnectOrBind, int portToConnectOrBind, java.lang.String originatingHost, int originatingPort)
          Creates a new ForwardingIOChannel object.
 
Method Summary
 byte[] getChannelConfirmationData()
           
 byte[] getChannelOpenData()
           
 java.lang.String getChannelType()
           
 java.lang.String getHostToConnectOrBind()
           
protected  int getMaximumPacketSize()
           
protected  int getMaximumWindowSpace()
           
protected  int getMinimumWindowSpace()
           
 java.lang.String getName()
           
 java.lang.String getOriginatingHost()
           
 int getOriginatingPort()
           
 int getPortToConnectOrBind()
           
protected  void onChannelOpen()
           
protected  void onChannelRequest(java.lang.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, getLocalChannelId, getLocalPacketSize, getLocalWindow, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setName, setRemoteEOF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardingIOChannel

public ForwardingIOChannel(java.lang.String forwardType,
                           java.lang.String name,
                           java.lang.String hostToConnectOrBind,
                           int portToConnectOrBind,
                           java.lang.String originatingHost,
                           int originatingPort)
                    throws ForwardingConfigurationException
Creates a new ForwardingIOChannel object.

Parameters:
forwardType -
hostToConnectOrBind -
portToConnectOrBind -
originatingHost -
originatingPort -
Throws:
ForwardingConfigurationException
Method Detail

getChannelOpenData

public byte[] getChannelOpenData()
Specified by:
getChannelOpenData in class Channel
Returns:

getChannelConfirmationData

public byte[] getChannelConfirmationData()
Specified by:
getChannelConfirmationData in class Channel
Returns:

getName

public java.lang.String getName()
Specified by:
getName in interface ForwardingChannel
Overrides:
getName in class Channel

getChannelType

public java.lang.String getChannelType()
Specified by:
getChannelType in interface ForwardingChannel
Specified by:
getChannelType in class Channel
Returns:

getMinimumWindowSpace

protected int getMinimumWindowSpace()
Specified by:
getMinimumWindowSpace in class Channel
Returns:

getMaximumWindowSpace

protected int getMaximumWindowSpace()
Specified by:
getMaximumWindowSpace in class Channel
Returns:

getMaximumPacketSize

protected int getMaximumPacketSize()
Specified by:
getMaximumPacketSize in class Channel
Returns:

getOriginatingHost

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

getOriginatingPort

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

getHostToConnectOrBind

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

getPortToConnectOrBind

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

onChannelRequest

protected void onChannelRequest(java.lang.String request,
                                boolean wantReply,
                                byte[] requestData)
                         throws java.io.IOException
Specified by:
onChannelRequest in class Channel
Parameters:
request -
wantReply -
requestData -
Throws:
java.io.IOException

onChannelOpen

protected void onChannelOpen()
                      throws java.io.IOException
Specified by:
onChannelOpen in class Channel
Throws:
java.io.IOException


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