Package com.luna.common.net.hander
Class AsyncValidatingResponseHandler<T>
java.lang.Object
com.luna.common.net.hander.AsyncValidatingResponseHandler<T>
- Type Parameters:
T
- return type ofHttpClientResponseHandler.handleResponse(ClassicHttpResponse)
(HttpResponse)}.
- All Implemented Interfaces:
AsyncHttpClientResponseHandler<T>
public abstract class AsyncValidatingResponseHandler<T>
extends Object
implements AsyncHttpClientResponseHandler<T>
Basic response handler which takes an url for documentation.
- Author:
- luna
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<R extends org.apache.hc.core5.http.HttpResponse>
voidhandleResponse
(R response) Processes anClassicHttpResponse
and returns some value corresponding to that response.protected void
validateResponse
(org.apache.hc.core5.http.HttpResponse response)
-
Constructor Details
-
AsyncValidatingResponseHandler
public AsyncValidatingResponseHandler()
-
-
Method Details
-
validateResponse
protected void validateResponse(org.apache.hc.core5.http.HttpResponse response) -
handleResponse
public <R extends org.apache.hc.core5.http.HttpResponse> void handleResponse(R response) Description copied from interface:AsyncHttpClientResponseHandler
Processes anClassicHttpResponse
and returns some value corresponding to that response.- Specified by:
handleResponse
in interfaceAsyncHttpClientResponseHandler<T>
- Parameters:
response
- The response to process
-