public class BasicRestCallHandler extends Object implements RestCallHandler
RestClient.RESTCLIENT_callHandler
.Constructor and Description |
---|
BasicRestCallHandler(RestClient client)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
run(HttpHost target,
HttpRequest request,
HttpContext context)
Execute the specified request.
|
public BasicRestCallHandler(RestClient client)
client
- The client to use for handling requests.public HttpResponse run(HttpHost target, HttpRequest request, HttpContext context) throws IOException
RestCallHandler
Subclasses can override this method to provide specialized handling.
run
in interface RestCallHandler
target
- The target host for the request.
request
- The request to execute. Must be an instance of HttpUriRequest
if the target is context
- The context to use for the execution, or IOException
- In case of a problem or the connection was aborted.ClientProtocolException
- In case of an http protocol error.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.