2 * Copyright 2017 [ZTE] and others.
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5 * in compliance with the License. You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software distributed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11 * or implied. See the License for the specific language governing permissions and limitations under
14 package org.onap.workflow.activitiext.restservicetask;
16 import java.io.Serializable;
18 import com.alibaba.fastjson.JSON;
22 public class HttpResponseMessage implements Serializable {
24 private int statusCode;
25 private JSON responseBody;
29 * @return the statusCode
31 public int getStatusCode() {
32 return this.statusCode;
36 * @param statusCode the statusCode to set
38 protected void setStatusCode(int statusCode) {
39 this.statusCode = statusCode;
43 * @return the responseBody
45 public JSON getResponseBody() {
46 return this.responseBody;
50 * @param responseBody the responseBody to set
52 protected void setResponseBody(JSON responseBody) {
53 this.responseBody = responseBody;
57 public String toString() {
58 return "{statusCode=" + statusCode + ", responseBody=" + responseBody.toJSONString() + "}";