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() {
71 public CallbackHeader(String reqId, String respCode, String respMsg) {
72 this.requestId = reqId;
73 this.responseCode = respCode;
74 this.responseMessage = respMsg;
78 * Gets the value of the requestId property.
85 public String getRequestId() {
90 * Sets the value of the requestId property.
97 public void setRequestId(String value) {
98 this.requestId = value;
102 * Gets the value of the responseCode property.
109 public String getResponseCode() {
114 * Sets the value of the responseCode property.
121 public void setResponseCode(String value) {
122 this.responseCode = value;
126 * Gets the value of the responseMessage property.
133 public String getResponseMessage() {
134 return responseMessage;
138 * Sets the value of the responseMessage property.
145 public void setResponseMessage(String value) {
146 this.responseMessage = value;
150 public String toString() {
151 return "CallbackHeader [requestId=" + requestId + ", responseCode="
152 + responseCode + ", responseMessage=" + responseMessage + "]";