@Immutable public class ClientDeleteRequest extends ProtectedResourceRequest
Example HTTP request:
DELETE /register/s6BhdRkqt3 HTTP/1.1 Accept: application/json Host: server.example.com Authorization: Bearer reg-23410913-abewfq.123483
Related specifications:
| Constructor | Description |
|---|---|
ClientDeleteRequest(URI uri,
BearerAccessToken accessToken) |
Creates a new client delete request.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ClientDeleteRequest |
parse(HTTPRequest httpRequest) |
Parses a client delete request from the specified HTTP DELETE
request.
|
HTTPRequest |
toHTTPRequest() |
Returns the matching HTTP request.
|
getEndpointURIclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccessTokenpublic ClientDeleteRequest(URI uri, BearerAccessToken accessToken)
uri - The URI of the client configuration endpoint. May
be null if the toHTTPRequest()
method will not be used.accessToken - An OAuth 2.0 Bearer access token for the request,
null if none.public HTTPRequest toHTTPRequest()
Requestpublic static ClientDeleteRequest parse(HTTPRequest httpRequest) throws ParseException
httpRequest - The HTTP request. Must not be null.ParseException - If the HTTP request couldn't be parsed to a
client delete request.Copyright © 2018 Connect2id Ltd.. All rights reserved.