Package com.auth0.net
Class EmptyBodyRequest<T>
java.lang.Object
com.auth0.net.BaseRequest<T>
com.auth0.net.EmptyBodyRequest<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.
The content type of this request is "application/json".
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmptyBodyRequest(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.Methods inherited from class com.auth0.net.BaseRequest
addHeader, createRequest, createResponseException, execute, executeAsync, getContentType, getParameters, parseResponseBody, readResponseBody, setBody
-
Constructor Details
-
EmptyBodyRequest
public EmptyBodyRequest(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
-