@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 and Description |
---|
ClientDeleteRequest(URI uri,
BearerAccessToken accessToken)
Creates a new client delete request.
|
Modifier and Type | Method and Description |
---|---|
static ClientDeleteRequest |
parse(HTTPRequest httpRequest)
Parses a client delete request from the specified HTTP DELETE
request.
|
HTTPRequest |
toHTTPRequest()
Returns the matching HTTP request.
|
getAccessToken
getEndpointURI
public 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()
Request
public 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 © 2016 Connect2id Ltd.. All Rights Reserved.