Name

renewLease

Description

The renewLease command instructs the relay server to renew an existing lease. Messages queued under the existing lease must be maintained for the renewed lease.

Request

The query string variable that must be set by the client is:

leaseId

Must be set to the lease ID of the existing lease

Response

The following query string variable must be included by the relay server in the response:

leaseId

The ID for the new lease. This may be the same as the existing lease ID, or it may be different. 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 renewLease command:

command=renewLease&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.