public class URLConnectionClient extends Object implements HttpClient
HttpClient3 or HttpClient4 perform better than this class, as a rule; since they do things like connection pooling. They also support reading the body of an HTTP response whose status code isn't 200 (OK), which can enable your application to handle problems better.
CONNECT_TIMEOUT, DELETE, FOLLOW_REDIRECTS, GET, POST, PUT, READ_TIMEOUT| Constructor and Description |
|---|
URLConnectionClient() |
| Modifier and Type | Method and Description |
|---|---|
HttpResponseMessage |
execute(HttpMessage request,
Map<String,Object> parameters)
Send a message to the service provider and get the response.
|
public HttpResponseMessage execute(HttpMessage request, Map<String,Object> parameters) throws IOException
execute in interface HttpClientparameters - HTTP client parameters, as a map from parameter name to value.
Parameter names are defined as constants below.IOExceptionCopyright © 2025. All rights reserved.