[SDC-29] rebase continue work to align source
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / datatypes / http / RestResponse.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
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 package org.openecomp.sdc.ci.tests.datatypes.http;
22
23 import java.util.List;
24 import java.util.Map;
25
26 public class RestResponse {
27
28         Integer errorCode;
29         String response;
30         Map<String, List<String>> headerFields;
31         String responseMessage;
32
33         public RestResponse() {
34                 super();
35         }
36
37         public RestResponse(Integer errorCode, String response, Map<String, List<String>> headerFields,
38                         String responseMessage) {
39                 super();
40                 this.errorCode = errorCode;
41                 this.response = response;
42                 this.headerFields = headerFields;
43                 this.responseMessage = responseMessage;
44         }
45
46         public Integer getErrorCode() {
47                 return errorCode;
48         }
49
50         public void setErrorCode(Integer errorCode) {
51                 this.errorCode = errorCode;
52         }
53
54         public String getResponse() {
55                 return response;
56         }
57
58         public void setResponse(String response) {
59                 this.response = response;
60         }
61
62         public Map<String, List<String>> getHeaderFields() {
63                 return headerFields;
64         }
65
66         public void setHeaderFields(Map<String, List<String>> headerFields) {
67                 this.headerFields = headerFields;
68         }
69
70         public String getResponseMessage() {
71                 return responseMessage;
72         }
73
74         public void setResponseMessage(String responseMessage) {
75                 this.responseMessage = responseMessage;
76         }
77
78         @Override
79         public String toString() {
80                 return "RestResponse [errorCode=" + errorCode + ", response=" + response + ", headerFields=" + headerFields
81                                 + ", responseMessage=" + responseMessage + "]";
82         }
83
84 }