Class RawDataRequest

java.lang.Object
com.oorian.apis.ApiHttpRequest
com.oorian.apis.RawDataRequest
Direct Known Subclasses:
RawDataPostRequest, RawDataPutRequest

public abstract class RawDataRequest extends ApiHttpRequest
Abstract base class for HTTP requests that send raw string data in the request body.

Subclasses specify the HTTP method (POST or PUT). The request body is set as a raw string via setData(String).

  • Constructor Details

    • RawDataRequest

      public RawDataRequest(int method)
      Creates a new raw data request with the specified HTTP method.
      Parameters:
      method - the HTTP method constant.
    • RawDataRequest

      public RawDataRequest(int method, String url)
      Creates a new raw data request with the specified HTTP method and URL.
      Parameters:
      method - the HTTP method constant.
      url - the target URL.
    • RawDataRequest

      public RawDataRequest(int method, String url, String contentType)
      Creates a new raw data request with the specified HTTP method, URL, and content type.
      Parameters:
      method - the HTTP method constant.
      url - the target URL.
      contentType - the Content-Type header value.
  • Method Details