Class AsyncValidatingResponseHandler<T>

java.lang.Object
com.luna.common.net.hander.AsyncValidatingResponseHandler<T>
Type Parameters:
T - return type of HttpClientResponseHandler.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 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 an ClassicHttpResponse and returns some value corresponding to that response.
      Specified by:
      handleResponse in interface AsyncHttpClientResponseHandler<T>
      Parameters:
      response - The response to process