public class ForwardingIOChannel extends IOChannel implements ForwardingChannel
boundInputStream, boundOutputStream, in, ios, out
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state
LOCAL_FORWARDING_CHANNEL, REMOTE_FORWARDING_CHANNEL, X11_FORWARDING_CHANNEL
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
bindInputStream, bindOutputStream, getInputStream, getOutputStream, init, onChannelClose, onChannelData, onChannelEOF, onChannelExtData, open, setLocalEOF
addEventListener, close, finalizeClose, getLocalChannelId, getLocalPacketSize, getLocalWindow, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setName, setRemoteEOF
public ForwardingIOChannel(java.lang.String forwardType, java.lang.String name, java.lang.String hostToConnectOrBind, int portToConnectOrBind, java.lang.String originatingHost, int originatingPort) throws ForwardingConfigurationException
forwardType
- hostToConnectOrBind
- portToConnectOrBind
- originatingHost
- originatingPort
- ForwardingConfigurationException
public byte[] getChannelOpenData()
getChannelOpenData
in class Channel
public byte[] getChannelConfirmationData()
getChannelConfirmationData
in class Channel
public java.lang.String getName()
getName
in interface ForwardingChannel
getName
in class Channel
public java.lang.String getChannelType()
getChannelType
in interface ForwardingChannel
getChannelType
in class Channel
protected int getMinimumWindowSpace()
getMinimumWindowSpace
in class Channel
protected int getMaximumWindowSpace()
getMaximumWindowSpace
in class Channel
protected int getMaximumPacketSize()
getMaximumPacketSize
in class Channel
public java.lang.String getOriginatingHost()
getOriginatingHost
in interface ForwardingChannel
public int getOriginatingPort()
getOriginatingPort
in interface ForwardingChannel
public java.lang.String getHostToConnectOrBind()
getHostToConnectOrBind
in interface ForwardingChannel
public int getPortToConnectOrBind()
getPortToConnectOrBind
in interface ForwardingChannel
protected void onChannelRequest(java.lang.String request, boolean wantReply, byte[] requestData) throws java.io.IOException
onChannelRequest
in class Channel
request
- wantReply
- requestData
- java.io.IOException
protected void onChannelOpen() throws java.io.IOException
onChannelOpen
in class Channel
java.io.IOException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.