Package com.auth0.net
Class EmptyBodyVoidRequest<T>
java.lang.Object
com.auth0.net.BaseRequest<T>
com.auth0.net.EmptyBodyVoidRequest<T>
- Type Parameters:
T- The type expected to be received as part of the response.
- All Implemented Interfaces:
Request<T>
Request class that does not accept parameters to be sent as part of its body and request doesn't return any value on its success.
The content type of this request is "application/json".
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmptyBodyVoidRequest(Auth0HttpClient client, TokenProvider tokenProvider, String url, HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> tType) -
Method Summary
Modifier and TypeMethodDescriptionaddParameter(String name, Object value) Adds an body parameter to the requestprotected HttpRequestBodyResponsible for creating the payload that will be set as body on this request.protected TparseResponseBody(Auth0HttpResponse response) Methods inherited from class com.auth0.net.BaseRequest
addHeader, createRequest, createResponseException, execute, executeAsync, getContentType, getParameters, readResponseBody, setBody
-
Constructor Details
-
EmptyBodyVoidRequest
public EmptyBodyVoidRequest(Auth0HttpClient client, TokenProvider tokenProvider, String url, HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> tType)
-
-
Method Details
-
createRequestBody
Description copied from class:BaseRequestResponsible for creating the payload that will be set as body on this request.- Overrides:
createRequestBodyin classBaseRequest<T>- Returns:
- the body to send as part of the request.
-
addParameter
Description copied from interface:RequestAdds an body parameter to the request- Specified by:
addParameterin interfaceRequest<T>- Overrides:
addParameterin classBaseRequest<T>- Parameters:
name- the name of the parametervalue- the value of the parameter- Returns:
- this same request instance
-
parseResponseBody
- Overrides:
parseResponseBodyin classBaseRequest<T>- Throws:
Auth0Exception
-