Interface ChannelStreamWriterResolver

    • Field Detail

      • NONE

        static final ChannelStreamWriterResolver NONE
        An identity resolver - i.e., no special intervention - simply use the channel itself
    • Method Detail

      • resolveChannelStreamWriter

        ChannelStreamWriter resolveChannelStreamWriter​(Channel channel,
                                                       byte cmd)
        Parameters:
        channel - The original Channel
        cmd - The SSH_MSG_CHANNEL_DATA or SSH_MSG_CHANNEL_EXTENDED_DATA command that triggered the resolution
        Returns:
        The ChannelStreamWriter to use - Note: if the return value is not a Channel then it will be closed when the stream is closed