Class RemoteDatasourceDownloader.HttpGetResponse

java.lang.Object
de.xima.fc.datasource.RemoteDatasourceDownloader.HttpGetResponse
Enclosing class:
RemoteDatasourceDownloader

public static final class RemoteDatasourceDownloader.HttpGetResponse extends Object
POJO for the response of an HTTP GET request.
Since:
8.4.0
  • Constructor Details

    • HttpGetResponse

      public HttpGetResponse(int statusCode, byte[] content)
      Constructs a new HttpGetResponse with the given status code and content.
      Parameters:
      statusCode - The HTTP status code of the response.
      content - The content of the response as a byte array.
  • Method Details

    • content

      public byte[] content()
      Gets the content of the response.
      Returns:
      The content of the response as a byte array.
    • statusCode

      public int statusCode()
      Gets the HTTP status code of the response.
      Returns:
      The HTTP status code of the response.