Package net.i2p.client.impl
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 Summary
Fields Modifier and Type Field Description protected int
_ls2Type
static String
PROP_LS_TYPE
-
Constructor Summary
Constructors Modifier Constructor Description RequestLeaseSetMessageHandler(I2PAppContext context)
protected
RequestLeaseSetMessageHandler(I2PAppContext context, int messageType)
For extension -
Method Summary
Modifier and Type Method Description void
handleMessage(I2CPMessage message, I2PSessionImpl session)
protected boolean
requiresLS2(I2PSessionImpl session)
Do we send a LeaseSet or a LeaseSet2? Side effect: sets _ls2Typeprotected void
signLeaseSet(LeaseSet leaseSet, boolean isLS2, I2PSessionImpl session)
Finish creating and signing the new LeaseSet
-
Field Details
-
_ls2Type
protected int _ls2Type -
PROP_LS_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
RequestLeaseSetMessageHandler
-
RequestLeaseSetMessageHandler
For extension- Since:
- 0.9.7
-
-
Method Details
-
requiresLS2
Do we send a LeaseSet or a LeaseSet2? Side effect: sets _ls2Type- Since:
- 0.9.38
-
handleMessage
-
signLeaseSet
Finish creating and signing the new LeaseSet- Since:
- 0.9.7
-