Change the header to SO
[so.git] / adapters / mso-sdnc-adapter / src / main / java / org / openecomp / mso / adapters / sdnc / client / CallbackHeader.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.openecomp.mso.adapters.sdnc.client;
22
23
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;
29
30 /**
31  * <p>Java class for anonymous complex type.
32  *
33  * <p>The following schema fragment specifies the expected content contained within this class.
34  *
35  * <pre>
36  * &lt;complexType>
37  *   &lt;complexContent>
38  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
39  *       &lt;sequence>
40  *         &lt;element name="RequestId" type="{http://www.w3.org/2001/XMLSchema}string"/>
41  *         &lt;element name="ResponseCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
42  *         &lt;element name="ResponseMessage" type="{http://www.w3.org/2001/XMLSchema}string"/>
43  *       &lt;/sequence>
44  *     &lt;/restriction>
45  *   &lt;/complexContent>
46  * &lt;/complexType>
47  * </pre>
48  *
49  *
50  */
51 //SDNCAdapter to BPEL Async response header
52 @XmlAccessorType(XmlAccessType.FIELD)
53 @XmlType(name = "", propOrder = {
54     "requestId",
55     "responseCode",
56     "responseMessage"
57 })
58 @XmlRootElement(name = "CallbackHeader")
59 public class CallbackHeader {
60
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;
67
68     public CallbackHeader() {
69     }
70
71     public CallbackHeader(String reqId, String respCode, String respMsg) {
72         this.requestId = reqId;
73         this.responseCode = respCode;
74         this.responseMessage  = respMsg;
75     }
76
77     /**
78      * Gets the value of the requestId property.
79      *
80      * @return
81      *     possible object is
82      *     {@link String }
83      *
84      */
85     public String getRequestId() {
86         return requestId;
87     }
88
89     /**
90      * Sets the value of the requestId property.
91      *
92      * @param value
93      *     allowed object is
94      *     {@link String }
95      *
96      */
97     public void setRequestId(String value) {
98         this.requestId = value;
99     }
100
101     /**
102      * Gets the value of the responseCode property.
103      *
104      * @return
105      *     possible object is
106      *     {@link String }
107      *
108      */
109     public String getResponseCode() {
110         return responseCode;
111     }
112
113     /**
114      * Sets the value of the responseCode property.
115      *
116      * @param value
117      *     allowed object is
118      *     {@link String }
119      *
120      */
121     public void setResponseCode(String value) {
122         this.responseCode = value;
123     }
124
125     /**
126      * Gets the value of the responseMessage property.
127      *
128      * @return
129      *     possible object is
130      *     {@link String }
131      *
132      */
133     public String getResponseMessage() {
134         return responseMessage;
135     }
136
137     /**
138      * Sets the value of the responseMessage property.
139      *
140      * @param value
141      *     allowed object is
142      *     {@link String }
143      *
144      */
145     public void setResponseMessage(String value) {
146         this.responseMessage = value;
147     }
148
149         @Override
150         public String toString() {
151                 return "CallbackHeader [requestId=" + requestId + ", responseCode="
152                                 + responseCode + ", responseMessage=" + responseMessage + "]";
153         }
154 }