java.lang.Object
net.i2p.client.impl.HandlerImpl
All Implemented Interfaces:
I2CPMessageHandler
Direct Known Subclasses:
BWLimitsMessageHandler, DestReplyMessageHandler, DisconnectMessageHandler, HostReplyMessageHandler, MessagePayloadMessageHandler, MessageStatusMessageHandler, RequestLeaseSetMessageHandler, SessionStatusMessageHandler, SetDateMessageHandler

abstract class HandlerImplextends Object implements I2CPMessageHandler
Base class for handling I2CP messages.
  • Field Details

    • _log

      protected final Log _log
      The logger.
    • _type

      private final int _type
      The message type this handler is registered for.
    • _context

      protected final I2PAppContext _context
      The application context.
  • Constructor Details

    • HandlerImpl

      public HandlerImpl(I2PAppContext context, int type)
      Store the app context and handler message type.
      Parameters:
      context - the application context, whose log manager supplies the handler logger
      type - the I2CP message type this handler is registered for
  • Method Details

    • getType

      public int getType()
      Return the message type.
      Specified by:
      getType in interface I2CPMessageHandler
      Returns:
      the message type this handler was registered for