cd1f9044bed5be485aa97ff35cbcd87c9a294d5b
[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 import java.io.Serializable;
7
8 public class AaiResponseWithRequestInfo<T> implements Serializable {
9     private AaiResponse<T> aaiResponse;
10     private String requestedUrl;
11     private String rawData;
12     private HttpMethod httpMethod;
13
14     public AaiResponseWithRequestInfo(HttpMethod httpMethod, String requestedUrl, AaiResponse<T> aaiResponse, String rawData) {
15         this.aaiResponse = aaiResponse;
16         this.requestedUrl = requestedUrl;
17         this.rawData = rawData;
18         this.httpMethod = httpMethod;
19     }
20
21     public void setRequestedUrl(String requestedUrl) {
22         this.requestedUrl = requestedUrl;
23     }
24
25     public void setHttpMethod(HttpMethod httpMethod) {
26         this.httpMethod = httpMethod;
27     }
28
29     public AaiResponse<T> getAaiResponse() {
30         return aaiResponse;
31     }
32
33     public String getRequestedUrl() {
34         return requestedUrl;
35     }
36
37     public String getRawData() {
38         return rawData;
39     }
40
41     public HttpMethod getHttpMethod() {
42         return httpMethod;
43     }
44 }