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=========================================================
20 package org.openecomp.mso.adapters.sdncrest;
22 import org.codehaus.jackson.annotate.JsonProperty;
24 import javax.xml.bind.annotation.XmlElement;
25 import java.io.Serializable;
28 * Request Information specified by the SDNC "agnostic" API.
30 public class RequestInformation implements Serializable {
31 private static final long serialVersionUID = 1L;
33 // Identifies the transaction MSO has with the calling system.
34 private String requestId;
36 // Identifies the calling system, e.g. CCD.
37 private String source;
39 // The calling system's endpoint for receiving notifications from MSO.
40 private String notificationUrl;
42 // NOTE: these are defined in the SDNC AID, but not used by MSO:
46 public RequestInformation(String requestId, String source, String notificationUrl) {
47 this.requestId = requestId;
49 this.notificationUrl = notificationUrl;
52 public RequestInformation() {
55 @JsonProperty("requestId")
56 @XmlElement(name = "requestId")
57 public String getRequestId() {
61 @JsonProperty("requestId")
62 public void setRequestId(String requestId) {
63 this.requestId = requestId;
66 @JsonProperty("source")
67 @XmlElement(name = "source")
68 public String getSource() {
72 @JsonProperty("source")
73 public void setSource(String source) {
77 @JsonProperty("notificationUrl")
78 @XmlElement(name = "notificationUrl")
79 public String getNotificationUrl() {
80 return notificationUrl;
83 @JsonProperty("notificationUrl")
84 public void setNotificationUrl(String notificationUrl) {
85 this.notificationUrl = notificationUrl;