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>

public class FormBodyRequest<T> extends BaseRequest<T>
Represents a form request.
  • Constructor Details

  • Method Details

    • createRequestBody

      protected HttpRequestBody createRequestBody() throws IOException
      Description copied from class: BaseRequest
      Responsible for creating the payload that will be set as body on this request.
      Overrides:
      createRequestBody in class BaseRequest<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

      protected String getContentType()
      Description copied from class: BaseRequest
      Getter for the content-type header value to use on this request
      Overrides:
      getContentType in class BaseRequest<T>
      Returns:
      the content-type