From 77bcf35cbb626ef78329862549329fd809125017 Mon Sep 17 00:00:00 2001 From: "Sindhuri.A" Date: Wed, 17 Apr 2019 19:17:58 +0530 Subject: changed attributes order OpenStackRequest.java changed attributes order for OpenStackRequest class Issue-ID: SO-1490 Change-Id: Ic741b33b9e749fe193f2a7c8d4b02c6f67319ac3 Signed-off-by: Sindhuri.A --- .../openstack/base/client/OpenStackRequest.java | 25 +++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackRequest.java b/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackRequest.java index 3a082a2..3374a10 100644 --- a/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackRequest.java +++ b/openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackRequest.java @@ -26,6 +26,18 @@ import java.util.Map; public class OpenStackRequest { private OpenStackClient client; + + private String endpoint; + + private HttpMethod method; + + private StringBuilder path = new StringBuilder(); + + private Map> headers = new HashMap<>(); + + private Entity entity; + + private Class returnType; public OpenStackRequest() { @@ -39,18 +51,7 @@ public class OpenStackRequest { this.returnType = returnType; header("Accept", "application/json"); } - - private String endpoint; - - private HttpMethod method; - - private StringBuilder path = new StringBuilder(); - - private Map> headers = new HashMap<>(); - - private Entity entity; - - private Class returnType; + public OpenStackRequest endpoint(String endpoint) { this.endpoint = endpoint; -- cgit 1.2.3-korg