public class JerseyConnector extends Object implements OpenStackClientConnector
| Modifier and Type | Class and Description |
|---|---|
static class |
JerseyConnector.OpenStackObjectMapper |
| Constructor and Description |
|---|
JerseyConnector()
Defer construction to first request
|
| Modifier and Type | Method and Description |
|---|---|
<T> OpenStackResponse |
request(OpenStackRequest<T> request)
Process a request.
|
public <T> OpenStackResponse request(OpenStackRequest<T> request) throws OpenStackResponseException, OpenStackConnectException
If this is the first request processed by this instance, create the web client object and configure it according to the properties set on the OpenStackClient making the request. This allows a user of the OpenStackClient to configure properties to control the use of proxies, trusted hosts, HTTPS processing options, etc
request in interface OpenStackClientConnectorOpenStackConnectException - If the connection to the provider cannot be established. This exception indicates that the provider
is not reachable, or that some failure occurred attempting to open the connection to the provider.OpenStackResponseException - If the provider responds with some form of error regarding the request, such as unauthorized. This is
an indication that there is a problem with the request itself, not the connection. @see
com.woorea.openstack
.base.client.OpenStackClientConnector#request(com.woorea.openstack.base.client.OpenStackRequest)OpenStackClientConnector.request(com.woorea.openstack.base.client.OpenStackRequest)Copyright © 2012–2019. All rights reserved.