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
Handle I2CP RequestLeaseSetMessage from the router by granting all leases,
using the specified expiration time for each lease.
- Author:
- jrandom
-
Field Summary
Fields inherited from class net.i2p.client.impl.HandlerImpl
_context, _log
-
Constructor Summary
ModifierConstructorDescriptionprotected
RequestLeaseSetMessageHandler
(I2PAppContext context, int messageType) For extension -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 LeaseSetMethods inherited from class net.i2p.client.impl.HandlerImpl
getType
-
Field Details
-
_ls2Type
protected int _ls2Type -
PROP_LS_TYPE
- See Also:
-
-
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
-