Top Fields Constructors Methods
org.apache.sshd.common.session.helpers

public Class DefaultUnknownChannelReferenceHandler

extends AbstractLoggingBean
implements UnknownChannelReferenceHandler
Class Inheritance
All Implemented Interfaces
org.apache.sshd.common.session.UnknownChannelReferenceHandler
Imports
java.io.IOException, org.apache.sshd.common.SshConstants, org.apache.sshd.common.channel.Channel, org.apache.sshd.common.io.IoWriteFuture, org.apache.sshd.common.session.ConnectionService, .Session, .UnknownChannelReferenceHandler, org.apache.sshd.common.util.buffer.Buffer, org.apache.sshd.common.util.logging.AbstractLoggingBean, org.apache.sshd.core.CoreModuleProperties

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final DefaultUnknownChannelReferenceHandler
Inherited from org.apache.sshd.common.util.logging.AbstractLoggingBean:
log

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Channel
handleUnknownChannelCommand(ConnectionService
The ConnectionService instance through which the message was received
service
,
byte
The requested command identifier
cmd
,
long
The (unknown) target channel identifier
channelId
,
Buffer
The message Buffer containing the rest of the message
buffer
)

Implements org.apache.sshd.common.session.UnknownChannelReferenceHandler.handleUnknownChannelCommand.

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, long channelId)

Inherited from org.apache.sshd.common.util.logging.AbstractLoggingBean:
debugdebugdebugdebugdebugerrorerrorerrorerrorerrorgetSimplifiedLoggerinfoinfowarnwarnwarnwarnwarnwarnwarnwarn

Field Detail

INSTANCEback to summary
public static final DefaultUnknownChannelReferenceHandler INSTANCE

Constructor Detail

DefaultUnknownChannelReferenceHandlerback to summary
public DefaultUnknownChannelReferenceHandler()

Method Detail

handleUnknownChannelCommandback to summary
public Channel handleUnknownChannelCommand(ConnectionService service, byte cmd, long channelId, Buffer buffer) throws IOException

Implements org.apache.sshd.common.session.UnknownChannelReferenceHandler.handleUnknownChannelCommand.

Doc from org.apache.sshd.common.session.UnknownChannelReferenceHandler.handleUnknownChannelCommand.

Invoked when the connection service responsible for handling channel messages receives a message intended for an unknown channel.

Parameters
service:ConnectionService

The ConnectionService instance through which the message was received

cmd:byte

The requested command identifier

channelId:long

The (unknown) target channel identifier

buffer:Buffer

The message Buffer containing the rest of the message

Returns:Channel

The resolved Channel - if null then the message for the unknown channel is ignored.

Annotations
@Override
Exceptions
IOException:
If failed to handle the request
sendFailureResponseback to summary
protected IoWriteFuture sendFailureResponse(ConnectionService service, byte cmd, long channelId) throws IOException