Interface Channel.Forwarded
-
- All Superinterfaces:
java.lang.AutoCloseable
,Channel
,java.io.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.schmizz.sshj.connection.channel.Channel
Channel.Direct, Channel.Forwarded
-
Nested classes/interfaces inherited from interface net.schmizz.sshj.common.ErrorNotifiable
ErrorNotifiable.Util
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
confirm()
ConfirmCHANNEL_OPEN
request.java.lang.String
getOriginatorIP()
int
getOriginatorPort()
void
reject(OpenFailException.Reason reason, java.lang.String message)
Indicate rejection to remote end.-
Methods inherited from interface net.schmizz.sshj.connection.channel.Channel
close, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getLoggerFactory, getOutputStream, getRecipient, getRemoteCharset, getRemoteMaxPacketSize, getRemoteWinSize, getType, isEOF, isOpen, join, join, setAutoExpand
-
Methods inherited from interface net.schmizz.sshj.common.ErrorNotifiable
notifyError
-
Methods inherited from interface net.schmizz.sshj.common.SSHPacketHandler
handle
-
-
-
-
Method Detail
-
confirm
void confirm() throws TransportException
ConfirmCHANNEL_OPEN
request.- Throws:
TransportException
- error sending confirmation packet
-
getOriginatorIP
java.lang.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, java.lang.String message) throws TransportException
Indicate rejection to remote end.- Parameters:
reason
- indicatereason
for rejection of the requestmessage
- indicate a message for why the request is rejected- Throws:
TransportException
- error sending rejection packet
-
-