RestCallHandler
class.@Deprecated public interface RestCallHandler
Providing this implementation is the equivalent to overriding the RestClient.execute(HttpEntityEnclosingRequestBase)
and RestClient.execute(HttpRequestBase)
methods.
This can also be accomplished by providing your own RestClientBuilder.connectionManager(org.apache.http.conn.HttpClientConnectionManager)
,
but this provides a simpler way of handling the requests yourself.
Modifier and Type | Method and Description |
---|---|
HttpResponse |
execute(HttpEntityEnclosingRequestBase req)
Deprecated.
Execute the specified body request (e.g.
|
HttpResponse |
execute(HttpRequestBase req)
Deprecated.
Execute the specified no-body request (e.g.
|
HttpResponse execute(HttpEntityEnclosingRequestBase req) throws ClientProtocolException, IOException
Subclasses can override this method to provide specialized handling.
req
- The HTTP request.IOException
- Stream exception occurred.ClientProtocolException
- Signals an error in the HTTP protocol.HttpResponse execute(HttpRequestBase req) throws ClientProtocolException, IOException
Subclasses can override this method to provide specialized handling.
req
- The HTTP request.IOException
- Stream exception occurred.ClientProtocolException
- Signals an error in the HTTP protocol.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.