Merge from ECOMP's repository
[vid.git] / vid-app-common / src / main / java / org / onap / vid / aai / AaiResponseWithRequestInfo.java
1 package org.onap.vid.aai;
2
3
4 import org.springframework.http.HttpMethod;
5
6
7 public class AaiResponseWithRequestInfo<T> {
8     private AaiResponse<T> aaiResponse;
9     private String requestedUrl;
10     private String rawData;
11     private HttpMethod httpMethod;
12
13     public AaiResponseWithRequestInfo(HttpMethod httpMethod, String requestedUrl, AaiResponse<T> aaiResponse, String rawData) {
14         this.aaiResponse = aaiResponse;
15         this.requestedUrl = requestedUrl;
16         this.rawData = rawData;
17         this.httpMethod = httpMethod;
18     }
19
20     public void setRequestedUrl(String requestedUrl) {
21         this.requestedUrl = requestedUrl;
22     }
23
24     public void setHttpMethod(HttpMethod httpMethod) {
25         this.httpMethod = httpMethod;
26     }
27
28     public AaiResponse<T> getAaiResponse() {
29         return aaiResponse;
30     }
31
32     public String getRequestedUrl() {
33         return requestedUrl;
34     }
35
36     public String getRawData() {
37         return rawData;
38     }
39
40     public HttpMethod getHttpMethod() {
41         return httpMethod;
42     }
43 }