summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/aai/ResponseWithRequestInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/aai/ResponseWithRequestInfo.java')
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/aai/ResponseWithRequestInfo.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/ResponseWithRequestInfo.java b/vid-app-common/src/main/java/org/onap/vid/aai/ResponseWithRequestInfo.java
new file mode 100644
index 00000000..eb57b34f
--- /dev/null
+++ b/vid-app-common/src/main/java/org/onap/vid/aai/ResponseWithRequestInfo.java
@@ -0,0 +1,29 @@
+package org.onap.vid.aai;
+
+import org.springframework.http.HttpMethod;
+
+import javax.ws.rs.core.Response;
+
+public class ResponseWithRequestInfo {
+ private String requestUrl;
+ private HttpMethod requestHttpMethod;
+ private Response response;
+
+ public ResponseWithRequestInfo(Response response, String requestUrl, HttpMethod requestHttpMethod) {
+ this.response = response;
+ this.requestUrl = requestUrl;
+ this.requestHttpMethod = requestHttpMethod;
+ }
+
+ public String getRequestUrl() {
+ return requestUrl;
+ }
+
+ public HttpMethod getRequestHttpMethod() {
+ return requestHttpMethod;
+ }
+
+ public Response getResponse() {
+ return response;
+ }
+}