net.schmizz.sshj.connection.channel
Interface Channel.Forwarded
- All Superinterfaces:
- Channel, Closeable, ErrorNotifiable, SSHPacketHandler
- All Known Implementing Classes:
- AbstractForwardedChannel, RemotePortForwarder.ForwardedTCPIPChannel, X11Forwarder.X11Channel
- Enclosing interface:
- Channel
public static interface Channel.Forwarded
- extends Channel
Forwarded channels are those that are initiated by the server.
Methods inherited from interface net.schmizz.sshj.connection.channel.Channel |
close, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getOutputStream, getRecipient, getRemoteMaxPacketSize, getRemoteWinSize, getType, isOpen, join, join, sendEOF, setAutoExpand |
confirm
void confirm()
throws TransportException
- Confirm
CHANNEL_OPEN
request.
- Throws:
TransportException
- error sending confirmation packet
getOriginatorIP
String getOriginatorIP()
- Returns:
- the IP of where the forwarded connection originates.
getOriginatorPort
int getOriginatorPort()
- Returns:
- port from which the forwarded connection originates.
reject
void reject(OpenFailException.Reason reason,
String message)
throws TransportException
- Indicate rejection to remote end.
- Parameters:
reason
- indicate reason
for rejection of the requestmessage
- indicate a message for why the request is rejected
- Throws:
TransportException
- error sending rejection packet
Copyright © 2009-2012. All Rights Reserved.