Package com.auth0.net
Class FormBodyRequest<T>
java.lang.Object
com.auth0.net.BaseRequest<T>
com.auth0.net.FormBodyRequest<T>
- Type Parameters:
T- The type expected to be received as part of the response.
- All Implemented Interfaces:
Request<T>
Represents a form request.
-
Constructor Summary
ConstructorsConstructorDescriptionFormBodyRequest(Auth0HttpClient client, TokenProvider tokenProvider, String url, HttpMethod method, com.fasterxml.jackson.core.type.TypeReference<T> tType) -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpRequestBodyResponsible for creating the payload that will be set as body on this request.protected StringGetter for the content-type header value to use on this requestMethods inherited from class com.auth0.net.BaseRequest
addHeader, addParameter, createRequest, createResponseException, execute, executeAsync, getParameters, parseResponseBody, readResponseBody, setBody
-
Constructor Details
-
FormBodyRequest
public FormBodyRequest(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.
- Throws:
IOException- if an error is raised during the creation of the body.
-
getContentType
Description copied from class:BaseRequestGetter for the content-type header value to use on this request- Overrides:
getContentTypein classBaseRequest<T>- Returns:
- the content-type
-