Package com.helger.httpclient.response
Class ResponseHandlerByteArray
java.lang.Object
com.helger.httpclient.response.ResponseHandlerByteArray
- All Implemented Interfaces:
org.apache.hc.core5.http.io.HttpClientResponseHandler<byte[]>
public class ResponseHandlerByteArray
extends Object
implements org.apache.hc.core5.http.io.HttpClientResponseHandler<byte[]>
Convert a valid HTTP response to a byte array.
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]handleResponse(org.apache.hc.core5.http.ClassicHttpResponse aHttpResponse)
-
Constructor Details
-
ResponseHandlerByteArray
public ResponseHandlerByteArray()
-
-
Method Details
-
handleResponse
@Nullable public byte[] handleResponse(@Nonnull org.apache.hc.core5.http.ClassicHttpResponse aHttpResponse) throws IOException - Specified by:
handleResponsein interfaceorg.apache.hc.core5.http.io.HttpClientResponseHandler<byte[]>- Throws:
IOException
-