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>

public class EmptyBodyRequest<T> extends BaseRequest<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 Details

  • Method Details

    • createRequestBody

      protected HttpRequestBody createRequestBody()
      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.
    • addParameter

      public EmptyBodyRequest<T> addParameter(String name, Object value)
      Description copied from interface: Request
      Adds an body parameter to the request
      Specified by:
      addParameter in interface Request<T>
      Overrides:
      addParameter in class BaseRequest<T>
      Parameters:
      name - the name of the parameter
      value - the value of the parameter
      Returns:
      this same request instance