Class FilterContext

java.lang.Object
org.apache.sshd.common.filter.FilterContext

public final class FilterContext extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    passOn(org.apache.sshd.common.util.Readable message)
    Pass on an incoming message to the next filter after this one that has an InputHandler.
    org.apache.sshd.common.io.IoWriteFuture
    send(int cmd, org.apache.sshd.common.util.buffer.Buffer message)
    Pass on an outgoing message to the next filter before this one that has an OutputHandler.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 an OutputHandler.
      Parameters:
      cmd - the SSH command code of the buffer being written; must also be included in the buffer
      message - being passed on
      Returns:
      an IoWriteFuture that is fulfilled when the message has been sent.
      Throws:
      IOException - if an error occurs
    • passOn

      public void passOn(org.apache.sshd.common.util.Readable message) throws Exception
      Pass on an incoming message to the next filter after this one that has an InputHandler.
      Parameters:
      message - being passed on
      Throws:
      Exception - if an error occurs