2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Modifications Copyright (C) 2018 IBM.
8 * ================================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
23 package org.onap.so.adapters.sdnc.impl;
25 public class RequestTunables {
29 public static final String GENERATED_KEY = "Generated key: ";
32 private String reqId = "";
33 private String msoAction = "";
34 private String operation = "";
35 private String action = "";
38 private String reqMethod = "POST";
39 private String sdncUrl = null;
40 private String timeout = "60000";
41 private String headerName = "sdnc-request-header";
42 private String namespace = "";
43 private String asyncInd = "N"; // future use
45 private String sdncaNotificationUrl = null;
47 public RequestTunables(String reqId, String msoAction, String operation, String action) {
52 if (msoAction != null) {
53 this.msoAction = msoAction;
55 if (operation != null) {
56 this.operation = operation;
63 public RequestTunables(RequestTunables original) {
64 this.reqId = original.reqId;
65 this.action = original.action;
66 this.msoAction = original.msoAction;
67 this.operation = original.operation;
68 this.reqMethod = original.reqMethod;
69 this.sdncUrl = original.sdncUrl;
70 this.timeout = original.timeout;
71 this.headerName = original.headerName;
72 this.namespace = original.namespace;
73 this.asyncInd = original.asyncInd;
74 this.sdncaNotificationUrl = original.sdncaNotificationUrl;
77 public String getReqId() {
81 public void setReqId(String reqId) {
85 public String getReqMethod() {
89 public void setReqMethod(String reqMethod) {
90 this.reqMethod = reqMethod;
93 public String getMsoAction() {
97 public void setMsoAction(String msoAction) {
98 this.msoAction = msoAction;
101 public String getAction() {
105 public void setAction(String action) {
106 this.action = action;
109 public String getOperation() {
113 public void setOperation(String operation) {
114 this.operation = operation;
117 public String getSdncUrl() {
121 public void setSdncUrl(String sdncUrl) {
122 this.sdncUrl = sdncUrl;
125 public String getTimeout() {
129 public void setTimeout(String timeout) {
130 this.timeout = timeout;
133 public String getAsyncInd() {
137 public void setAsyncInd(String asyncInd) {
138 this.asyncInd = asyncInd;
141 public String getHeaderName() {
145 public void setHeaderName(String headerName) {
146 this.headerName = headerName;
150 public String getSdncaNotificationUrl() {
151 return sdncaNotificationUrl;
154 public void setSdncaNotificationUrl(String sdncaNotificationUrl) {
155 this.sdncaNotificationUrl = sdncaNotificationUrl;
158 public String getNamespace() {
162 public void setNamespace(String namespace) {
163 this.namespace = namespace;
167 public String toString() {
168 return "RequestTunables [reqId=" + reqId + ", msoAction=" + msoAction + ", operation=" + operation + ", action="
169 + action + ", reqMethod=" + reqMethod + ", sdncUrl=" + sdncUrl + ", timeout=" + timeout
170 + ", headerName=" + headerName + ", sdncaNotificationUrl=" + sdncaNotificationUrl + ", namespace="