Class RequestBody

java.lang.Object
de.xima.fc.api.rest.pub.client.security.RequestBody

@Generated("de.xima.openapi.codegen.java_jaxrs.XimaJavaJaxrsGenerator") public class RequestBody extends Object
Base class for the body of endpoints that allow multiple different request body types. Wraps the type of the request body and its content type.
  • Constructor Details

    • RequestBody

      protected RequestBody(Object value, String contentType)
  • Method Details

    • contentType

      public final String contentType()
      Returns:
      The content type of this request body.
    • value

      public final Object value()
      Returns:
      The data of this request body.
    • create

      public static RequestBody create(Object value, String contentType)
      Parameters:
      value - The data of this request body.
      contentType - The content type of this request body.
      Returns:
      A new request body with the given data.