public abstract class AbstractForwardedChannel extends AbstractChannel implements Channel.Forwarded
Channel.Direct, Channel.ForwardedErrorNotifiable.Util| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
origIP |
protected int |
origPort |
closeEvent, conn, log, lwin, openEvent, rwin, trans| Modifier | Constructor and Description |
|---|---|
protected |
AbstractForwardedChannel(Connection conn,
java.lang.String type,
int recipient,
long remoteWinSize,
long remoteMaxPacketSize,
java.lang.String origIP,
int origPort) |
| Modifier and Type | Method and Description |
|---|---|
void |
confirm()
Confirm
CHANNEL_OPEN request. |
java.lang.String |
getOriginatorIP() |
int |
getOriginatorPort() |
void |
reject(OpenFailException.Reason reason,
java.lang.String message)
Indicate rejection to remote end.
|
close, closeAllStreams, eofInputStreams, finishOff, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getOutputStream, getRecipient, getRemoteMaxPacketSize, getRemoteWinSize, getType, gotExtendedData, gotUnknown, handle, handleRequest, init, isOpen, join, join, newBuffer, notifyError, receiveInto, sendChannelRequest, sendClose, setAutoExpand, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getOutputStream, getRecipient, getRemoteMaxPacketSize, getRemoteWinSize, getType, isOpen, join, join, setAutoExpandhandlenotifyErrorprotected AbstractForwardedChannel(Connection conn, java.lang.String type, int recipient, long remoteWinSize, long remoteMaxPacketSize, java.lang.String origIP, int origPort)
public void confirm()
throws TransportException
Channel.ForwardedCHANNEL_OPEN request.confirm in interface Channel.ForwardedTransportException - error sending confirmation packetpublic void reject(OpenFailException.Reason reason, java.lang.String message) throws TransportException
Channel.Forwardedreject in interface Channel.Forwardedreason - indicate reason for rejection of the requestmessage - indicate a message for why the request is rejectedTransportException - error sending rejection packetpublic java.lang.String getOriginatorIP()
getOriginatorIP in interface Channel.Forwardedpublic int getOriginatorPort()
getOriginatorPort in interface Channel.Forwarded