blob: 73ed78c6411ec03ceb3f6875fb8079b1090ce614 [file] [log] [blame]
Aharoni, Pavel (pa0916)ca3cb012018-10-22 15:29:57 +03001/*-
2 * ============LICENSE_START=======================================================
3 * OSAM
4 * ================================================================================
5 * Copyright (C) 2018 AT&T
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
19 */
20
21
22
23package org.onap.osam.aai;
24
25
26import org.springframework.http.HttpMethod;
27
28import java.io.Serializable;
29
30public class AaiResponseWithRequestInfo<T> implements Serializable {
31 private AaiResponse<T> aaiResponse;
32 private String requestedUrl;
33 private String rawData;
34 private HttpMethod httpMethod;
35
36 public AaiResponseWithRequestInfo(HttpMethod httpMethod, String requestedUrl, AaiResponse<T> aaiResponse, String rawData) {
37 this.aaiResponse = aaiResponse;
38 this.requestedUrl = requestedUrl;
39 this.rawData = rawData;
40 this.httpMethod = httpMethod;
41 }
42
43 public void setRequestedUrl(String requestedUrl) {
44 this.requestedUrl = requestedUrl;
45 }
46
47 public void setHttpMethod(HttpMethod httpMethod) {
48 this.httpMethod = httpMethod;
49 }
50
51 public AaiResponse<T> getAaiResponse() {
52 return aaiResponse;
53 }
54
55 public String getRequestedUrl() {
56 return requestedUrl;
57 }
58
59 public String getRawData() {
60 return rawData;
61 }
62
63 public HttpMethod getHttpMethod() {
64 return httpMethod;
65 }
66}