summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSindhuri.A <arcot.sindhuri@huawei.com>2019-04-17 19:17:58 +0530
committerSindhuri.A <arcot.sindhuri@huawei.com>2019-04-17 19:17:58 +0530
commit77bcf35cbb626ef78329862549329fd809125017 (patch)
treeaaf9fd28c7ea7a0d1b779df191afb36bbe3dc80d
parent9cf72ced6cba4ba7326ceaf34887c212a301b0df (diff)
changed attributes order OpenStackRequest.java
changed attributes order for OpenStackRequest class Issue-ID: SO-1490 Change-Id: Ic741b33b9e749fe193f2a7c8d4b02c6f67319ac3 Signed-off-by: Sindhuri.A <arcot.sindhuri@huawei.com>
-rw-r--r--openstack-client/src/main/java/com/woorea/openstack/base/client/OpenStackRequest.java25
1 files 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<R> {
private OpenStackClient client;
+
+ private String endpoint;
+
+ private HttpMethod method;
+
+ private StringBuilder path = new StringBuilder();
+
+ private Map<String, List<Object>> headers = new HashMap<>();
+
+ private Entity<?> entity;
+
+ private Class<R> returnType;
public OpenStackRequest() {
@@ -39,18 +51,7 @@ public class OpenStackRequest<R> {
this.returnType = returnType;
header("Accept", "application/json");
}
-
- private String endpoint;
-
- private HttpMethod method;
-
- private StringBuilder path = new StringBuilder();
-
- private Map<String, List<Object>> headers = new HashMap<>();
-
- private Entity<?> entity;
-
- private Class<R> returnType;
+
public OpenStackRequest<R> endpoint(String endpoint) {
this.endpoint = endpoint;