Class DefaultUnknownChannelReferenceHandler

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.session.helpers.DefaultUnknownChannelReferenceHandler
All Implemented Interfaces:
UnknownChannelReferenceHandler

public class DefaultUnknownChannelReferenceHandler extends org.apache.sshd.common.util.logging.AbstractLoggingBean implements UnknownChannelReferenceHandler
Author:
Apache MINA SSHD Project
  • Field Details

  • Constructor Details

    • DefaultUnknownChannelReferenceHandler

      public DefaultUnknownChannelReferenceHandler()
  • Method Details

    • handleUnknownChannelCommand

      public Channel handleUnknownChannelCommand(ConnectionService service, byte cmd, long channelId, org.apache.sshd.common.util.buffer.Buffer buffer) throws IOException
      Description copied from interface: UnknownChannelReferenceHandler
      Invoked when the connection service responsible for handling channel messages receives a message intended for an unknown channel.
      Specified by:
      handleUnknownChannelCommand in interface UnknownChannelReferenceHandler
      Parameters:
      service - The ConnectionService instance through which the message was received
      cmd - The requested command identifier
      channelId - The (unknown) target channel identifier
      buffer - The message Buffer containing the rest of the message
      Returns:
      The resolved Channel - if null then the message for the unknown channel is ignored.
      Throws:
      IOException - If failed to handle the request
    • sendFailureResponse

      protected org.apache.sshd.common.io.IoWriteFuture sendFailureResponse(ConnectionService service, byte cmd, long channelId) throws IOException
      Throws:
      IOException