2 * Copyright © 2017-2018 AT&T Intellectual Property.
\r
3 * Modifications Copyright © 2018 IBM.
\r
5 * Licensed under the Apache License, Version 2.0 (the "License");
\r
6 * you may not use this file except in compliance with the License.
\r
7 * You may obtain a copy of the License at
\r
9 * http://www.apache.org/licenses/LICENSE-2.0
\r
11 * Unless required by applicable law or agreed to in writing, software
\r
12 * distributed under the License is distributed on an "AS IS" BASIS,
\r
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 * See the License for the specific language governing permissions and
\r
15 * limitations under the License.
\r
18 package org.onap.ccsdk.config.rest.adaptor.data;
\r
20 import java.util.Map;
\r
22 public class RestResponse {
\r
24 private String statusCode;
\r
25 private String body;
\r
26 private Map<String, String> parameters;
\r
27 private Map<String, String> responseHeaders;
\r
28 private Map<String, String> requestHeaders;
\r
30 public String getStatusCode() {
\r
34 public void setStatusCode(String statusCode) {
\r
35 this.statusCode = statusCode;
\r
38 public String getBody() {
\r
42 public void setBody(String body) {
\r
46 public Map<String, String> getParameters() {
\r
50 public void setParameters(Map<String, String> parameters) {
\r
51 this.parameters = parameters;
\r
54 public Map<String, String> getResponseHeaders() {
\r
55 return responseHeaders;
\r
58 public void setResponseHeaders(Map<String, String> responseHeaders) {
\r
59 this.responseHeaders = responseHeaders;
\r
62 public Map<String, String> getRequestHeaders() {
\r
63 return requestHeaders;
\r
66 public void setRequestHeaders(Map<String, String> requestHeaders) {
\r
67 this.requestHeaders = requestHeaders;
\r
71 public String toString() {
\r
72 return "RestResponse [statusCode=" + statusCode + ", body=" + body + ", parameters=" + parameters
\r
73 + ", responseHeaders=" + responseHeaders + ", requestHeaders=" + requestHeaders + "]";
\r