public static class Client.Default extends Object implements Client
Client.Default, Client.Proxied| Constructor and Description |
|---|
Default(SSLSocketFactory sslContextFactory,
HostnameVerifier hostnameVerifier)
Create a new client, which disable request buffering by default.
|
Default(SSLSocketFactory sslContextFactory,
HostnameVerifier hostnameVerifier,
boolean disableRequestBuffering)
Create a new client.
|
| Modifier and Type | Method and Description |
|---|---|
Response |
execute(Request request,
Request.Options options)
Executes a request against its
url and returns a response. |
HttpURLConnection |
getConnection(URL url) |
public Default(SSLSocketFactory sslContextFactory, HostnameVerifier hostnameVerifier)
sslContextFactory - SSLSocketFactory for secure https URL connections.hostnameVerifier - the host name verifier.public Default(SSLSocketFactory sslContextFactory, HostnameVerifier hostnameVerifier, boolean disableRequestBuffering)
sslContextFactory - SSLSocketFactory for secure https URL connections.hostnameVerifier - the host name verifier.disableRequestBuffering - Disable the request body internal buffering for
HttpURLConnection.public Response execute(Request request, Request.Options options) throws IOException
Clienturl and returns a response.execute in interface Clientrequest - safe to replay.options - options to apply to this request.Response.Body is absent or unread.IOException - on a network error connecting to Request.url().public HttpURLConnection getConnection(URL url) throws IOException
IOExceptionCopyright © 2012–2021 OpenFeign. All rights reserved.