public OpenStackResponse request() { return client.request(this); }
public OpenStackResponse request() { return client.request(this); }
public OpenStackResponse request() { return client.request(this); }
/** * @return The response to the request execution * @throws OpenStackConnectException * 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. * @throws 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) */ public OpenStackResponse request() throws OpenStackConnectException, OpenStackResponseException { return client.request(this); }
public OpenStackResponse request() { return client.request(this); }
@Override public Image execute() { // custom parsing here return parse(CLIENT.request(this).headers()); }
@Override public Image execute() { // custom parsing here return parse(CLIENT.request(this).headers()); }
public <T> T execute(OpenStackRequest<T> request) { OpenStackResponse response = request(request); return (request.returnType() != null && request.returnType() != Void.class) ? response.getEntity(request.returnType()) : null; }
public <T> T execute(OpenStackRequest<T> request) { OpenStackResponse response = request(request); return (request.returnType() != null && request.returnType() != Void.class) ? response.getEntity(request.returnType()) : null; }
public <T> T execute(OpenStackRequest<T> request) { OpenStackResponse response = request(request); return (request.returnType() != null && request.returnType() != Void.class) ? response.getEntity(request.returnType()) : null; }
public <T> T execute(OpenStackRequest<T> request) { OpenStackResponse response = request(request); return (request.returnType() != null && request.returnType() != Void.class) ? response.getEntity(request.returnType()) : null; }
/** * @param request * The request to be processed * @return The entity returned from the request * @throws OpenStackConnectException * 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. * @throws 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) */ public <T> T execute(OpenStackRequest<T> request) throws OpenStackConnectException, OpenStackResponseException { OpenStackResponse response = request(request); return (request.returnType() != null && request.returnType() != Void.class) ? response.getEntity(request .returnType()) : null; }
@Override public ImageDownload execute() { // custom parsing here OpenStackResponse response = CLIENT.request(this); ImageDownload imageDownload = new ImageDownload(); imageDownload.setImage(parse(response.headers())); imageDownload.setInputStream(response.getInputStream()); return imageDownload; }
@Override public ImageDownload execute() { // custom parsing here OpenStackResponse response = CLIENT.request(this); ImageDownload imageDownload = new ImageDownload(); imageDownload.setImage(parse(response.headers())); imageDownload.setInputStream(response.getInputStream()); return imageDownload; }