Add unit test for vfc-nfvo-wfengine
[vfc/nfvo/wfengine.git] / activiti-extension / src / main / java / org / onap / workflow / activitiext / restservicetask / HttpResponseMessage.java
1 /**
2  * Copyright 2017 [ZTE] and others.
3  *
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
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
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
12  * the License.
13  */
14 package org.onap.workflow.activitiext.restservicetask;
15
16 import java.io.Serializable;
17
18 import com.alibaba.fastjson.JSON;
19
20 /**
21  */
22 public class HttpResponseMessage implements Serializable {
23         
24         private int statusCode;
25         private JSON responseBody;
26         
27         
28         /**
29          * @return the statusCode
30          */
31         public int getStatusCode() {
32                 return this.statusCode;
33         }
34         
35         /**
36          * @param statusCode the statusCode to set
37          */
38         protected void setStatusCode(int statusCode) {
39                 this.statusCode = statusCode;
40         }
41         
42         /**
43          * @return the responseBody
44          */
45         public JSON getResponseBody() {
46                 return this.responseBody;
47         }
48         
49         /**
50          * @param responseBody the responseBody to set
51          */
52         protected void setResponseBody(JSON responseBody) {
53                 this.responseBody = responseBody;
54         }
55
56         @Override
57         public String toString() {
58                 return "{statusCode=" + statusCode + ", responseBody=" + responseBody.toJSONString() + "}";
59         }
60         
61 }