Replaced all tabs with spaces in java and pom.xml
[so.git] / adapters / mso-sdnc-adapter / src / main / java / org / onap / so / adapters / sdnc / impl / RequestTunables.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
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=========================================================
21  */
22
23 package org.onap.so.adapters.sdnc.impl;
24
25 public class RequestTunables {
26
27
28
29     public static final String GENERATED_KEY = "Generated key: ";
30
31     // criteria
32     private String reqId = "";
33     private String msoAction = "";
34     private String operation = "";
35     private String action = "";
36
37     // tunables
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
44
45     private String sdncaNotificationUrl = null;
46
47     public RequestTunables(String reqId, String msoAction, String operation, String action) {
48         super();
49         if (reqId != null) {
50             this.reqId = reqId;
51         }
52         if (msoAction != null) {
53             this.msoAction = msoAction;
54         }
55         if (operation != null) {
56             this.operation = operation;
57         }
58         if (action != null) {
59             this.action = action;
60         }
61     }
62
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;
75     }
76
77     public String getReqId() {
78         return reqId;
79     }
80
81     public void setReqId(String reqId) {
82         this.reqId = reqId;
83     }
84
85     public String getReqMethod() {
86         return reqMethod;
87     }
88
89     public void setReqMethod(String reqMethod) {
90         this.reqMethod = reqMethod;
91     }
92
93     public String getMsoAction() {
94         return msoAction;
95     }
96
97     public void setMsoAction(String msoAction) {
98         this.msoAction = msoAction;
99     }
100
101     public String getAction() {
102         return action;
103     }
104
105     public void setAction(String action) {
106         this.action = action;
107     }
108
109     public String getOperation() {
110         return operation;
111     }
112
113     public void setOperation(String operation) {
114         this.operation = operation;
115     }
116
117     public String getSdncUrl() {
118         return sdncUrl;
119     }
120
121     public void setSdncUrl(String sdncUrl) {
122         this.sdncUrl = sdncUrl;
123     }
124
125     public String getTimeout() {
126         return timeout;
127     }
128
129     public void setTimeout(String timeout) {
130         this.timeout = timeout;
131     }
132
133     public String getAsyncInd() {
134         return asyncInd;
135     }
136
137     public void setAsyncInd(String asyncInd) {
138         this.asyncInd = asyncInd;
139     }
140
141     public String getHeaderName() {
142         return headerName;
143     }
144
145     public void setHeaderName(String headerName) {
146         this.headerName = headerName;
147     }
148
149
150     public String getSdncaNotificationUrl() {
151         return sdncaNotificationUrl;
152     }
153
154     public void setSdncaNotificationUrl(String sdncaNotificationUrl) {
155         this.sdncaNotificationUrl = sdncaNotificationUrl;
156     }
157
158     public String getNamespace() {
159         return namespace;
160     }
161
162     public void setNamespace(String namespace) {
163         this.namespace = namespace;
164     }
165
166     @Override
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="
171                 + namespace + "]";
172     }
173
174 }