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.openecomp.mso.apihandler.camundabeans;
25 import org.openecomp.mso.apihandler.common.CommonConstants;
27 import com.fasterxml.jackson.annotation.JsonProperty;
28 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29 import com.fasterxml.jackson.annotation.JsonRootName;
32 * JavaBean JSON class for a "variables" which contains the xml payload that
33 * will be passed to the Camunda process
36 @JsonPropertyOrder({ CommonConstants.CAMUNDA_SERVICE_INPUT, CommonConstants.CAMUNDA_HOST,
37 CommonConstants.SCHEMA_VERSION_HEADER, CommonConstants.REQUEST_ID_HEADER, CommonConstants.SERVICE_INSTANCE_ID_HEADER,
38 CommonConstants. REQUEST_TIMEOUT_HEADER, CommonConstants.CAMUNDA_SERVICE_INPUT})
39 @JsonRootName(CommonConstants.CAMUNDA_ROOT_INPUT)
40 public class CamundaRequest {
42 @JsonProperty(CommonConstants.CAMUNDA_SERVICE_INPUT)
43 private CamundaInput serviceInput;
45 @JsonProperty(CommonConstants.CAMUNDA_HOST)
46 private CamundaInput host;
48 @JsonProperty(CommonConstants.SCHEMA_VERSION_HEADER)
49 private CamundaInput schema;
51 @JsonProperty(CommonConstants.REQUEST_ID_HEADER)
52 private CamundaInput reqid;
54 @JsonProperty(CommonConstants.SERVICE_INSTANCE_ID_HEADER)
55 private CamundaInput svcid;
57 @JsonProperty(CommonConstants.REQUEST_TIMEOUT_HEADER)
58 private CamundaInput timeout;
60 public CamundaRequest() {
63 @JsonProperty(CommonConstants.CAMUNDA_SERVICE_INPUT)
64 public CamundaInput getServiceInput() {
68 @JsonProperty(CommonConstants.CAMUNDA_SERVICE_INPUT)
69 public void setServiceInput(CamundaInput serviceInput) {
70 this.serviceInput = serviceInput;
73 @JsonProperty(CommonConstants.CAMUNDA_HOST)
74 public CamundaInput getHost() {
78 @JsonProperty(CommonConstants.CAMUNDA_HOST)
79 public void setHost(CamundaInput host) {
83 @JsonProperty(CommonConstants.SCHEMA_VERSION_HEADER)
84 public CamundaInput getSchema() {
88 @JsonProperty(CommonConstants.SCHEMA_VERSION_HEADER)
89 public void setSchema(CamundaInput schema) {
93 @JsonProperty(CommonConstants.REQUEST_ID_HEADER)
94 public CamundaInput getReqid() {
98 @JsonProperty(CommonConstants.REQUEST_ID_HEADER)
99 public void setReqid(CamundaInput reqid) {
103 @JsonProperty(CommonConstants.SERVICE_INSTANCE_ID_HEADER)
104 public CamundaInput getSvcid() {
108 @JsonProperty(CommonConstants.SERVICE_INSTANCE_ID_HEADER)
109 public void setSvcid(CamundaInput svcid) {
114 @JsonProperty(CommonConstants.REQUEST_TIMEOUT_HEADER)
115 public CamundaInput getTimeout() {
119 @JsonProperty(CommonConstants.REQUEST_TIMEOUT_HEADER)
120 public void setTimeout(CamundaInput timeout) {
121 this.timeout = timeout;
127 public String toString() {
128 return "CamundaRequest [serviceInput=" + serviceInput + ", host="
129 + host + ", schema=" + schema + ", reqid=" + reqid + ", svcid="
130 + svcid + ", timeout=" + timeout + "]";