Class RequestLeaseSetMessageHandler

java.lang.Object
net.i2p.client.impl.HandlerImpl
net.i2p.client.impl.RequestLeaseSetMessageHandler
All Implemented Interfaces:
I2CPMessageHandler
Direct Known Subclasses:
RequestVariableLeaseSetMessageHandler

class RequestLeaseSetMessageHandler extends HandlerImpl
Handle I2CP RequestLeaseSetMessage from the router by granting all leases, using the specified expiration time for each lease.
Author:
jrandom
  • Field Details

  • Constructor Details

    • RequestLeaseSetMessageHandler

      public RequestLeaseSetMessageHandler(I2PAppContext context)
    • RequestLeaseSetMessageHandler

      protected RequestLeaseSetMessageHandler(I2PAppContext context, int messageType)
      For extension
      Since:
      0.9.7
  • Method Details

    • requiresLS2

      protected boolean requiresLS2(I2PSessionImpl session)
      Do we send a LeaseSet or a LeaseSet2? Side effect: sets _ls2Type
      Since:
      0.9.38
    • handleMessage

      public void handleMessage(I2CPMessage message, I2PSessionImpl session)
    • signLeaseSet

      protected void signLeaseSet(LeaseSet leaseSet, boolean isLS2, I2PSessionImpl session)
      Finish creating and signing the new LeaseSet
      Since:
      0.9.7