aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/aai/AaiResponseWithRequestInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/aai/AaiResponseWithRequestInfo.java')
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/aai/AaiResponseWithRequestInfo.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/AaiResponseWithRequestInfo.java b/vid-app-common/src/main/java/org/onap/vid/aai/AaiResponseWithRequestInfo.java
new file mode 100644
index 000000000..cd1f9044b
--- /dev/null
+++ b/vid-app-common/src/main/java/org/onap/vid/aai/AaiResponseWithRequestInfo.java
@@ -0,0 +1,44 @@
+package org.onap.vid.aai;
+
+
+import org.springframework.http.HttpMethod;
+
+import java.io.Serializable;
+
+public class AaiResponseWithRequestInfo<T> implements Serializable {
+ private AaiResponse<T> aaiResponse;
+ private String requestedUrl;
+ private String rawData;
+ private HttpMethod httpMethod;
+
+ public AaiResponseWithRequestInfo(HttpMethod httpMethod, String requestedUrl, AaiResponse<T> aaiResponse, String rawData) {
+ this.aaiResponse = aaiResponse;
+ this.requestedUrl = requestedUrl;
+ this.rawData = rawData;
+ this.httpMethod = httpMethod;
+ }
+
+ public void setRequestedUrl(String requestedUrl) {
+ this.requestedUrl = requestedUrl;
+ }
+
+ public void setHttpMethod(HttpMethod httpMethod) {
+ this.httpMethod = httpMethod;
+ }
+
+ public AaiResponse<T> getAaiResponse() {
+ return aaiResponse;
+ }
+
+ public String getRequestedUrl() {
+ return requestedUrl;
+ }
+
+ public String getRawData() {
+ return rawData;
+ }
+
+ public HttpMethod getHttpMethod() {
+ return httpMethod;
+ }
+}