2 * Copyright © 2017-2018 AT&T Intellectual Property.
\r
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
\r
5 * in compliance with the License. You may obtain a copy of the License at
\r
7 * http://www.apache.org/licenses/LICENSE-2.0
\r
9 * Unless required by applicable law or agreed to in writing, software distributed under the License
\r
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
\r
11 * or implied. See the License for the specific language governing permissions and limitations under
\r
15 package org.onap.ccsdk.config.rest.adaptor.data;
\r
17 import java.util.Map;
\r
19 public class RestResponse {
\r
21 private String statusCode;
\r
22 private String body;
\r
23 private Map<String, String> parameters;
\r
24 private Map<String, String> responseHeaders;
\r
25 private Map<String, String> requestHeaders;
\r
27 public String getStatusCode() {
\r
31 public void setStatusCode(String statusCode) {
\r
32 this.statusCode = statusCode;
\r
35 public String getBody() {
\r
39 public void setBody(String body) {
\r
43 public Map<String, String> getParameters() {
\r
47 public void setParameters(Map<String, String> parameters) {
\r
48 this.parameters = parameters;
\r
51 public Map<String, String> getResponseHeaders() {
\r
52 return responseHeaders;
\r
55 public void setResponseHeaders(Map<String, String> responseHeaders) {
\r
56 this.responseHeaders = responseHeaders;
\r
59 public Map<String, String> getRequestHeaders() {
\r
60 return requestHeaders;
\r
63 public void setRequestHeaders(Map<String, String> requestHeaders) {
\r
64 this.requestHeaders = requestHeaders;
\r
68 public String toString() {
\r
69 return "RestResponse [statusCode=" + statusCode + ", body=" + body + ", parameters=" + parameters
\r
70 + ", responseHeaders=" + responseHeaders + ", requestHeaders=" + requestHeaders + "]";
\r