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.adapters.sdnc.client;
24 import javax.xml.bind.annotation.XmlAccessType;
25 import javax.xml.bind.annotation.XmlAccessorType;
26 import javax.xml.bind.annotation.XmlElement;
27 import javax.xml.bind.annotation.XmlRootElement;
28 import javax.xml.bind.annotation.XmlType;
31 * <p>Java class for anonymous complex type.
33 * <p>The following schema fragment specifies the expected content contained within this class.
38 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
40 * <element name="RequestId" type="{http://www.w3.org/2001/XMLSchema}string"/>
41 * <element name="ResponseCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
42 * <element name="ResponseMessage" type="{http://www.w3.org/2001/XMLSchema}string"/>
45 * </complexContent>
51 //SDNCAdapter to BPEL Async response header
52 @XmlAccessorType(XmlAccessType.FIELD)
53 @XmlType(name = "", propOrder = {
58 @XmlRootElement(name = "CallbackHeader")
59 public class CallbackHeader {
61 @XmlElement(name = "RequestId", required = true)
62 protected String requestId;
63 @XmlElement(name = "ResponseCode", required = true)
64 protected String responseCode;
65 @XmlElement(name = "ResponseMessage", required = true)
66 protected String responseMessage;
68 public CallbackHeader() {
69 /* Empty constructor */
72 public CallbackHeader(String reqId, String respCode, String respMsg) {
73 this.requestId = reqId;
74 this.responseCode = respCode;
75 this.responseMessage = respMsg;
79 * Gets the value of the requestId property.
86 public String getRequestId() {
91 * Sets the value of the requestId property.
98 public void setRequestId(String value) {
99 this.requestId = value;
103 * Gets the value of the responseCode property.
110 public String getResponseCode() {
115 * Sets the value of the responseCode property.
122 public void setResponseCode(String value) {
123 this.responseCode = value;
127 * Gets the value of the responseMessage property.
134 public String getResponseMessage() {
135 return responseMessage;
139 * Sets the value of the responseMessage property.
146 public void setResponseMessage(String value) {
147 this.responseMessage = value;
151 public String toString() {
152 return "CallbackHeader [requestId=" + requestId + ", responseCode="
153 + responseCode + ", responseMessage=" + responseMessage + "]";