ResponseHandler (Apache HttpClient 4.5.13 API)
Date: 2020-10-03

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.http.client
Interface ResponseHandler<T>

All Known Implementing Classes:
  AbstractResponseHandler, BasicResponseHandler

    public interface ResponseHandler<T>

Handler that encapsulates the process of generating a response object from a `HttpResponse`.

Since:
  4.0

Method Summary
`T` | `handleResponse(org.apache.http.HttpResponse response)` Processes an `HttpResponse` and returns some value corresponding to that response.

Method Detail

### handleResponse

    T handleResponse(org.apache.http.HttpResponse response)
                     throws ClientProtocolException,
                            IOException

  Processes an `HttpResponse` and returns some value corresponding to that response.

  Parameters:
    `response` - The response to process
  Returns:
    A value determined by the response
  Throws:
    `ClientProtocolException` - in case of an http protocol error
    `IOException` - in case of a problem or the connection was aborted

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 1999–2020 The Apache Software Foundation. All rights reserved.