Class ReservedSessionMessagesHandlerAdapter
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.session.helpers.ReservedSessionMessagesHandlerAdapter
-
- All Implemented Interfaces:
java.util.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
Fields Modifier and Type Field Description static ReservedSessionMessagesHandlerAdapter
DEFAULT
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description ReservedSessionMessagesHandlerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleDebugMessage(Session session, boolean display, java.lang.String msg, java.lang.String lang, Buffer buffer)
void
handleDebugMessage(Session session, Buffer buffer)
Invoked when anSSH_MSG_DEBUG
packet is receivedvoid
handleIgnoreMessage(Session session, byte[] data, Buffer buffer)
void
handleIgnoreMessage(Session session, Buffer buffer)
Invoked when anSSH_MSG_IGNORE
packet is receivedboolean
handleUnimplementedMessage(Session session, int cmd, Buffer buffer)
Invoked when a packet with an un-implemented message is received - includingSSH_MSG_UNIMPLEMENTED
itself-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.session.ReservedSessionMessagesHandler
sendReservedHeartbeat
-
-
-
-
Field Detail
-
DEFAULT
public static final ReservedSessionMessagesHandlerAdapter DEFAULT
-
-
Method Detail
-
handleIgnoreMessage
public void handleIgnoreMessage(Session session, Buffer buffer) throws java.lang.Exception
Description copied from interface:ReservedSessionMessagesHandler
Invoked when anSSH_MSG_IGNORE
packet is received- Specified by:
handleIgnoreMessage
in interfaceReservedSessionMessagesHandler
- Parameters:
session
- TheSession
through which the message was receivedbuffer
- TheBuffer
containing the data- Throws:
java.lang.Exception
- If failed to handle the message- See Also:
- RFC 4253 - section 11.2
-
handleIgnoreMessage
public void handleIgnoreMessage(Session session, byte[] data, Buffer buffer) throws java.lang.Exception
- Throws:
java.lang.Exception
-
handleDebugMessage
public void handleDebugMessage(Session session, Buffer buffer) throws java.lang.Exception
Description copied from interface:ReservedSessionMessagesHandler
Invoked when anSSH_MSG_DEBUG
packet is received- Specified by:
handleDebugMessage
in interfaceReservedSessionMessagesHandler
- Parameters:
session
- TheSession
through which the message was receivedbuffer
- TheBuffer
containing the data- Throws:
java.lang.Exception
- If failed to handle the message- See Also:
- RFC 4253 - section 11.3
-
handleDebugMessage
public void handleDebugMessage(Session session, boolean display, java.lang.String msg, java.lang.String lang, Buffer buffer) throws java.lang.Exception
- Throws:
java.lang.Exception
-
handleUnimplementedMessage
public boolean handleUnimplementedMessage(Session session, int cmd, Buffer buffer) throws java.lang.Exception
Description copied from interface:ReservedSessionMessagesHandler
Invoked when a packet with an un-implemented message is received - includingSSH_MSG_UNIMPLEMENTED
itself- Specified by:
handleUnimplementedMessage
in interfaceReservedSessionMessagesHandler
- Parameters:
session
- TheSession
through which the message was receivedcmd
- The received (un-implemented) commandbuffer
- TheBuffer
containing the data - positioned just beyond the command- Returns:
true
if message handled internally,false
if should return aSSH_MSG_UNIMPLEMENTED
reply (default behavior)- Throws:
java.lang.Exception
- If failed to handle the message- See Also:
- RFC 4253 - section 11.4
-
-