public class DefaultUnknownChannelReferenceHandler extends AbstractLoggingBean implements UnknownChannelReferenceHandler
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_SEND_REPLY_FOR_CHANNEL_DATA |
static DefaultUnknownChannelReferenceHandler |
INSTANCE |
static String |
SEND_REPLY_FOR_CHANNEL_DATA
RFC4254 does not clearly specify how to handle
SSH_MSG_CHANNEL_DATA
and SSH_MSG_CHANNEL_EXTENDED_DATA received through an unknown channel. |
log
Constructor and Description |
---|
DefaultUnknownChannelReferenceHandler() |
Modifier and Type | Method and Description |
---|---|
Channel |
handleUnknownChannelCommand(ConnectionService service,
byte cmd,
int channelId,
Buffer buffer)
Invoked when the connection service responsible for handling channel
messages receives a message intended for an unknown channel.
|
protected IoWriteFuture |
sendFailureResponse(ConnectionService service,
byte cmd,
int channelId) |
getSimplifiedLogger
public static final String SEND_REPLY_FOR_CHANNEL_DATA
SSH_MSG_CHANNEL_DATA
and SSH_MSG_CHANNEL_EXTENDED_DATA
received through an unknown channel.
Therefore, we provide a configurable approach to it with the default set to ignore it.public static final boolean DEFAULT_SEND_REPLY_FOR_CHANNEL_DATA
public static final DefaultUnknownChannelReferenceHandler INSTANCE
public DefaultUnknownChannelReferenceHandler()
public Channel handleUnknownChannelCommand(ConnectionService service, byte cmd, int channelId, Buffer buffer) throws IOException
UnknownChannelReferenceHandler
handleUnknownChannelCommand
in interface UnknownChannelReferenceHandler
service
- The ConnectionService
instance through which the
message was receivedcmd
- The requested command identifierchannelId
- The (unknown) target channel identifierbuffer
- The message Buffer
containing the rest of the messageChannel
- if null
then the message
for the unknown channel is ignored.IOException
- If failed to handle the requestprotected IoWriteFuture sendFailureResponse(ConnectionService service, byte cmd, int channelId) throws IOException
IOException
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.