1
2 package org.miloss.fgsms.services.interfaces.datacollector;
3
4 import java.io.Serializable;
5 import java.util.ArrayList;
6 import java.util.List;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlRootElement;
11 import javax.xml.bind.annotation.XmlSchemaType;
12 import javax.xml.bind.annotation.XmlType;
13 import java.util.Calendar;
14 import org.miloss.fgsms.services.interfaces.common.Header;
15 import org.miloss.fgsms.services.interfaces.common.SecurityWrapper;
16
17
18 /**
19 * request
20 *
21 * <p>Java class for AddDataRequestMsg complex type.
22 *
23 * <p>The following schema fragment specifies the expected content contained within this class.
24 *
25 * <pre>
26 * <complexType name="AddDataRequestMsg">
27 * <complexContent>
28 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29 * <sequence>
30 * <element name="classification" type="{urn:org:miloss:fgsms:services:interfaces:common}SecurityWrapper"/>
31 * <element name="Action" type="{http://www.w3.org/2001/XMLSchema}string"/>
32 * <element name="Message" type="{http://www.w3.org/2001/XMLSchema}string"/>
33 * <element name="TransactionID" type="{http://www.w3.org/2001/XMLSchema}string"/>
34 * <element name="RelatedTransactionID" type="{http://www.w3.org/2001/XMLSchema}string"/>
35 * <element name="TransactionThreadID" type="{http://www.w3.org/2001/XMLSchema}string"/>
36 * <element name="Identity" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
37 * <element name="ServiceHost" type="{http://www.w3.org/2001/XMLSchema}string"/>
38 * <element name="Success" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
39 * <element name="URI" type="{http://www.w3.org/2001/XMLSchema}string"/>
40 * <element name="RequestURI" type="{http://www.w3.org/2001/XMLSchema}string"/>
41 * <element name="XmlRequest" type="{http://www.w3.org/2001/XMLSchema}string"/>
42 * <element name="XmlResponse" type="{http://www.w3.org/2001/XMLSchema}string"/>
43 * <element name="requestSize" type="{http://www.w3.org/2001/XMLSchema}int"/>
44 * <element name="responseSize" type="{http://www.w3.org/2001/XMLSchema}int"/>
45 * <element name="responseTime" type="{http://www.w3.org/2001/XMLSchema}int"/>
46 * <element name="agentType" type="{http://www.w3.org/2001/XMLSchema}string"/>
47 * <element name="recordedat" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
48 * <element name="headersRequest" type="{urn:org:miloss:fgsms:services:interfaces:common}header" maxOccurs="unbounded" minOccurs="0"/>
49 * <element name="headersResponse" type="{urn:org:miloss:fgsms:services:interfaces:common}header" maxOccurs="unbounded" minOccurs="0"/>
50 * </sequence>
51 * </restriction>
52 * </complexContent>
53 * </complexType>
54 * </pre>
55 *
56 *
57 */
58 @XmlAccessorType(XmlAccessType.FIELD)
59 @XmlType(name = "AddDataRequestMsg", propOrder = {
60 "classification",
61 "action",
62 "message",
63 "transactionID",
64 "relatedTransactionID",
65 "transactionThreadID",
66 "identity",
67 "serviceHost",
68 "success",
69 "uri",
70 "requestURI",
71 "xmlRequest",
72 "xmlResponse",
73 "requestSize",
74 "responseSize",
75 "responseTime",
76 "agentType",
77 "recordedat",
78 "headersRequest",
79 "headersResponse"
80 })
81 @XmlRootElement
82 public class AddDataRequestMsg
83 implements Serializable
84 {
85
86 private final static long serialVersionUID = 1L;
87 @XmlElement(required = true, nillable = true)
88 protected SecurityWrapper classification;
89 @XmlElement(name = "Action", required = true, nillable = true)
90 protected String action;
91 @XmlElement(name = "Message", required = true, nillable = true)
92 protected String message;
93 @XmlElement(name = "TransactionID", required = true, nillable = true)
94 protected String transactionID;
95 @XmlElement(name = "RelatedTransactionID", required = true, nillable = true)
96 protected String relatedTransactionID;
97 @XmlElement(name = "TransactionThreadID", required = true, nillable = true)
98 protected String transactionThreadID;
99 @XmlElement(name = "Identity", required = false, nillable = true)
100 protected List<String> identity;
101 @XmlElement(name = "ServiceHost", required = true, nillable = true)
102 protected String serviceHost;
103 @XmlElement(name = "Success")
104 protected boolean success;
105 @XmlElement(name = "URI", required = true, nillable = true)
106 protected String uri;
107 @XmlElement(name = "RequestURI", required = true, nillable = true)
108 protected String requestURI;
109 @XmlElement(name = "XmlRequest", required = false, nillable = true)
110 protected String xmlRequest;
111 @XmlElement(name = "XmlResponse", required = false, nillable = true)
112 protected String xmlResponse;
113 protected int requestSize;
114 protected int responseSize;
115 protected int responseTime;
116 @XmlElement(required = true, nillable = true)
117 protected String agentType;
118 @XmlElement(required = true)
119 @XmlSchemaType(name = "dateTime")
120 protected Calendar recordedat;
121 protected List<Header> headersRequest;
122 protected List<Header> headersResponse;
123
124 /**
125 * Gets the value of the classification property.
126 *
127 * @return
128 * possible object is
129 * {@link SecurityWrapper }
130 *
131 */
132 public SecurityWrapper getClassification() {
133 return classification;
134 }
135
136 /**
137 * Sets the value of the classification property.
138 *
139 * @param value
140 * allowed object is
141 * {@link SecurityWrapper }
142 *
143 */
144 public void setClassification(SecurityWrapper value) {
145 this.classification = value;
146 }
147
148 public boolean isSetClassification() {
149 return (this.classification!= null);
150 }
151
152 /**
153 * Gets the value of the action property.
154 *
155 * @return
156 * possible object is
157 * {@link String }
158 *
159 */
160 public String getAction() {
161 return action;
162 }
163
164 /**
165 * Sets the value of the action property.
166 *
167 * @param value
168 * allowed object is
169 * {@link String }
170 *
171 */
172 public void setAction(String value) {
173 this.action = value;
174 }
175
176 public boolean isSetAction() {
177 return (this.action!= null);
178 }
179
180 /**
181 * Gets the value of the message property.
182 *
183 * @return
184 * possible object is
185 * {@link String }
186 *
187 */
188 public String getMessage() {
189 return message;
190 }
191
192 /**
193 * Sets the value of the message property.
194 *
195 * @param value
196 * allowed object is
197 * {@link String }
198 *
199 */
200 public void setMessage(String value) {
201 this.message = value;
202 }
203
204 public boolean isSetMessage() {
205 return (this.message!= null);
206 }
207
208 /**
209 * Gets the value of the transactionID property.
210 *
211 * @return
212 * possible object is
213 * {@link String }
214 *
215 */
216 public String getTransactionID() {
217 return transactionID;
218 }
219
220 /**
221 * Sets the value of the transactionID property.
222 *
223 * @param value
224 * allowed object is
225 * {@link String }
226 *
227 */
228 public void setTransactionID(String value) {
229 this.transactionID = value;
230 }
231
232 public boolean isSetTransactionID() {
233 return (this.transactionID!= null);
234 }
235
236 /**
237 * Gets the value of the relatedTransactionID property.
238 *
239 * @return
240 * possible object is
241 * {@link String }
242 *
243 */
244 public String getRelatedTransactionID() {
245 return relatedTransactionID;
246 }
247
248 /**
249 * Sets the value of the relatedTransactionID property.
250 *
251 * @param value
252 * allowed object is
253 * {@link String }
254 *
255 */
256 public void setRelatedTransactionID(String value) {
257 this.relatedTransactionID = value;
258 }
259
260 public boolean isSetRelatedTransactionID() {
261 return (this.relatedTransactionID!= null);
262 }
263
264 /**
265 * Gets the value of the transactionThreadID property.
266 *
267 * @return
268 * possible object is
269 * {@link String }
270 *
271 */
272 public String getTransactionThreadID() {
273 return transactionThreadID;
274 }
275
276 /**
277 * Sets the value of the transactionThreadID property.
278 *
279 * @param value
280 * allowed object is
281 * {@link String }
282 *
283 */
284 public void setTransactionThreadID(String value) {
285 this.transactionThreadID = value;
286 }
287
288 public boolean isSetTransactionThreadID() {
289 return (this.transactionThreadID!= null);
290 }
291
292 /**
293 * Gets the value of the identity property.
294 *
295 * <p>
296 * This accessor method returns a reference to the live list,
297 * not a snapshot. Therefore any modification you make to the
298 * returned list will be present inside the JAXB object.
299 * This is why there is not a <CODE>set</CODE> method for the identity property.
300 *
301 * <p>
302 * For example, to add a new item, do as follows:
303 * <pre>
304 * getIdentity().add(newItem);
305 * </pre>
306 *
307 *
308 * <p>
309 * Objects of the following type(s) are allowed in the list
310 * {@link String }
311 *
312 *
313 */
314 public List<String> getIdentity() {
315 if (identity == null) {
316 identity = new ArrayList<String>();
317 }
318 return this.identity;
319 }
320
321 public boolean isSetIdentity() {
322 return ((this.identity!= null)&&(!this.identity.isEmpty()));
323 }
324
325 public void unsetIdentity() {
326 this.identity = null;
327 }
328
329 /**
330 * Gets the value of the serviceHost property.
331 *
332 * @return
333 * possible object is
334 * {@link String }
335 *
336 */
337 public String getServiceHost() {
338 return serviceHost;
339 }
340
341 /**
342 * Sets the value of the serviceHost property.
343 *
344 * @param value
345 * allowed object is
346 * {@link String }
347 *
348 */
349 public void setServiceHost(String value) {
350 this.serviceHost = value;
351 }
352
353 public boolean isSetServiceHost() {
354 return (this.serviceHost!= null);
355 }
356
357 /**
358 * Gets the value of the success property.
359 *
360 */
361 public boolean isSuccess() {
362 return success;
363 }
364
365 /**
366 * Sets the value of the success property.
367 *
368 */
369 public void setSuccess(boolean value) {
370 this.success = value;
371 }
372
373 public boolean isSetSuccess() {
374 return true;
375 }
376
377 /**
378 * Gets the value of the uri property.
379 *
380 * @return
381 * possible object is
382 * {@link String }
383 *
384 */
385 public String getURI() {
386 return uri;
387 }
388
389 /**
390 * Sets the value of the uri property.
391 *
392 * @param value
393 * allowed object is
394 * {@link String }
395 *
396 */
397 public void setURI(String value) {
398 this.uri = value;
399 }
400
401 public boolean isSetURI() {
402 return (this.uri!= null);
403 }
404
405 /**
406 * Gets the value of the requestURI property.
407 *
408 * @return
409 * possible object is
410 * {@link String }
411 *
412 */
413 public String getRequestURI() {
414 return requestURI;
415 }
416
417 /**
418 * Sets the value of the requestURI property.
419 *
420 * @param value
421 * allowed object is
422 * {@link String }
423 *
424 */
425 public void setRequestURI(String value) {
426 this.requestURI = value;
427 }
428
429 public boolean isSetRequestURI() {
430 return (this.requestURI!= null);
431 }
432
433 /**
434 * Gets the value of the xmlRequest property.
435 *
436 * @return
437 * possible object is
438 * {@link String }
439 *
440 */
441 public String getXmlRequest() {
442 return xmlRequest;
443 }
444
445 /**
446 * Sets the value of the xmlRequest property.
447 *
448 * @param value
449 * allowed object is
450 * {@link String }
451 *
452 */
453 public void setXmlRequest(String value) {
454 this.xmlRequest = value;
455 }
456
457 public boolean isSetXmlRequest() {
458 return (this.xmlRequest!= null);
459 }
460
461 /**
462 * Gets the value of the xmlResponse property.
463 *
464 * @return
465 * possible object is
466 * {@link String }
467 *
468 */
469 public String getXmlResponse() {
470 return xmlResponse;
471 }
472
473 /**
474 * Sets the value of the xmlResponse property.
475 *
476 * @param value
477 * allowed object is
478 * {@link String }
479 *
480 */
481 public void setXmlResponse(String value) {
482 this.xmlResponse = value;
483 }
484
485 public boolean isSetXmlResponse() {
486 return (this.xmlResponse!= null);
487 }
488
489 /**
490 * Gets the value of the requestSize property.
491 *
492 */
493 public int getRequestSize() {
494 return requestSize;
495 }
496
497 /**
498 * Sets the value of the requestSize property.
499 *
500 */
501 public void setRequestSize(int value) {
502 this.requestSize = value;
503 }
504
505 public boolean isSetRequestSize() {
506 return true;
507 }
508
509 /**
510 * Gets the value of the responseSize property.
511 *
512 */
513 public int getResponseSize() {
514 return responseSize;
515 }
516
517 /**
518 * Sets the value of the responseSize property.
519 *
520 */
521 public void setResponseSize(int value) {
522 this.responseSize = value;
523 }
524
525 public boolean isSetResponseSize() {
526 return true;
527 }
528
529 /**
530 * Gets the value of the responseTime property.
531 *
532 */
533 public int getResponseTime() {
534 return responseTime;
535 }
536
537 /**
538 * Sets the value of the responseTime property.
539 *
540 */
541 public void setResponseTime(int value) {
542 this.responseTime = value;
543 }
544
545 public boolean isSetResponseTime() {
546 return true;
547 }
548
549 /**
550 * Gets the value of the agentType property.
551 *
552 * @return
553 * possible object is
554 * {@link String }
555 *
556 */
557 public String getAgentType() {
558 return agentType;
559 }
560
561 /**
562 * Sets the value of the agentType property.
563 *
564 * @param value
565 * allowed object is
566 * {@link String }
567 *
568 */
569 public void setAgentType(String value) {
570 this.agentType = value;
571 }
572
573 public boolean isSetAgentType() {
574 return (this.agentType!= null);
575 }
576
577 /**
578 * Gets the value of the recordedat property.
579 *
580 * @return
581 * possible object is
582 * {@link Calendar }
583 *
584 */
585 public Calendar getRecordedat() {
586 return recordedat;
587 }
588
589 /**
590 * Sets the value of the recordedat property.
591 *
592 * @param value
593 * allowed object is
594 * {@link Calendar }
595 *
596 */
597 public void setRecordedat(Calendar value) {
598 this.recordedat = value;
599 }
600
601 public boolean isSetRecordedat() {
602 return (this.recordedat!= null);
603 }
604
605 /**
606 * Gets the value of the headersRequest property.
607 *
608 * <p>
609 * This accessor method returns a reference to the live list,
610 * not a snapshot. Therefore any modification you make to the
611 * returned list will be present inside the JAXB object.
612 * This is why there is not a <CODE>set</CODE> method for the headersRequest property.
613 *
614 * <p>
615 * For example, to add a new item, do as follows:
616 * <pre>
617 * getHeadersRequest().add(newItem);
618 * </pre>
619 *
620 *
621 * <p>
622 * Objects of the following type(s) are allowed in the list
623 * {@link Header }
624 *
625 *
626 */
627 public List<Header> getHeadersRequest() {
628 if (headersRequest == null) {
629 headersRequest = new ArrayList<Header>();
630 }
631 return this.headersRequest;
632 }
633
634 public boolean isSetHeadersRequest() {
635 return ((this.headersRequest!= null)&&(!this.headersRequest.isEmpty()));
636 }
637
638 public void unsetHeadersRequest() {
639 this.headersRequest = null;
640 }
641
642 /**
643 * Gets the value of the headersResponse property.
644 *
645 * <p>
646 * This accessor method returns a reference to the live list,
647 * not a snapshot. Therefore any modification you make to the
648 * returned list will be present inside the JAXB object.
649 * This is why there is not a <CODE>set</CODE> method for the headersResponse property.
650 *
651 * <p>
652 * For example, to add a new item, do as follows:
653 * <pre>
654 * getHeadersResponse().add(newItem);
655 * </pre>
656 *
657 *
658 * <p>
659 * Objects of the following type(s) are allowed in the list
660 * {@link Header }
661 *
662 *
663 */
664 public List<Header> getHeadersResponse() {
665 if (headersResponse == null) {
666 headersResponse = new ArrayList<Header>();
667 }
668 return this.headersResponse;
669 }
670
671 public boolean isSetHeadersResponse() {
672 return ((this.headersResponse!= null)&&(!this.headersResponse.isEmpty()));
673 }
674
675 public void unsetHeadersResponse() {
676 this.headersResponse = null;
677 }
678
679 }