Class ReservedSessionMessagesHandlerAdapter
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.session.helpers.ReservedSessionMessagesHandlerAdapter
- All Implemented Interfaces:
EventListener,ReservedSessionMessagesHandler,SshdEventListener
public class ReservedSessionMessagesHandlerAdapter
extends AbstractLoggingBean
implements ReservedSessionMessagesHandler
Delegates the main interface methods to specific ones after having decoded each message buffer
-
Field Summary
FieldsFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleDebugMessage(Session session, boolean display, String msg, String lang, Buffer buffer) voidhandleDebugMessage(Session session, Buffer buffer) Invoked when anSSH_MSG_DEBUGpacket is receivedvoidhandleIgnoreMessage(Session session, byte[] data, Buffer buffer) voidhandleIgnoreMessage(Session session, Buffer buffer) Invoked when anSSH_MSG_IGNOREpacket is receivedbooleanhandleUnimplementedMessage(Session session, int cmd, Buffer buffer) Invoked when a packet with an un-implemented message is received - includingSSH_MSG_UNIMPLEMENTEDitselfMethods 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, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.common.session.ReservedSessionMessagesHandler
sendReservedHeartbeat
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
ReservedSessionMessagesHandlerAdapter
public ReservedSessionMessagesHandlerAdapter()
-
-
Method Details
-
handleIgnoreMessage
Description copied from interface:ReservedSessionMessagesHandlerInvoked when anSSH_MSG_IGNOREpacket is received- Specified by:
handleIgnoreMessagein interfaceReservedSessionMessagesHandler- Parameters:
session- TheSessionthrough which the message was receivedbuffer- TheBuffercontaining the data- Throws:
Exception- If failed to handle the message- See Also:
-
handleIgnoreMessage
- Throws:
Exception
-
handleDebugMessage
Description copied from interface:ReservedSessionMessagesHandlerInvoked when anSSH_MSG_DEBUGpacket is received- Specified by:
handleDebugMessagein interfaceReservedSessionMessagesHandler- Parameters:
session- TheSessionthrough which the message was receivedbuffer- TheBuffercontaining the data- Throws:
Exception- If failed to handle the message- See Also:
-
handleDebugMessage
public void handleDebugMessage(Session session, boolean display, String msg, String lang, Buffer buffer) throws Exception - Throws:
Exception
-
handleUnimplementedMessage
Description copied from interface:ReservedSessionMessagesHandlerInvoked when a packet with an un-implemented message is received - includingSSH_MSG_UNIMPLEMENTEDitself- Specified by:
handleUnimplementedMessagein interfaceReservedSessionMessagesHandler- Parameters:
session- TheSessionthrough which the message was receivedcmd- The received (un-implemented) commandbuffer- TheBuffercontaining the data - positioned just beyond the command- Returns:
trueif message handled internally,falseif should return aSSH_MSG_UNIMPLEMENTEDreply (default behavior)- Throws:
Exception- If failed to handle the message- See Also:
-