2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.sdc.ci.tests.datatypes.http;
23 import java.util.List;
26 public class RestResponse {
30 Map<String, List<String>> headerFields;
31 String responseMessage;
33 public RestResponse() {
37 public RestResponse(Integer errorCode, String response, Map<String, List<String>> headerFields,
38 String responseMessage) {
40 this.statusCode = errorCode;
41 this.response = response;
42 this.headerFields = headerFields;
43 this.responseMessage = responseMessage;
46 public Integer getStatusCode() {
50 public void setStatusCode(Integer errorCode) {
51 this.statusCode = errorCode;
54 public String getResponse() {
58 public void setResponse(String response) {
59 this.response = response;
62 public Map<String, List<String>> getHeaderFields() {
66 public void setHeaderFields(Map<String, List<String>> headerFields) {
67 this.headerFields = headerFields;
70 public String getResponseMessage() {
71 return responseMessage;
74 public void setResponseMessage(String responseMessage) {
75 this.responseMessage = responseMessage;
79 public String toString() {
80 return "RestResponse [errorCode=" + statusCode + ", response=" + response + ", headerFields=" + headerFields
81 + ", responseMessage=" + responseMessage + "]";