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 AbstractLoggingBean implements UnknownChannelReferenceHandler
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultUnknownChannelReferenceHandlerINSTANCE-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description DefaultUnknownChannelReferenceHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelhandleUnknownChannelCommand(ConnectionService service, byte cmd, long channelId, Buffer buffer)Invoked when the connection service responsible for handling channel messages receives a message intended for an unknown channel.protected IoWriteFuturesendFailureResponse(ConnectionService service, byte cmd, long channelId)
-
-
-
Field Detail
-
INSTANCE
public static final DefaultUnknownChannelReferenceHandler INSTANCE
-
-
Method Detail
-
handleUnknownChannelCommand
public Channel handleUnknownChannelCommand(ConnectionService service, byte cmd, long channelId, Buffer buffer) throws IOException
Description copied from interface:UnknownChannelReferenceHandlerInvoked when the connection service responsible for handling channel messages receives a message intended for an unknown channel.- Specified by:
handleUnknownChannelCommandin interfaceUnknownChannelReferenceHandler- Parameters:
service- TheConnectionServiceinstance through which the message was receivedcmd- The requested command identifierchannelId- The (unknown) target channel identifierbuffer- The messageBuffercontaining the rest of the message- Returns:
- The resolved
Channel- ifnullthen the message for the unknown channel is ignored. - Throws:
IOException- If failed to handle the request
-
sendFailureResponse
protected IoWriteFuture sendFailureResponse(ConnectionService service, byte cmd, long channelId) throws IOException
- Throws:
IOException
-
-