com.nimbusds.oauth2.sdk.client
Class ClientDeleteRequest

java.lang.Object
  extended by com.nimbusds.oauth2.sdk.AbstractRequest
      extended by com.nimbusds.oauth2.sdk.ProtectedResourceRequest
          extended by com.nimbusds.oauth2.sdk.client.ClientDeleteRequest
All Implemented Interfaces:
Message, Request

@Immutable
public class ClientDeleteRequest
extends ProtectedResourceRequest

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:

Author:
Vladimir Dzhuvinov

Constructor Summary
ClientDeleteRequest(URL uri, 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()
          Returns the matching HTTP request.
 
Methods inherited from class com.nimbusds.oauth2.sdk.ProtectedResourceRequest
getAccessToken
 
Methods inherited from class com.nimbusds.oauth2.sdk.AbstractRequest
getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientDeleteRequest

public ClientDeleteRequest(URL uri,
                           BearerAccessToken accessToken)
Creates a new client delete request.

Parameters:
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.
Method Detail

toHTTPRequest

public HTTPRequest toHTTPRequest()
                          throws SerializeException
Description copied from interface: Request
Returns the matching HTTP request.

Returns:
The HTTP request.
Throws:
SerializeException - If the request message couldn't be serialised to an HTTP request.

parse

public static ClientDeleteRequest parse(HTTPRequest httpRequest)
                                 throws ParseException
Parses a client delete request from the specified HTTP DELETE request.

Parameters:
httpRequest - The HTTP request. Must not be null.
Returns:
The client add (register) request.
Throws:
ParseException - If the HTTP request couldn't be parsed to a client delete request.


Copyright © 2013 NimbusDS. All Rights Reserved.