public abstract class AbstractForwardedChannel extends AbstractChannel implements Channel.Forwarded
Channel.Direct, Channel.Forwarded
ErrorNotifiable.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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getOutputStream, getRecipient, getRemoteMaxPacketSize, getRemoteWinSize, getType, isOpen, join, join, setAutoExpand
handle
notifyError
protected 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.Forwarded
CHANNEL_OPEN
request.confirm
in interface Channel.Forwarded
TransportException
- error sending confirmation packetpublic void reject(OpenFailException.Reason reason, java.lang.String message) throws TransportException
Channel.Forwarded
reject
in interface Channel.Forwarded
reason
- 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.Forwarded
public int getOriginatorPort()
getOriginatorPort
in interface Channel.Forwarded