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.onap.so.apihandler.camundabeans;
25 import org.onap.so.apihandler.common.CommonConstants;
26 import com.fasterxml.jackson.annotation.JsonProperty;
27 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28 import com.fasterxml.jackson.annotation.JsonRootName;
31 * JavaBean JSON class for a "variables" which contains the xml payload that will be passed to the Camunda process
34 @JsonPropertyOrder({CommonConstants.CAMUNDA_SERVICE_INPUT, CommonConstants.CAMUNDA_HOST,
35 CommonConstants.SCHEMA_VERSION_HEADER, CommonConstants.REQUEST_ID_HEADER,
36 CommonConstants.SERVICE_INSTANCE_ID_HEADER, CommonConstants.REQUEST_TIMEOUT_HEADER,
37 CommonConstants.CAMUNDA_SERVICE_INPUT})
38 @JsonRootName(CommonConstants.CAMUNDA_ROOT_INPUT)
39 public class CamundaRequest {
41 @JsonProperty(CommonConstants.CAMUNDA_SERVICE_INPUT)
42 private CamundaInput serviceInput;
44 @JsonProperty(CommonConstants.CAMUNDA_HOST)
45 private CamundaInput host;
47 @JsonProperty(CommonConstants.SCHEMA_VERSION_HEADER)
48 private CamundaInput schema;
50 @JsonProperty(CommonConstants.REQUEST_ID_HEADER)
51 private CamundaInput reqid;
53 @JsonProperty(CommonConstants.SERVICE_INSTANCE_ID_HEADER)
54 private CamundaInput svcid;
56 @JsonProperty(CommonConstants.REQUEST_TIMEOUT_HEADER)
57 private CamundaInput timeout;
59 public CamundaRequest() {}
61 @JsonProperty(CommonConstants.CAMUNDA_SERVICE_INPUT)
62 public CamundaInput getServiceInput() {
66 @JsonProperty(CommonConstants.CAMUNDA_SERVICE_INPUT)
67 public void setServiceInput(CamundaInput serviceInput) {
68 this.serviceInput = serviceInput;
71 @JsonProperty(CommonConstants.CAMUNDA_HOST)
72 public CamundaInput getHost() {
76 @JsonProperty(CommonConstants.CAMUNDA_HOST)
77 public void setHost(CamundaInput host) {
81 @JsonProperty(CommonConstants.SCHEMA_VERSION_HEADER)
82 public CamundaInput getSchema() {
86 @JsonProperty(CommonConstants.SCHEMA_VERSION_HEADER)
87 public void setSchema(CamundaInput schema) {
91 @JsonProperty(CommonConstants.REQUEST_ID_HEADER)
92 public CamundaInput getReqid() {
96 @JsonProperty(CommonConstants.REQUEST_ID_HEADER)
97 public void setReqid(CamundaInput reqid) {
101 @JsonProperty(CommonConstants.SERVICE_INSTANCE_ID_HEADER)
102 public CamundaInput getSvcid() {
106 @JsonProperty(CommonConstants.SERVICE_INSTANCE_ID_HEADER)
107 public void setSvcid(CamundaInput svcid) {
112 @JsonProperty(CommonConstants.REQUEST_TIMEOUT_HEADER)
113 public CamundaInput getTimeout() {
117 @JsonProperty(CommonConstants.REQUEST_TIMEOUT_HEADER)
118 public void setTimeout(CamundaInput timeout) {
119 this.timeout = timeout;
125 public String toString() {
126 return "CamundaRequest [serviceInput=" + serviceInput + ", host=" + host + ", schema=" + schema + ", reqid="
127 + reqid + ", svcid=" + svcid + ", timeout=" + timeout + "]";