public class ForwardingSocketChannel extends SocketChannel implements ForwardingChannel
socketconnection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, stateLOCAL_FORWARDING_CHANNEL, REMOTE_FORWARDING_CHANNEL, X11_FORWARDING_CHANNEL| Constructor and Description |
|---|
ForwardingSocketChannel(java.lang.String forwardType,
java.lang.String name,
java.lang.String hostToConnectOrBind,
int portToConnectOrBind,
java.lang.String originatingHost,
int originatingPort)
Creates a new ForwardingSocketChannel 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 |
onChannelRequest(java.lang.String request,
boolean wantReply,
byte[] requestData) |
bindSocket, onChannelClose, onChannelData, onChannelEOF, onChannelExtData, onChannelOpenaddEventListener, close, finalizeClose, getLocalChannelId, getLocalPacketSize, getLocalWindow, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, open, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setLocalEOF, setName, setRemoteEOFpublic ForwardingSocketChannel(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 - ForwardingConfigurationExceptionpublic java.lang.String getName()
getName in interface ForwardingChannelgetName in class Channelpublic byte[] getChannelOpenData()
getChannelOpenData in class Channelpublic byte[] getChannelConfirmationData()
getChannelConfirmationData in class Channelpublic java.lang.String getChannelType()
getChannelType in interface ForwardingChannelgetChannelType in class Channelprotected int getMinimumWindowSpace()
getMinimumWindowSpace in class Channelprotected int getMaximumWindowSpace()
getMaximumWindowSpace in class Channelprotected int getMaximumPacketSize()
getMaximumPacketSize in class Channelpublic java.lang.String getOriginatingHost()
getOriginatingHost in interface ForwardingChannelpublic int getOriginatingPort()
getOriginatingPort in interface ForwardingChannelpublic java.lang.String getHostToConnectOrBind()
getHostToConnectOrBind in interface ForwardingChannelpublic int getPortToConnectOrBind()
getPortToConnectOrBind in interface ForwardingChannelprotected void onChannelRequest(java.lang.String request,
boolean wantReply,
byte[] requestData)
throws java.io.IOException
onChannelRequest in class Channelrequest - wantReply - requestData - java.io.IOExceptionCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.