aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/aai/AaiResponseWithRequestInfo.java
blob: a1806f0c3a2e5023ca9abd9bb221c7baa021c671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package org.onap.vid.aai;


import org.springframework.http.HttpMethod;


public class AaiResponseWithRequestInfo<T> {
    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;
    }
}