|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nimbusds.oauth2.sdk.ProtectedResourceRequest
com.nimbusds.oauth2.sdk.client.ClientDeleteRequest
@Immutable public class ClientDeleteRequest
Client delete request. This class is immutable.
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 Summary | |
---|---|
ClientDeleteRequest(BearerAccessToken accessToken)
Creates a new client delete request. |
Method Summary | |
---|---|
static ClientDeleteRequest |
parse(HTTPRequest httpRequest)
Parses a client delete request from the specified HTTP DELETE request. |
HTTPRequest |
toHTTPRequest(URL url)
Returns the matching HTTP request. |
Methods inherited from class com.nimbusds.oauth2.sdk.ProtectedResourceRequest |
---|
getAccessToken |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientDeleteRequest(BearerAccessToken accessToken)
accessToken
- An OAuth 2.0 Bearer access token for the request,
null
if none.Method Detail |
---|
public HTTPRequest toHTTPRequest(URL url)
Request
url
- The URL of the HTTP endpoint for which the request is
intended. Must not be null
.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |