Class ChannelIdTrackingUnknownChannelReferenceHandler
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.session.helpers.DefaultUnknownChannelReferenceHandler
-
- org.apache.sshd.contrib.common.session.helpers.ChannelIdTrackingUnknownChannelReferenceHandler
-
- All Implemented Interfaces:
java.util.EventListener,org.apache.sshd.common.channel.ChannelListener,org.apache.sshd.common.session.UnknownChannelReferenceHandler,org.apache.sshd.common.util.SshdEventListener
public class ChannelIdTrackingUnknownChannelReferenceHandler extends org.apache.sshd.common.session.helpers.DefaultUnknownChannelReferenceHandler implements org.apache.sshd.common.channel.ChannelListenerMakes sure that the referenced "unknown" channel identifier is one that was assigned in the past. Note: it relies on the fact that the defaultConnectionServiceimplementation assigns channels identifiers in ascending order.
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.sshd.common.AttributeRepository.AttributeKey<java.lang.Long>LAST_CHANNEL_ID_KEYstatic ChannelIdTrackingUnknownChannelReferenceHandlerTRACKER
-
Constructor Summary
Constructors Constructor Description ChannelIdTrackingUnknownChannelReferenceHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelInitialized(org.apache.sshd.common.channel.Channel channel)org.apache.sshd.common.channel.ChannelhandleUnknownChannelCommand(org.apache.sshd.common.session.ConnectionService service, byte cmd, long channelId, org.apache.sshd.common.util.buffer.Buffer buffer)-
Methods inherited from class org.apache.sshd.common.session.helpers.DefaultUnknownChannelReferenceHandler
sendFailureResponse
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
-
-
-
-
Field Detail
-
LAST_CHANNEL_ID_KEY
public static final org.apache.sshd.common.AttributeRepository.AttributeKey<java.lang.Long> LAST_CHANNEL_ID_KEY
-
TRACKER
public static final ChannelIdTrackingUnknownChannelReferenceHandler TRACKER
-
-
Method Detail
-
channelInitialized
public void channelInitialized(org.apache.sshd.common.channel.Channel channel)
- Specified by:
channelInitializedin interfaceorg.apache.sshd.common.channel.ChannelListener
-
handleUnknownChannelCommand
public org.apache.sshd.common.channel.Channel handleUnknownChannelCommand(org.apache.sshd.common.session.ConnectionService service, byte cmd, long channelId, org.apache.sshd.common.util.buffer.Buffer buffer) throws java.io.IOException- Specified by:
handleUnknownChannelCommandin interfaceorg.apache.sshd.common.session.UnknownChannelReferenceHandler- Overrides:
handleUnknownChannelCommandin classorg.apache.sshd.common.session.helpers.DefaultUnknownChannelReferenceHandler- Throws:
java.io.IOException
-
-