Class FilterContext
java.lang.Object
org.apache.sshd.common.filter.FilterContext
-
Method Summary
Modifier and TypeMethodDescriptionvoidpassOn(org.apache.sshd.common.util.Readable message) Pass on an incoming message to the next filter after this one that has anInputHandler.org.apache.sshd.common.io.IoWriteFuturesend(int cmd, org.apache.sshd.common.util.buffer.Buffer message) Pass on an outgoing message to the next filter before this one that has anOutputHandler.
-
Method Details
-
send
public org.apache.sshd.common.io.IoWriteFuture send(int cmd, org.apache.sshd.common.util.buffer.Buffer message) throws IOException Pass on an outgoing message to the next filter before this one that has anOutputHandler.- Parameters:
cmd- the SSH command code of the buffer being written; must also be included in the buffermessage- being passed on- Returns:
- an
IoWriteFuturethat is fulfilled when the message has been sent. - Throws:
IOException- if an error occurs
-
passOn
Pass on an incoming message to the next filter after this one that has anInputHandler.- Parameters:
message- being passed on- Throws:
Exception- if an error occurs
-