diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-02-18 13:05:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-02-18 13:05:06 +0000 |
commit | 36baada47134d2e6915baad5627d14d26e4c35ef (patch) | |
tree | f9175c70a9be28ddfc589dcfabc66ab00b9554b4 /vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapper2.java | |
parent | 2cfbe3407713a48fb81783ae2a560c5fe6face5e (diff) | |
parent | e3f8c6d9b3ff4b9c9b82c795a791ea9b5a014c98 (diff) |
Merge "Introduced mocked SO workflows in VID FE"
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapper2.java')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapper2.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapper2.java b/vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapper2.java index fff14ebc3..3bda76406 100644 --- a/vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapper2.java +++ b/vid-app-common/src/main/java/org/onap/vid/mso/MsoResponseWrapper2.java @@ -28,8 +28,8 @@ import com.fasterxml.jackson.databind.ObjectMapper; import io.joshworks.restclient.http.HttpResponse; @JsonPropertyOrder({ - "status", - "entity" + "status", + "entity" }) /* @@ -41,8 +41,8 @@ public class MsoResponseWrapper2<T> implements MsoResponseWrapperInterface { static final ObjectMapper objectMapper = new ObjectMapper(); - private final int status; - private final T entity; + private final int status; + private T entity; private final String raw; public MsoResponseWrapper2(RestObject<T> msoResponse) { @@ -51,23 +51,23 @@ public class MsoResponseWrapper2<T> implements MsoResponseWrapperInterface { this.raw = msoResponse.getRaw(); } - public MsoResponseWrapper2(HttpResponse<T> msoResponse) { - this.status = msoResponse.getStatus(); - this.entity = msoResponse.getBody(); - this.raw = msoResponse.getBody().toString(); - } + public MsoResponseWrapper2(HttpResponse<T> msoResponse) { + this.status = msoResponse.getStatus(); + this.entity = msoResponse.getBody(); + this.raw = msoResponse.getBody().toString(); + } public MsoResponseWrapper2( - @JsonProperty(value = "status", required = true) int status, - @JsonProperty(value = "entity", required = true) T entity) { + @JsonProperty(value = "status", required = true) int status, + @JsonProperty(value = "entity", required = true) T entity) { this.status = status; this.entity = entity; this.raw = null; } public int getStatus() { - return status; - } + return status; + } @Override @JsonIgnore @@ -80,8 +80,8 @@ public class MsoResponseWrapper2<T> implements MsoResponseWrapperInterface { } @JsonProperty - public Object getEntity() { - return entity != null ? entity : raw; - } + public Object getEntity() { + return entity != null ? entity : raw; + } } |