Class RemoteDatasourceDownloader.HttpGetResponse
java.lang.Object
de.xima.fc.datasource.RemoteDatasourceDownloader.HttpGetResponse
- Enclosing class:
RemoteDatasourceDownloader
POJO for the response of an HTTP GET request.
- Since:
- 8.4.0
-
Constructor Summary
ConstructorsConstructorDescriptionHttpGetResponse(int statusCode, byte[] content) Constructs a new HttpGetResponse with the given status code and content. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]content()Gets the content of the response.intGets the HTTP status code of the response.
-
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.
-