Name
obtainLease
Description
The
obtainLease
command instructs the relay server to
issue a new lease for a peer.
Request
The following query string variables must be set by the client:
-
command
Must be equal to
obtainLease
-
peerId
The peer ID of the client
Response
The following query string variable must be included by the relay server in the response:
-
leaseId
The ID for the new lease
If the request is malformed, the response must
be 400
. If the relay server rejects the
request, the response must be
400
.
Example
The following listing shows an
example HTTP POST request body for the obtainLease
command:
command=obtainLease&peerId=foobar
The following listing shows an example HTTP POST request body for the
obtainLease
command:
leaseId=1234
Get JXTA in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.