execute
ReadResult execute(HttpClientWrapper.Request request,
HttpClientWrapper.ExecuteEventHandler eventHandler)
throws java.lang.Exception
Executes a request, mapping the response body and status code. Errors may be throws from this method,
based on the client implementation.
- Parameters:
request
- The POJO representing the request.
eventHandler
- A handler (may be null) to receive events when the request starts and returns control.
- Returns:
- The HTTP Response encapsulated in a POJO.
- Throws:
java.lang.Exception
- For anything that didn't result in a standard http response with a status code and body.