Containerization feature of SO
[so.git] / adapters / mso-sdnc-adapter / src / main / java / org / onap / so / 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.onap.so.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         /* Empty constructor */
70     }
71
72     public CallbackHeader(String reqId, String respCode, String respMsg) {
73         this.requestId = reqId;
74         this.responseCode = respCode;
75         this.responseMessage  = respMsg;
76     }
77
78     /**
79      * Gets the value of the requestId property.
80      *
81      * @return
82      *     possible object is
83      *     {@link String }
84      *
85      */
86     public String getRequestId() {
87         return requestId;
88     }
89
90     /**
91      * Sets the value of the requestId property.
92      *
93      * @param value
94      *     allowed object is
95      *     {@link String }
96      *
97      */
98     public void setRequestId(String value) {
99         this.requestId = value;
100     }
101
102     /**
103      * Gets the value of the responseCode property.
104      *
105      * @return
106      *     possible object is
107      *     {@link String }
108      *
109      */
110     public String getResponseCode() {
111         return responseCode;
112     }
113
114     /**
115      * Sets the value of the responseCode property.
116      *
117      * @param value
118      *     allowed object is
119      *     {@link String }
120      *
121      */
122     public void setResponseCode(String value) {
123         this.responseCode = value;
124     }
125
126     /**
127      * Gets the value of the responseMessage property.
128      *
129      * @return
130      *     possible object is
131      *     {@link String }
132      *
133      */
134     public String getResponseMessage() {
135         return responseMessage;
136     }
137
138     /**
139      * Sets the value of the responseMessage property.
140      *
141      * @param value
142      *     allowed object is
143      *     {@link String }
144      *
145      */
146     public void setResponseMessage(String value) {
147         this.responseMessage = value;
148     }
149
150         @Override
151         public String toString() {
152                 return "CallbackHeader [requestId=" + requestId + ", responseCode="
153                                 + responseCode + ", responseMessage=" + responseMessage + "]";
154         }
155 }