1
2
3
4
5
6
7
8 package org.glite.ce.security.delegation;
9
10
11
12
13
14
15
16
17 public class DelegationServiceStub extends org.apache.axis2.client.Stub
18 {
19 protected org.apache.axis2.description.AxisOperation[] _operations;
20
21
22 private java.util.HashMap faultExceptionNameMap = new java.util.HashMap();
23 private java.util.HashMap faultExceptionClassNameMap = new java.util.HashMap();
24 private java.util.HashMap faultMessageMap = new java.util.HashMap();
25
26 private static int counter = 0;
27
28 private static synchronized java.lang.String getUniqueSuffix(){
29
30 if (counter > 99999){
31 counter = 0;
32 }
33 counter = counter + 1;
34 return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter;
35 }
36
37
38 private void populateAxisService() throws org.apache.axis2.AxisFault {
39
40
41 _service = new org.apache.axis2.description.AxisService("DelegationService" + getUniqueSuffix());
42 addAnonymousOperations();
43
44
45 org.apache.axis2.description.AxisOperation __operation;
46
47 _operations = new org.apache.axis2.description.AxisOperation[9];
48
49 __operation = new org.apache.axis2.description.OutInAxisOperation();
50
51
52 __operation.setName(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2", "getProxyReq"));
53 _service.addOperation(__operation);
54
55
56
57
58 _operations[0]=__operation;
59
60
61 __operation = new org.apache.axis2.description.OutInAxisOperation();
62
63
64 __operation.setName(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2", "destroy"));
65 _service.addOperation(__operation);
66
67
68
69
70 _operations[1]=__operation;
71
72
73 __operation = new org.apache.axis2.description.OutInAxisOperation();
74
75
76 __operation.setName(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2", "renewProxyReq"));
77 _service.addOperation(__operation);
78
79
80
81
82 _operations[2]=__operation;
83
84
85 __operation = new org.apache.axis2.description.OutInAxisOperation();
86
87
88 __operation.setName(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2", "getNewProxyReq"));
89 _service.addOperation(__operation);
90
91
92
93
94 _operations[3]=__operation;
95
96
97 __operation = new org.apache.axis2.description.OutInAxisOperation();
98
99
100 __operation.setName(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2", "getServiceMetadata"));
101 _service.addOperation(__operation);
102
103
104
105
106 _operations[4]=__operation;
107
108
109 __operation = new org.apache.axis2.description.OutInAxisOperation();
110
111
112 __operation.setName(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2", "putProxy"));
113 _service.addOperation(__operation);
114
115
116
117
118 _operations[5]=__operation;
119
120
121 __operation = new org.apache.axis2.description.OutInAxisOperation();
122
123
124 __operation.setName(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2", "getVersion"));
125 _service.addOperation(__operation);
126
127
128
129
130 _operations[6]=__operation;
131
132
133 __operation = new org.apache.axis2.description.OutInAxisOperation();
134
135
136 __operation.setName(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2", "getTerminationTime"));
137 _service.addOperation(__operation);
138
139
140
141
142 _operations[7]=__operation;
143
144
145 __operation = new org.apache.axis2.description.OutInAxisOperation();
146
147
148 __operation.setName(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2", "getInterfaceVersion"));
149 _service.addOperation(__operation);
150
151
152
153
154 _operations[8]=__operation;
155
156
157 }
158
159
160 private void populateFaults(){
161
162 faultExceptionNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getProxyReq"),"org.glite.ce.security.delegation.DelegationException_Fault");
163 faultExceptionClassNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getProxyReq"),"org.glite.ce.security.delegation.DelegationException_Fault");
164 faultMessageMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getProxyReq"),"org.glite.ce.security.delegation.DelegationServiceStub$DelegationException");
165
166 faultExceptionNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "destroy"),"org.glite.ce.security.delegation.DelegationException_Fault");
167 faultExceptionClassNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "destroy"),"org.glite.ce.security.delegation.DelegationException_Fault");
168 faultMessageMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "destroy"),"org.glite.ce.security.delegation.DelegationServiceStub$DelegationException");
169
170 faultExceptionNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "renewProxyReq"),"org.glite.ce.security.delegation.DelegationException_Fault");
171 faultExceptionClassNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "renewProxyReq"),"org.glite.ce.security.delegation.DelegationException_Fault");
172 faultMessageMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "renewProxyReq"),"org.glite.ce.security.delegation.DelegationServiceStub$DelegationException");
173
174 faultExceptionNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getNewProxyReq"),"org.glite.ce.security.delegation.DelegationException_Fault");
175 faultExceptionClassNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getNewProxyReq"),"org.glite.ce.security.delegation.DelegationException_Fault");
176 faultMessageMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getNewProxyReq"),"org.glite.ce.security.delegation.DelegationServiceStub$DelegationException");
177
178 faultExceptionNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getServiceMetadata"),"org.glite.ce.security.delegation.DelegationException_Fault");
179 faultExceptionClassNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getServiceMetadata"),"org.glite.ce.security.delegation.DelegationException_Fault");
180 faultMessageMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getServiceMetadata"),"org.glite.ce.security.delegation.DelegationServiceStub$DelegationException");
181
182 faultExceptionNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "putProxy"),"org.glite.ce.security.delegation.DelegationException_Fault");
183 faultExceptionClassNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "putProxy"),"org.glite.ce.security.delegation.DelegationException_Fault");
184 faultMessageMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "putProxy"),"org.glite.ce.security.delegation.DelegationServiceStub$DelegationException");
185
186 faultExceptionNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getVersion"),"org.glite.ce.security.delegation.DelegationException_Fault");
187 faultExceptionClassNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getVersion"),"org.glite.ce.security.delegation.DelegationException_Fault");
188 faultMessageMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getVersion"),"org.glite.ce.security.delegation.DelegationServiceStub$DelegationException");
189
190 faultExceptionNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getTerminationTime"),"org.glite.ce.security.delegation.DelegationException_Fault");
191 faultExceptionClassNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getTerminationTime"),"org.glite.ce.security.delegation.DelegationException_Fault");
192 faultMessageMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getTerminationTime"),"org.glite.ce.security.delegation.DelegationServiceStub$DelegationException");
193
194 faultExceptionNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getInterfaceVersion"),"org.glite.ce.security.delegation.DelegationException_Fault");
195 faultExceptionClassNameMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getInterfaceVersion"),"org.glite.ce.security.delegation.DelegationException_Fault");
196 faultMessageMap.put(new org.apache.axis2.client.FaultMapKey(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2","DelegationException"), "getInterfaceVersion"),"org.glite.ce.security.delegation.DelegationServiceStub$DelegationException");
197
198
199
200 }
201
202
203
204
205
206 public DelegationServiceStub(org.apache.axis2.context.ConfigurationContext configurationContext,
207 java.lang.String targetEndpoint)
208 throws org.apache.axis2.AxisFault {
209 this(configurationContext,targetEndpoint,false);
210 }
211
212
213
214
215
216 public DelegationServiceStub(org.apache.axis2.context.ConfigurationContext configurationContext,
217 java.lang.String targetEndpoint, boolean useSeparateListener)
218 throws org.apache.axis2.AxisFault {
219
220 populateAxisService();
221 populateFaults();
222
223 _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext,_service);
224
225
226 _serviceClient.getOptions().setTo(new org.apache.axis2.addressing.EndpointReference(
227 targetEndpoint));
228 _serviceClient.getOptions().setUseSeparateListener(useSeparateListener);
229
230
231 }
232
233
234
235
236 public DelegationServiceStub(org.apache.axis2.context.ConfigurationContext configurationContext) throws org.apache.axis2.AxisFault {
237
238 this(configurationContext,"https://localhost:8443/glite-security-delegation" );
239
240 }
241
242
243
244
245 public DelegationServiceStub() throws org.apache.axis2.AxisFault {
246
247 this("https://localhost:8443/glite-security-delegation" );
248
249 }
250
251
252
253
254 public DelegationServiceStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault {
255 this(null,targetEndpoint);
256 }
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273 public org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReqResponse getProxyReq(
274
275 org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReq getProxyReq0)
276
277
278 throws java.rmi.RemoteException
279
280
281 ,org.glite.ce.security.delegation.DelegationException_Fault{
282 org.apache.axis2.context.MessageContext _messageContext = null;
283 try{
284 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
285 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/getProxyReqRequest");
286 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
287
288
289
290 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
291
292
293
294 _messageContext = new org.apache.axis2.context.MessageContext();
295
296
297
298
299 org.apache.axiom.soap.SOAPEnvelope env = null;
300
301
302 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
303 getProxyReq0,
304 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
305 "getProxyReq")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
306 "getProxyReq"));
307
308
309 _serviceClient.addHeadersToEnvelope(env);
310
311 _messageContext.setEnvelope(env);
312
313
314 _operationClient.addMessageContext(_messageContext);
315
316
317 _operationClient.execute(true);
318
319
320 org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
321 org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
322 org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
323
324
325 java.lang.Object object = fromOM(
326 _returnEnv.getBody().getFirstElement() ,
327 org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReqResponse.class,
328 getEnvelopeNamespaces(_returnEnv));
329
330
331 return (org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReqResponse)object;
332
333 }catch(org.apache.axis2.AxisFault f){
334
335 org.apache.axiom.om.OMElement faultElt = f.getDetail();
336 if (faultElt!=null){
337 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getProxyReq"))){
338
339 try{
340 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getProxyReq"));
341 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
342 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
343 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
344
345 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getProxyReq"));
346 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
347 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
348 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
349 new java.lang.Class[]{messageClass});
350 m.invoke(ex,new java.lang.Object[]{messageObject});
351
352 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
353 throw (org.glite.ce.security.delegation.DelegationException_Fault)ex;
354 }
355
356
357 throw new java.rmi.RemoteException(ex.getMessage(), ex);
358 }catch(java.lang.ClassCastException e){
359
360 throw f;
361 } catch (java.lang.ClassNotFoundException e) {
362
363 throw f;
364 }catch (java.lang.NoSuchMethodException e) {
365
366 throw f;
367 } catch (java.lang.reflect.InvocationTargetException e) {
368
369 throw f;
370 } catch (java.lang.IllegalAccessException e) {
371
372 throw f;
373 } catch (java.lang.InstantiationException e) {
374
375 throw f;
376 }
377 }else{
378 throw f;
379 }
380 }else{
381 throw f;
382 }
383 } finally {
384 if (_messageContext.getTransportOut() != null) {
385 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
386 }
387 }
388 }
389
390
391
392
393
394
395
396
397 public void startgetProxyReq(
398
399 org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReq getProxyReq0,
400
401 final org.glite.ce.security.delegation.DelegationServiceCallbackHandler callback)
402
403 throws java.rmi.RemoteException{
404
405 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
406 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/getProxyReqRequest");
407 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
408
409
410
411 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
412
413
414
415
416 org.apache.axiom.soap.SOAPEnvelope env=null;
417 final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
418
419
420
421
422
423 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
424 getProxyReq0,
425 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
426 "getProxyReq")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
427 "getProxyReq"));
428
429
430 _serviceClient.addHeadersToEnvelope(env);
431
432 _messageContext.setEnvelope(env);
433
434
435 _operationClient.addMessageContext(_messageContext);
436
437
438
439 _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
440 public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
441 try {
442 org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
443
444 java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
445 org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReqResponse.class,
446 getEnvelopeNamespaces(resultEnv));
447 callback.receiveResultgetProxyReq(
448 (org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReqResponse)object);
449
450 } catch (org.apache.axis2.AxisFault e) {
451 callback.receiveErrorgetProxyReq(e);
452 }
453 }
454
455 public void onError(java.lang.Exception error) {
456 if (error instanceof org.apache.axis2.AxisFault) {
457 org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
458 org.apache.axiom.om.OMElement faultElt = f.getDetail();
459 if (faultElt!=null){
460 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getProxyReq"))){
461
462 try{
463 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getProxyReq"));
464 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
465 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
466 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
467
468 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getProxyReq"));
469 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
470 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
471 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
472 new java.lang.Class[]{messageClass});
473 m.invoke(ex,new java.lang.Object[]{messageObject});
474
475 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
476 callback.receiveErrorgetProxyReq((org.glite.ce.security.delegation.DelegationException_Fault)ex);
477 return;
478 }
479
480
481 callback.receiveErrorgetProxyReq(new java.rmi.RemoteException(ex.getMessage(), ex));
482 } catch(java.lang.ClassCastException e){
483
484 callback.receiveErrorgetProxyReq(f);
485 } catch (java.lang.ClassNotFoundException e) {
486
487 callback.receiveErrorgetProxyReq(f);
488 } catch (java.lang.NoSuchMethodException e) {
489
490 callback.receiveErrorgetProxyReq(f);
491 } catch (java.lang.reflect.InvocationTargetException e) {
492
493 callback.receiveErrorgetProxyReq(f);
494 } catch (java.lang.IllegalAccessException e) {
495
496 callback.receiveErrorgetProxyReq(f);
497 } catch (java.lang.InstantiationException e) {
498
499 callback.receiveErrorgetProxyReq(f);
500 } catch (org.apache.axis2.AxisFault e) {
501
502 callback.receiveErrorgetProxyReq(f);
503 }
504 } else {
505 callback.receiveErrorgetProxyReq(f);
506 }
507 } else {
508 callback.receiveErrorgetProxyReq(f);
509 }
510 } else {
511 callback.receiveErrorgetProxyReq(error);
512 }
513 }
514
515 public void onFault(org.apache.axis2.context.MessageContext faultContext) {
516 org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
517 onError(fault);
518 }
519
520 public void onComplete() {
521 try {
522 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
523 } catch (org.apache.axis2.AxisFault axisFault) {
524 callback.receiveErrorgetProxyReq(axisFault);
525 }
526 }
527 });
528
529
530 org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
531 if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
532 _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
533 _operations[0].setMessageReceiver(
534 _callbackReceiver);
535 }
536
537
538 _operationClient.execute(false);
539
540 }
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557 public org.glite.ce.security.delegation.DelegationServiceStub.DestroyResponse destroy(
558
559 org.glite.ce.security.delegation.DelegationServiceStub.Destroy destroy2)
560
561
562 throws java.rmi.RemoteException
563
564
565 ,org.glite.ce.security.delegation.DelegationException_Fault{
566 org.apache.axis2.context.MessageContext _messageContext = null;
567 try{
568 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());
569 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/destroyRequest");
570 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
571
572
573
574 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
575
576
577
578 _messageContext = new org.apache.axis2.context.MessageContext();
579
580
581
582
583 org.apache.axiom.soap.SOAPEnvelope env = null;
584
585
586 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
587 destroy2,
588 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
589 "destroy")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
590 "destroy"));
591
592
593 _serviceClient.addHeadersToEnvelope(env);
594
595 _messageContext.setEnvelope(env);
596
597
598 _operationClient.addMessageContext(_messageContext);
599
600
601 _operationClient.execute(true);
602
603
604 org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
605 org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
606 org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
607
608
609 java.lang.Object object = fromOM(
610 _returnEnv.getBody().getFirstElement() ,
611 org.glite.ce.security.delegation.DelegationServiceStub.DestroyResponse.class,
612 getEnvelopeNamespaces(_returnEnv));
613
614
615 return (org.glite.ce.security.delegation.DelegationServiceStub.DestroyResponse)object;
616
617 }catch(org.apache.axis2.AxisFault f){
618
619 org.apache.axiom.om.OMElement faultElt = f.getDetail();
620 if (faultElt!=null){
621 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"destroy"))){
622
623 try{
624 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"destroy"));
625 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
626 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
627 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
628
629 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"destroy"));
630 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
631 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
632 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
633 new java.lang.Class[]{messageClass});
634 m.invoke(ex,new java.lang.Object[]{messageObject});
635
636 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
637 throw (org.glite.ce.security.delegation.DelegationException_Fault)ex;
638 }
639
640
641 throw new java.rmi.RemoteException(ex.getMessage(), ex);
642 }catch(java.lang.ClassCastException e){
643
644 throw f;
645 } catch (java.lang.ClassNotFoundException e) {
646
647 throw f;
648 }catch (java.lang.NoSuchMethodException e) {
649
650 throw f;
651 } catch (java.lang.reflect.InvocationTargetException e) {
652
653 throw f;
654 } catch (java.lang.IllegalAccessException e) {
655
656 throw f;
657 } catch (java.lang.InstantiationException e) {
658
659 throw f;
660 }
661 }else{
662 throw f;
663 }
664 }else{
665 throw f;
666 }
667 } finally {
668 if (_messageContext.getTransportOut() != null) {
669 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
670 }
671 }
672 }
673
674
675
676
677
678
679
680
681
682
683 public void startdestroy(
684
685 org.glite.ce.security.delegation.DelegationServiceStub.Destroy destroy2,
686
687 final org.glite.ce.security.delegation.DelegationServiceCallbackHandler callback)
688
689 throws java.rmi.RemoteException{
690
691 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());
692 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/destroyRequest");
693 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
694
695
696
697 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
698
699
700
701
702 org.apache.axiom.soap.SOAPEnvelope env=null;
703 final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
704
705
706
707
708
709 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
710 destroy2,
711 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
712 "destroy")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
713 "destroy"));
714
715
716 _serviceClient.addHeadersToEnvelope(env);
717
718 _messageContext.setEnvelope(env);
719
720
721 _operationClient.addMessageContext(_messageContext);
722
723
724
725 _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
726 public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
727 try {
728 org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
729
730 java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
731 org.glite.ce.security.delegation.DelegationServiceStub.DestroyResponse.class,
732 getEnvelopeNamespaces(resultEnv));
733 callback.receiveResultdestroy(
734 (org.glite.ce.security.delegation.DelegationServiceStub.DestroyResponse)object);
735
736 } catch (org.apache.axis2.AxisFault e) {
737 callback.receiveErrordestroy(e);
738 }
739 }
740
741 public void onError(java.lang.Exception error) {
742 if (error instanceof org.apache.axis2.AxisFault) {
743 org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
744 org.apache.axiom.om.OMElement faultElt = f.getDetail();
745 if (faultElt!=null){
746 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"destroy"))){
747
748 try{
749 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"destroy"));
750 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
751 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
752 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
753
754 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"destroy"));
755 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
756 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
757 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
758 new java.lang.Class[]{messageClass});
759 m.invoke(ex,new java.lang.Object[]{messageObject});
760
761 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
762 callback.receiveErrordestroy((org.glite.ce.security.delegation.DelegationException_Fault)ex);
763 return;
764 }
765
766
767 callback.receiveErrordestroy(new java.rmi.RemoteException(ex.getMessage(), ex));
768 } catch(java.lang.ClassCastException e){
769
770 callback.receiveErrordestroy(f);
771 } catch (java.lang.ClassNotFoundException e) {
772
773 callback.receiveErrordestroy(f);
774 } catch (java.lang.NoSuchMethodException e) {
775
776 callback.receiveErrordestroy(f);
777 } catch (java.lang.reflect.InvocationTargetException e) {
778
779 callback.receiveErrordestroy(f);
780 } catch (java.lang.IllegalAccessException e) {
781
782 callback.receiveErrordestroy(f);
783 } catch (java.lang.InstantiationException e) {
784
785 callback.receiveErrordestroy(f);
786 } catch (org.apache.axis2.AxisFault e) {
787
788 callback.receiveErrordestroy(f);
789 }
790 } else {
791 callback.receiveErrordestroy(f);
792 }
793 } else {
794 callback.receiveErrordestroy(f);
795 }
796 } else {
797 callback.receiveErrordestroy(error);
798 }
799 }
800
801 public void onFault(org.apache.axis2.context.MessageContext faultContext) {
802 org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
803 onError(fault);
804 }
805
806 public void onComplete() {
807 try {
808 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
809 } catch (org.apache.axis2.AxisFault axisFault) {
810 callback.receiveErrordestroy(axisFault);
811 }
812 }
813 });
814
815
816 org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
817 if ( _operations[1].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
818 _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
819 _operations[1].setMessageReceiver(
820 _callbackReceiver);
821 }
822
823
824 _operationClient.execute(false);
825
826 }
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841 public org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReqResponse renewProxyReq(
842
843 org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReq renewProxyReq4)
844
845
846 throws java.rmi.RemoteException
847
848
849 ,org.glite.ce.security.delegation.DelegationException_Fault{
850 org.apache.axis2.context.MessageContext _messageContext = null;
851 try{
852 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());
853 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/renewProxyReqRequest");
854 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
855
856
857
858 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
859
860
861
862 _messageContext = new org.apache.axis2.context.MessageContext();
863
864
865
866
867 org.apache.axiom.soap.SOAPEnvelope env = null;
868
869
870 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
871 renewProxyReq4,
872 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
873 "renewProxyReq")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
874 "renewProxyReq"));
875
876
877 _serviceClient.addHeadersToEnvelope(env);
878
879 _messageContext.setEnvelope(env);
880
881
882 _operationClient.addMessageContext(_messageContext);
883
884
885 _operationClient.execute(true);
886
887
888 org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
889 org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
890 org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
891
892
893 java.lang.Object object = fromOM(
894 _returnEnv.getBody().getFirstElement() ,
895 org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReqResponse.class,
896 getEnvelopeNamespaces(_returnEnv));
897
898
899 return (org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReqResponse)object;
900
901 }catch(org.apache.axis2.AxisFault f){
902
903 org.apache.axiom.om.OMElement faultElt = f.getDetail();
904 if (faultElt!=null){
905 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"renewProxyReq"))){
906
907 try{
908 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"renewProxyReq"));
909 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
910 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
911 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
912
913 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"renewProxyReq"));
914 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
915 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
916 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
917 new java.lang.Class[]{messageClass});
918 m.invoke(ex,new java.lang.Object[]{messageObject});
919
920 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
921 throw (org.glite.ce.security.delegation.DelegationException_Fault)ex;
922 }
923
924
925 throw new java.rmi.RemoteException(ex.getMessage(), ex);
926 }catch(java.lang.ClassCastException e){
927
928 throw f;
929 } catch (java.lang.ClassNotFoundException e) {
930
931 throw f;
932 }catch (java.lang.NoSuchMethodException e) {
933
934 throw f;
935 } catch (java.lang.reflect.InvocationTargetException e) {
936
937 throw f;
938 } catch (java.lang.IllegalAccessException e) {
939
940 throw f;
941 } catch (java.lang.InstantiationException e) {
942
943 throw f;
944 }
945 }else{
946 throw f;
947 }
948 }else{
949 throw f;
950 }
951 } finally {
952 if (_messageContext.getTransportOut() != null) {
953 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
954 }
955 }
956 }
957
958
959
960
961
962
963
964
965 public void startrenewProxyReq(
966
967 org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReq renewProxyReq4,
968
969 final org.glite.ce.security.delegation.DelegationServiceCallbackHandler callback)
970
971 throws java.rmi.RemoteException{
972
973 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());
974 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/renewProxyReqRequest");
975 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
976
977
978
979 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
980
981
982
983
984 org.apache.axiom.soap.SOAPEnvelope env=null;
985 final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
986
987
988
989
990
991 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
992 renewProxyReq4,
993 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
994 "renewProxyReq")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
995 "renewProxyReq"));
996
997
998 _serviceClient.addHeadersToEnvelope(env);
999
1000 _messageContext.setEnvelope(env);
1001
1002
1003 _operationClient.addMessageContext(_messageContext);
1004
1005
1006
1007 _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
1008 public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
1009 try {
1010 org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
1011
1012 java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
1013 org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReqResponse.class,
1014 getEnvelopeNamespaces(resultEnv));
1015 callback.receiveResultrenewProxyReq(
1016 (org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReqResponse)object);
1017
1018 } catch (org.apache.axis2.AxisFault e) {
1019 callback.receiveErrorrenewProxyReq(e);
1020 }
1021 }
1022
1023 public void onError(java.lang.Exception error) {
1024 if (error instanceof org.apache.axis2.AxisFault) {
1025 org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
1026 org.apache.axiom.om.OMElement faultElt = f.getDetail();
1027 if (faultElt!=null){
1028 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"renewProxyReq"))){
1029
1030 try{
1031 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"renewProxyReq"));
1032 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
1033 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
1034 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
1035
1036 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"renewProxyReq"));
1037 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
1038 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
1039 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
1040 new java.lang.Class[]{messageClass});
1041 m.invoke(ex,new java.lang.Object[]{messageObject});
1042
1043 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
1044 callback.receiveErrorrenewProxyReq((org.glite.ce.security.delegation.DelegationException_Fault)ex);
1045 return;
1046 }
1047
1048
1049 callback.receiveErrorrenewProxyReq(new java.rmi.RemoteException(ex.getMessage(), ex));
1050 } catch(java.lang.ClassCastException e){
1051
1052 callback.receiveErrorrenewProxyReq(f);
1053 } catch (java.lang.ClassNotFoundException e) {
1054
1055 callback.receiveErrorrenewProxyReq(f);
1056 } catch (java.lang.NoSuchMethodException e) {
1057
1058 callback.receiveErrorrenewProxyReq(f);
1059 } catch (java.lang.reflect.InvocationTargetException e) {
1060
1061 callback.receiveErrorrenewProxyReq(f);
1062 } catch (java.lang.IllegalAccessException e) {
1063
1064 callback.receiveErrorrenewProxyReq(f);
1065 } catch (java.lang.InstantiationException e) {
1066
1067 callback.receiveErrorrenewProxyReq(f);
1068 } catch (org.apache.axis2.AxisFault e) {
1069
1070 callback.receiveErrorrenewProxyReq(f);
1071 }
1072 } else {
1073 callback.receiveErrorrenewProxyReq(f);
1074 }
1075 } else {
1076 callback.receiveErrorrenewProxyReq(f);
1077 }
1078 } else {
1079 callback.receiveErrorrenewProxyReq(error);
1080 }
1081 }
1082
1083 public void onFault(org.apache.axis2.context.MessageContext faultContext) {
1084 org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
1085 onError(fault);
1086 }
1087
1088 public void onComplete() {
1089 try {
1090 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
1091 } catch (org.apache.axis2.AxisFault axisFault) {
1092 callback.receiveErrorrenewProxyReq(axisFault);
1093 }
1094 }
1095 });
1096
1097
1098 org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
1099 if ( _operations[2].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
1100 _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
1101 _operations[2].setMessageReceiver(
1102 _callbackReceiver);
1103 }
1104
1105
1106 _operationClient.execute(false);
1107
1108 }
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121 public org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReqResponse getNewProxyReq(
1122
1123 org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReq getNewProxyReq6)
1124
1125
1126 throws java.rmi.RemoteException
1127
1128
1129 ,org.glite.ce.security.delegation.DelegationException_Fault{
1130 org.apache.axis2.context.MessageContext _messageContext = null;
1131 try{
1132 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());
1133 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/getNewProxyReqRequest");
1134 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
1135
1136
1137
1138 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
1139
1140
1141
1142 _messageContext = new org.apache.axis2.context.MessageContext();
1143
1144
1145
1146
1147 org.apache.axiom.soap.SOAPEnvelope env = null;
1148
1149
1150 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
1151 getNewProxyReq6,
1152 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1153 "getNewProxyReq")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1154 "getNewProxyReq"));
1155
1156
1157 _serviceClient.addHeadersToEnvelope(env);
1158
1159 _messageContext.setEnvelope(env);
1160
1161
1162 _operationClient.addMessageContext(_messageContext);
1163
1164
1165 _operationClient.execute(true);
1166
1167
1168 org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
1169 org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
1170 org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
1171
1172
1173 java.lang.Object object = fromOM(
1174 _returnEnv.getBody().getFirstElement() ,
1175 org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReqResponse.class,
1176 getEnvelopeNamespaces(_returnEnv));
1177
1178
1179 return (org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReqResponse)object;
1180
1181 }catch(org.apache.axis2.AxisFault f){
1182
1183 org.apache.axiom.om.OMElement faultElt = f.getDetail();
1184 if (faultElt!=null){
1185 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getNewProxyReq"))){
1186
1187 try{
1188 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getNewProxyReq"));
1189 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
1190 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
1191 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
1192
1193 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getNewProxyReq"));
1194 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
1195 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
1196 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
1197 new java.lang.Class[]{messageClass});
1198 m.invoke(ex,new java.lang.Object[]{messageObject});
1199
1200 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
1201 throw (org.glite.ce.security.delegation.DelegationException_Fault)ex;
1202 }
1203
1204
1205 throw new java.rmi.RemoteException(ex.getMessage(), ex);
1206 }catch(java.lang.ClassCastException e){
1207
1208 throw f;
1209 } catch (java.lang.ClassNotFoundException e) {
1210
1211 throw f;
1212 }catch (java.lang.NoSuchMethodException e) {
1213
1214 throw f;
1215 } catch (java.lang.reflect.InvocationTargetException e) {
1216
1217 throw f;
1218 } catch (java.lang.IllegalAccessException e) {
1219
1220 throw f;
1221 } catch (java.lang.InstantiationException e) {
1222
1223 throw f;
1224 }
1225 }else{
1226 throw f;
1227 }
1228 }else{
1229 throw f;
1230 }
1231 } finally {
1232 if (_messageContext.getTransportOut() != null) {
1233 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
1234 }
1235 }
1236 }
1237
1238
1239
1240
1241
1242
1243
1244
1245 public void startgetNewProxyReq(
1246
1247 org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReq getNewProxyReq6,
1248
1249 final org.glite.ce.security.delegation.DelegationServiceCallbackHandler callback)
1250
1251 throws java.rmi.RemoteException{
1252
1253 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());
1254 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/getNewProxyReqRequest");
1255 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
1256
1257
1258
1259 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
1260
1261
1262
1263
1264 org.apache.axiom.soap.SOAPEnvelope env=null;
1265 final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
1266
1267
1268
1269
1270
1271 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
1272 getNewProxyReq6,
1273 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1274 "getNewProxyReq")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1275 "getNewProxyReq"));
1276
1277
1278 _serviceClient.addHeadersToEnvelope(env);
1279
1280 _messageContext.setEnvelope(env);
1281
1282
1283 _operationClient.addMessageContext(_messageContext);
1284
1285
1286
1287 _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
1288 public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
1289 try {
1290 org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
1291
1292 java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
1293 org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReqResponse.class,
1294 getEnvelopeNamespaces(resultEnv));
1295 callback.receiveResultgetNewProxyReq(
1296 (org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReqResponse)object);
1297
1298 } catch (org.apache.axis2.AxisFault e) {
1299 callback.receiveErrorgetNewProxyReq(e);
1300 }
1301 }
1302
1303 public void onError(java.lang.Exception error) {
1304 if (error instanceof org.apache.axis2.AxisFault) {
1305 org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
1306 org.apache.axiom.om.OMElement faultElt = f.getDetail();
1307 if (faultElt!=null){
1308 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getNewProxyReq"))){
1309
1310 try{
1311 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getNewProxyReq"));
1312 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
1313 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
1314 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
1315
1316 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getNewProxyReq"));
1317 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
1318 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
1319 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
1320 new java.lang.Class[]{messageClass});
1321 m.invoke(ex,new java.lang.Object[]{messageObject});
1322
1323 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
1324 callback.receiveErrorgetNewProxyReq((org.glite.ce.security.delegation.DelegationException_Fault)ex);
1325 return;
1326 }
1327
1328
1329 callback.receiveErrorgetNewProxyReq(new java.rmi.RemoteException(ex.getMessage(), ex));
1330 } catch(java.lang.ClassCastException e){
1331
1332 callback.receiveErrorgetNewProxyReq(f);
1333 } catch (java.lang.ClassNotFoundException e) {
1334
1335 callback.receiveErrorgetNewProxyReq(f);
1336 } catch (java.lang.NoSuchMethodException e) {
1337
1338 callback.receiveErrorgetNewProxyReq(f);
1339 } catch (java.lang.reflect.InvocationTargetException e) {
1340
1341 callback.receiveErrorgetNewProxyReq(f);
1342 } catch (java.lang.IllegalAccessException e) {
1343
1344 callback.receiveErrorgetNewProxyReq(f);
1345 } catch (java.lang.InstantiationException e) {
1346
1347 callback.receiveErrorgetNewProxyReq(f);
1348 } catch (org.apache.axis2.AxisFault e) {
1349
1350 callback.receiveErrorgetNewProxyReq(f);
1351 }
1352 } else {
1353 callback.receiveErrorgetNewProxyReq(f);
1354 }
1355 } else {
1356 callback.receiveErrorgetNewProxyReq(f);
1357 }
1358 } else {
1359 callback.receiveErrorgetNewProxyReq(error);
1360 }
1361 }
1362
1363 public void onFault(org.apache.axis2.context.MessageContext faultContext) {
1364 org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
1365 onError(fault);
1366 }
1367
1368 public void onComplete() {
1369 try {
1370 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
1371 } catch (org.apache.axis2.AxisFault axisFault) {
1372 callback.receiveErrorgetNewProxyReq(axisFault);
1373 }
1374 }
1375 });
1376
1377
1378 org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
1379 if ( _operations[3].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
1380 _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
1381 _operations[3].setMessageReceiver(
1382 _callbackReceiver);
1383 }
1384
1385
1386 _operationClient.execute(false);
1387
1388 }
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402 public org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadataResponse getServiceMetadata(
1403
1404 org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadata getServiceMetadata8)
1405
1406
1407 throws java.rmi.RemoteException
1408
1409
1410 ,org.glite.ce.security.delegation.DelegationException_Fault{
1411 org.apache.axis2.context.MessageContext _messageContext = null;
1412 try{
1413 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());
1414 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/getServiceMetadataRequest");
1415 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
1416
1417
1418
1419 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
1420
1421
1422
1423 _messageContext = new org.apache.axis2.context.MessageContext();
1424
1425
1426
1427
1428 org.apache.axiom.soap.SOAPEnvelope env = null;
1429
1430
1431 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
1432 getServiceMetadata8,
1433 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1434 "getServiceMetadata")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1435 "getServiceMetadata"));
1436
1437
1438 _serviceClient.addHeadersToEnvelope(env);
1439
1440 _messageContext.setEnvelope(env);
1441
1442
1443 _operationClient.addMessageContext(_messageContext);
1444
1445
1446 _operationClient.execute(true);
1447
1448
1449 org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
1450 org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
1451 org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
1452
1453
1454 java.lang.Object object = fromOM(
1455 _returnEnv.getBody().getFirstElement() ,
1456 org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadataResponse.class,
1457 getEnvelopeNamespaces(_returnEnv));
1458
1459
1460 return (org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadataResponse)object;
1461
1462 }catch(org.apache.axis2.AxisFault f){
1463
1464 org.apache.axiom.om.OMElement faultElt = f.getDetail();
1465 if (faultElt!=null){
1466 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getServiceMetadata"))){
1467
1468 try{
1469 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getServiceMetadata"));
1470 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
1471 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
1472 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
1473
1474 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getServiceMetadata"));
1475 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
1476 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
1477 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
1478 new java.lang.Class[]{messageClass});
1479 m.invoke(ex,new java.lang.Object[]{messageObject});
1480
1481 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
1482 throw (org.glite.ce.security.delegation.DelegationException_Fault)ex;
1483 }
1484
1485
1486 throw new java.rmi.RemoteException(ex.getMessage(), ex);
1487 }catch(java.lang.ClassCastException e){
1488
1489 throw f;
1490 } catch (java.lang.ClassNotFoundException e) {
1491
1492 throw f;
1493 }catch (java.lang.NoSuchMethodException e) {
1494
1495 throw f;
1496 } catch (java.lang.reflect.InvocationTargetException e) {
1497
1498 throw f;
1499 } catch (java.lang.IllegalAccessException e) {
1500
1501 throw f;
1502 } catch (java.lang.InstantiationException e) {
1503
1504 throw f;
1505 }
1506 }else{
1507 throw f;
1508 }
1509 }else{
1510 throw f;
1511 }
1512 } finally {
1513 if (_messageContext.getTransportOut() != null) {
1514 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
1515 }
1516 }
1517 }
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527 public void startgetServiceMetadata(
1528
1529 org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadata getServiceMetadata8,
1530
1531 final org.glite.ce.security.delegation.DelegationServiceCallbackHandler callback)
1532
1533 throws java.rmi.RemoteException{
1534
1535 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());
1536 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/getServiceMetadataRequest");
1537 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
1538
1539
1540
1541 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
1542
1543
1544
1545
1546 org.apache.axiom.soap.SOAPEnvelope env=null;
1547 final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
1548
1549
1550
1551
1552
1553 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
1554 getServiceMetadata8,
1555 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1556 "getServiceMetadata")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1557 "getServiceMetadata"));
1558
1559
1560 _serviceClient.addHeadersToEnvelope(env);
1561
1562 _messageContext.setEnvelope(env);
1563
1564
1565 _operationClient.addMessageContext(_messageContext);
1566
1567
1568
1569 _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
1570 public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
1571 try {
1572 org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
1573
1574 java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
1575 org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadataResponse.class,
1576 getEnvelopeNamespaces(resultEnv));
1577 callback.receiveResultgetServiceMetadata(
1578 (org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadataResponse)object);
1579
1580 } catch (org.apache.axis2.AxisFault e) {
1581 callback.receiveErrorgetServiceMetadata(e);
1582 }
1583 }
1584
1585 public void onError(java.lang.Exception error) {
1586 if (error instanceof org.apache.axis2.AxisFault) {
1587 org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
1588 org.apache.axiom.om.OMElement faultElt = f.getDetail();
1589 if (faultElt!=null){
1590 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getServiceMetadata"))){
1591
1592 try{
1593 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getServiceMetadata"));
1594 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
1595 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
1596 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
1597
1598 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getServiceMetadata"));
1599 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
1600 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
1601 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
1602 new java.lang.Class[]{messageClass});
1603 m.invoke(ex,new java.lang.Object[]{messageObject});
1604
1605 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
1606 callback.receiveErrorgetServiceMetadata((org.glite.ce.security.delegation.DelegationException_Fault)ex);
1607 return;
1608 }
1609
1610
1611 callback.receiveErrorgetServiceMetadata(new java.rmi.RemoteException(ex.getMessage(), ex));
1612 } catch(java.lang.ClassCastException e){
1613
1614 callback.receiveErrorgetServiceMetadata(f);
1615 } catch (java.lang.ClassNotFoundException e) {
1616
1617 callback.receiveErrorgetServiceMetadata(f);
1618 } catch (java.lang.NoSuchMethodException e) {
1619
1620 callback.receiveErrorgetServiceMetadata(f);
1621 } catch (java.lang.reflect.InvocationTargetException e) {
1622
1623 callback.receiveErrorgetServiceMetadata(f);
1624 } catch (java.lang.IllegalAccessException e) {
1625
1626 callback.receiveErrorgetServiceMetadata(f);
1627 } catch (java.lang.InstantiationException e) {
1628
1629 callback.receiveErrorgetServiceMetadata(f);
1630 } catch (org.apache.axis2.AxisFault e) {
1631
1632 callback.receiveErrorgetServiceMetadata(f);
1633 }
1634 } else {
1635 callback.receiveErrorgetServiceMetadata(f);
1636 }
1637 } else {
1638 callback.receiveErrorgetServiceMetadata(f);
1639 }
1640 } else {
1641 callback.receiveErrorgetServiceMetadata(error);
1642 }
1643 }
1644
1645 public void onFault(org.apache.axis2.context.MessageContext faultContext) {
1646 org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
1647 onError(fault);
1648 }
1649
1650 public void onComplete() {
1651 try {
1652 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
1653 } catch (org.apache.axis2.AxisFault axisFault) {
1654 callback.receiveErrorgetServiceMetadata(axisFault);
1655 }
1656 }
1657 });
1658
1659
1660 org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
1661 if ( _operations[4].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
1662 _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
1663 _operations[4].setMessageReceiver(
1664 _callbackReceiver);
1665 }
1666
1667
1668 _operationClient.execute(false);
1669
1670 }
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683 public org.glite.ce.security.delegation.DelegationServiceStub.PutProxyResponse putProxy(
1684
1685 org.glite.ce.security.delegation.DelegationServiceStub.PutProxy putProxy10)
1686
1687
1688 throws java.rmi.RemoteException
1689
1690
1691 ,org.glite.ce.security.delegation.DelegationException_Fault{
1692 org.apache.axis2.context.MessageContext _messageContext = null;
1693 try{
1694 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());
1695 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/putProxyRequest");
1696 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
1697
1698
1699
1700 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
1701
1702
1703
1704 _messageContext = new org.apache.axis2.context.MessageContext();
1705
1706
1707
1708
1709 org.apache.axiom.soap.SOAPEnvelope env = null;
1710
1711
1712 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
1713 putProxy10,
1714 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1715 "putProxy")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1716 "putProxy"));
1717
1718
1719 _serviceClient.addHeadersToEnvelope(env);
1720
1721 _messageContext.setEnvelope(env);
1722
1723
1724 _operationClient.addMessageContext(_messageContext);
1725
1726
1727 _operationClient.execute(true);
1728
1729
1730 org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
1731 org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
1732 org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
1733
1734
1735 java.lang.Object object = fromOM(
1736 _returnEnv.getBody().getFirstElement() ,
1737 org.glite.ce.security.delegation.DelegationServiceStub.PutProxyResponse.class,
1738 getEnvelopeNamespaces(_returnEnv));
1739
1740
1741 return (org.glite.ce.security.delegation.DelegationServiceStub.PutProxyResponse)object;
1742
1743 }catch(org.apache.axis2.AxisFault f){
1744
1745 org.apache.axiom.om.OMElement faultElt = f.getDetail();
1746 if (faultElt!=null){
1747 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"putProxy"))){
1748
1749 try{
1750 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"putProxy"));
1751 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
1752 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
1753 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
1754
1755 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"putProxy"));
1756 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
1757 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
1758 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
1759 new java.lang.Class[]{messageClass});
1760 m.invoke(ex,new java.lang.Object[]{messageObject});
1761
1762 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
1763 throw (org.glite.ce.security.delegation.DelegationException_Fault)ex;
1764 }
1765
1766
1767 throw new java.rmi.RemoteException(ex.getMessage(), ex);
1768 }catch(java.lang.ClassCastException e){
1769
1770 throw f;
1771 } catch (java.lang.ClassNotFoundException e) {
1772
1773 throw f;
1774 }catch (java.lang.NoSuchMethodException e) {
1775
1776 throw f;
1777 } catch (java.lang.reflect.InvocationTargetException e) {
1778
1779 throw f;
1780 } catch (java.lang.IllegalAccessException e) {
1781
1782 throw f;
1783 } catch (java.lang.InstantiationException e) {
1784
1785 throw f;
1786 }
1787 }else{
1788 throw f;
1789 }
1790 }else{
1791 throw f;
1792 }
1793 } finally {
1794 if (_messageContext.getTransportOut() != null) {
1795 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
1796 }
1797 }
1798 }
1799
1800
1801
1802
1803
1804
1805
1806
1807 public void startputProxy(
1808
1809 org.glite.ce.security.delegation.DelegationServiceStub.PutProxy putProxy10,
1810
1811 final org.glite.ce.security.delegation.DelegationServiceCallbackHandler callback)
1812
1813 throws java.rmi.RemoteException{
1814
1815 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());
1816 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/putProxyRequest");
1817 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
1818
1819
1820
1821 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
1822
1823
1824
1825
1826 org.apache.axiom.soap.SOAPEnvelope env=null;
1827 final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
1828
1829
1830
1831
1832
1833 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
1834 putProxy10,
1835 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1836 "putProxy")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1837 "putProxy"));
1838
1839
1840 _serviceClient.addHeadersToEnvelope(env);
1841
1842 _messageContext.setEnvelope(env);
1843
1844
1845 _operationClient.addMessageContext(_messageContext);
1846
1847
1848
1849 _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
1850 public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
1851 try {
1852 org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
1853
1854 java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
1855 org.glite.ce.security.delegation.DelegationServiceStub.PutProxyResponse.class,
1856 getEnvelopeNamespaces(resultEnv));
1857 callback.receiveResultputProxy(
1858 (org.glite.ce.security.delegation.DelegationServiceStub.PutProxyResponse)object);
1859
1860 } catch (org.apache.axis2.AxisFault e) {
1861 callback.receiveErrorputProxy(e);
1862 }
1863 }
1864
1865 public void onError(java.lang.Exception error) {
1866 if (error instanceof org.apache.axis2.AxisFault) {
1867 org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
1868 org.apache.axiom.om.OMElement faultElt = f.getDetail();
1869 if (faultElt!=null){
1870 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"putProxy"))){
1871
1872 try{
1873 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"putProxy"));
1874 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
1875 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
1876 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
1877
1878 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"putProxy"));
1879 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
1880 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
1881 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
1882 new java.lang.Class[]{messageClass});
1883 m.invoke(ex,new java.lang.Object[]{messageObject});
1884
1885 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
1886 callback.receiveErrorputProxy((org.glite.ce.security.delegation.DelegationException_Fault)ex);
1887 return;
1888 }
1889
1890
1891 callback.receiveErrorputProxy(new java.rmi.RemoteException(ex.getMessage(), ex));
1892 } catch(java.lang.ClassCastException e){
1893
1894 callback.receiveErrorputProxy(f);
1895 } catch (java.lang.ClassNotFoundException e) {
1896
1897 callback.receiveErrorputProxy(f);
1898 } catch (java.lang.NoSuchMethodException e) {
1899
1900 callback.receiveErrorputProxy(f);
1901 } catch (java.lang.reflect.InvocationTargetException e) {
1902
1903 callback.receiveErrorputProxy(f);
1904 } catch (java.lang.IllegalAccessException e) {
1905
1906 callback.receiveErrorputProxy(f);
1907 } catch (java.lang.InstantiationException e) {
1908
1909 callback.receiveErrorputProxy(f);
1910 } catch (org.apache.axis2.AxisFault e) {
1911
1912 callback.receiveErrorputProxy(f);
1913 }
1914 } else {
1915 callback.receiveErrorputProxy(f);
1916 }
1917 } else {
1918 callback.receiveErrorputProxy(f);
1919 }
1920 } else {
1921 callback.receiveErrorputProxy(error);
1922 }
1923 }
1924
1925 public void onFault(org.apache.axis2.context.MessageContext faultContext) {
1926 org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
1927 onError(fault);
1928 }
1929
1930 public void onComplete() {
1931 try {
1932 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
1933 } catch (org.apache.axis2.AxisFault axisFault) {
1934 callback.receiveErrorputProxy(axisFault);
1935 }
1936 }
1937 });
1938
1939
1940 org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
1941 if ( _operations[5].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
1942 _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
1943 _operations[5].setMessageReceiver(
1944 _callbackReceiver);
1945 }
1946
1947
1948 _operationClient.execute(false);
1949
1950 }
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963 public org.glite.ce.security.delegation.DelegationServiceStub.GetVersionResponse getVersion(
1964
1965 org.glite.ce.security.delegation.DelegationServiceStub.GetVersion getVersion12)
1966
1967
1968 throws java.rmi.RemoteException
1969
1970
1971 ,org.glite.ce.security.delegation.DelegationException_Fault{
1972 org.apache.axis2.context.MessageContext _messageContext = null;
1973 try{
1974 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());
1975 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/getVersionRequest");
1976 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
1977
1978
1979
1980 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
1981
1982
1983
1984 _messageContext = new org.apache.axis2.context.MessageContext();
1985
1986
1987
1988
1989 org.apache.axiom.soap.SOAPEnvelope env = null;
1990
1991
1992 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
1993 getVersion12,
1994 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1995 "getVersion")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
1996 "getVersion"));
1997
1998
1999 _serviceClient.addHeadersToEnvelope(env);
2000
2001 _messageContext.setEnvelope(env);
2002
2003
2004 _operationClient.addMessageContext(_messageContext);
2005
2006
2007 _operationClient.execute(true);
2008
2009
2010 org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
2011 org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
2012 org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
2013
2014
2015 java.lang.Object object = fromOM(
2016 _returnEnv.getBody().getFirstElement() ,
2017 org.glite.ce.security.delegation.DelegationServiceStub.GetVersionResponse.class,
2018 getEnvelopeNamespaces(_returnEnv));
2019
2020
2021 return (org.glite.ce.security.delegation.DelegationServiceStub.GetVersionResponse)object;
2022
2023 }catch(org.apache.axis2.AxisFault f){
2024
2025 org.apache.axiom.om.OMElement faultElt = f.getDetail();
2026 if (faultElt!=null){
2027 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getVersion"))){
2028
2029 try{
2030 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getVersion"));
2031 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
2032 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
2033 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
2034
2035 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getVersion"));
2036 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
2037 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
2038 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
2039 new java.lang.Class[]{messageClass});
2040 m.invoke(ex,new java.lang.Object[]{messageObject});
2041
2042 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
2043 throw (org.glite.ce.security.delegation.DelegationException_Fault)ex;
2044 }
2045
2046
2047 throw new java.rmi.RemoteException(ex.getMessage(), ex);
2048 }catch(java.lang.ClassCastException e){
2049
2050 throw f;
2051 } catch (java.lang.ClassNotFoundException e) {
2052
2053 throw f;
2054 }catch (java.lang.NoSuchMethodException e) {
2055
2056 throw f;
2057 } catch (java.lang.reflect.InvocationTargetException e) {
2058
2059 throw f;
2060 } catch (java.lang.IllegalAccessException e) {
2061
2062 throw f;
2063 } catch (java.lang.InstantiationException e) {
2064
2065 throw f;
2066 }
2067 }else{
2068 throw f;
2069 }
2070 }else{
2071 throw f;
2072 }
2073 } finally {
2074 if (_messageContext.getTransportOut() != null) {
2075 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
2076 }
2077 }
2078 }
2079
2080
2081
2082
2083
2084
2085
2086
2087 public void startgetVersion(
2088
2089 org.glite.ce.security.delegation.DelegationServiceStub.GetVersion getVersion12,
2090
2091 final org.glite.ce.security.delegation.DelegationServiceCallbackHandler callback)
2092
2093 throws java.rmi.RemoteException{
2094
2095 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());
2096 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/getVersionRequest");
2097 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
2098
2099
2100
2101 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
2102
2103
2104
2105
2106 org.apache.axiom.soap.SOAPEnvelope env=null;
2107 final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
2108
2109
2110
2111
2112
2113 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
2114 getVersion12,
2115 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
2116 "getVersion")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
2117 "getVersion"));
2118
2119
2120 _serviceClient.addHeadersToEnvelope(env);
2121
2122 _messageContext.setEnvelope(env);
2123
2124
2125 _operationClient.addMessageContext(_messageContext);
2126
2127
2128
2129 _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
2130 public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
2131 try {
2132 org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
2133
2134 java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
2135 org.glite.ce.security.delegation.DelegationServiceStub.GetVersionResponse.class,
2136 getEnvelopeNamespaces(resultEnv));
2137 callback.receiveResultgetVersion(
2138 (org.glite.ce.security.delegation.DelegationServiceStub.GetVersionResponse)object);
2139
2140 } catch (org.apache.axis2.AxisFault e) {
2141 callback.receiveErrorgetVersion(e);
2142 }
2143 }
2144
2145 public void onError(java.lang.Exception error) {
2146 if (error instanceof org.apache.axis2.AxisFault) {
2147 org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
2148 org.apache.axiom.om.OMElement faultElt = f.getDetail();
2149 if (faultElt!=null){
2150 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getVersion"))){
2151
2152 try{
2153 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getVersion"));
2154 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
2155 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
2156 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
2157
2158 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getVersion"));
2159 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
2160 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
2161 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
2162 new java.lang.Class[]{messageClass});
2163 m.invoke(ex,new java.lang.Object[]{messageObject});
2164
2165 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
2166 callback.receiveErrorgetVersion((org.glite.ce.security.delegation.DelegationException_Fault)ex);
2167 return;
2168 }
2169
2170
2171 callback.receiveErrorgetVersion(new java.rmi.RemoteException(ex.getMessage(), ex));
2172 } catch(java.lang.ClassCastException e){
2173
2174 callback.receiveErrorgetVersion(f);
2175 } catch (java.lang.ClassNotFoundException e) {
2176
2177 callback.receiveErrorgetVersion(f);
2178 } catch (java.lang.NoSuchMethodException e) {
2179
2180 callback.receiveErrorgetVersion(f);
2181 } catch (java.lang.reflect.InvocationTargetException e) {
2182
2183 callback.receiveErrorgetVersion(f);
2184 } catch (java.lang.IllegalAccessException e) {
2185
2186 callback.receiveErrorgetVersion(f);
2187 } catch (java.lang.InstantiationException e) {
2188
2189 callback.receiveErrorgetVersion(f);
2190 } catch (org.apache.axis2.AxisFault e) {
2191
2192 callback.receiveErrorgetVersion(f);
2193 }
2194 } else {
2195 callback.receiveErrorgetVersion(f);
2196 }
2197 } else {
2198 callback.receiveErrorgetVersion(f);
2199 }
2200 } else {
2201 callback.receiveErrorgetVersion(error);
2202 }
2203 }
2204
2205 public void onFault(org.apache.axis2.context.MessageContext faultContext) {
2206 org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
2207 onError(fault);
2208 }
2209
2210 public void onComplete() {
2211 try {
2212 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
2213 } catch (org.apache.axis2.AxisFault axisFault) {
2214 callback.receiveErrorgetVersion(axisFault);
2215 }
2216 }
2217 });
2218
2219
2220 org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
2221 if ( _operations[6].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
2222 _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
2223 _operations[6].setMessageReceiver(
2224 _callbackReceiver);
2225 }
2226
2227
2228 _operationClient.execute(false);
2229
2230 }
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247 public org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTimeResponse getTerminationTime(
2248
2249 org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTime getTerminationTime14)
2250
2251
2252 throws java.rmi.RemoteException
2253
2254
2255 ,org.glite.ce.security.delegation.DelegationException_Fault{
2256 org.apache.axis2.context.MessageContext _messageContext = null;
2257 try{
2258 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());
2259 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/getTerminationTimeRequest");
2260 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
2261
2262
2263
2264 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
2265
2266
2267
2268 _messageContext = new org.apache.axis2.context.MessageContext();
2269
2270
2271
2272
2273 org.apache.axiom.soap.SOAPEnvelope env = null;
2274
2275
2276 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
2277 getTerminationTime14,
2278 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
2279 "getTerminationTime")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
2280 "getTerminationTime"));
2281
2282
2283 _serviceClient.addHeadersToEnvelope(env);
2284
2285 _messageContext.setEnvelope(env);
2286
2287
2288 _operationClient.addMessageContext(_messageContext);
2289
2290
2291 _operationClient.execute(true);
2292
2293
2294 org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
2295 org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
2296 org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
2297
2298
2299 java.lang.Object object = fromOM(
2300 _returnEnv.getBody().getFirstElement() ,
2301 org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTimeResponse.class,
2302 getEnvelopeNamespaces(_returnEnv));
2303
2304
2305 return (org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTimeResponse)object;
2306
2307 }catch(org.apache.axis2.AxisFault f){
2308
2309 org.apache.axiom.om.OMElement faultElt = f.getDetail();
2310 if (faultElt!=null){
2311 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getTerminationTime"))){
2312
2313 try{
2314 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getTerminationTime"));
2315 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
2316 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
2317 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
2318
2319 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getTerminationTime"));
2320 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
2321 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
2322 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
2323 new java.lang.Class[]{messageClass});
2324 m.invoke(ex,new java.lang.Object[]{messageObject});
2325
2326 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
2327 throw (org.glite.ce.security.delegation.DelegationException_Fault)ex;
2328 }
2329
2330
2331 throw new java.rmi.RemoteException(ex.getMessage(), ex);
2332 }catch(java.lang.ClassCastException e){
2333
2334 throw f;
2335 } catch (java.lang.ClassNotFoundException e) {
2336
2337 throw f;
2338 }catch (java.lang.NoSuchMethodException e) {
2339
2340 throw f;
2341 } catch (java.lang.reflect.InvocationTargetException e) {
2342
2343 throw f;
2344 } catch (java.lang.IllegalAccessException e) {
2345
2346 throw f;
2347 } catch (java.lang.InstantiationException e) {
2348
2349 throw f;
2350 }
2351 }else{
2352 throw f;
2353 }
2354 }else{
2355 throw f;
2356 }
2357 } finally {
2358 if (_messageContext.getTransportOut() != null) {
2359 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
2360 }
2361 }
2362 }
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373 public void startgetTerminationTime(
2374
2375 org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTime getTerminationTime14,
2376
2377 final org.glite.ce.security.delegation.DelegationServiceCallbackHandler callback)
2378
2379 throws java.rmi.RemoteException{
2380
2381 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());
2382 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/getTerminationTimeRequest");
2383 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
2384
2385
2386
2387 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
2388
2389
2390
2391
2392 org.apache.axiom.soap.SOAPEnvelope env=null;
2393 final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
2394
2395
2396
2397
2398
2399 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
2400 getTerminationTime14,
2401 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
2402 "getTerminationTime")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
2403 "getTerminationTime"));
2404
2405
2406 _serviceClient.addHeadersToEnvelope(env);
2407
2408 _messageContext.setEnvelope(env);
2409
2410
2411 _operationClient.addMessageContext(_messageContext);
2412
2413
2414
2415 _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
2416 public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
2417 try {
2418 org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
2419
2420 java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
2421 org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTimeResponse.class,
2422 getEnvelopeNamespaces(resultEnv));
2423 callback.receiveResultgetTerminationTime(
2424 (org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTimeResponse)object);
2425
2426 } catch (org.apache.axis2.AxisFault e) {
2427 callback.receiveErrorgetTerminationTime(e);
2428 }
2429 }
2430
2431 public void onError(java.lang.Exception error) {
2432 if (error instanceof org.apache.axis2.AxisFault) {
2433 org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
2434 org.apache.axiom.om.OMElement faultElt = f.getDetail();
2435 if (faultElt!=null){
2436 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getTerminationTime"))){
2437
2438 try{
2439 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getTerminationTime"));
2440 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
2441 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
2442 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
2443
2444 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getTerminationTime"));
2445 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
2446 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
2447 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
2448 new java.lang.Class[]{messageClass});
2449 m.invoke(ex,new java.lang.Object[]{messageObject});
2450
2451 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
2452 callback.receiveErrorgetTerminationTime((org.glite.ce.security.delegation.DelegationException_Fault)ex);
2453 return;
2454 }
2455
2456
2457 callback.receiveErrorgetTerminationTime(new java.rmi.RemoteException(ex.getMessage(), ex));
2458 } catch(java.lang.ClassCastException e){
2459
2460 callback.receiveErrorgetTerminationTime(f);
2461 } catch (java.lang.ClassNotFoundException e) {
2462
2463 callback.receiveErrorgetTerminationTime(f);
2464 } catch (java.lang.NoSuchMethodException e) {
2465
2466 callback.receiveErrorgetTerminationTime(f);
2467 } catch (java.lang.reflect.InvocationTargetException e) {
2468
2469 callback.receiveErrorgetTerminationTime(f);
2470 } catch (java.lang.IllegalAccessException e) {
2471
2472 callback.receiveErrorgetTerminationTime(f);
2473 } catch (java.lang.InstantiationException e) {
2474
2475 callback.receiveErrorgetTerminationTime(f);
2476 } catch (org.apache.axis2.AxisFault e) {
2477
2478 callback.receiveErrorgetTerminationTime(f);
2479 }
2480 } else {
2481 callback.receiveErrorgetTerminationTime(f);
2482 }
2483 } else {
2484 callback.receiveErrorgetTerminationTime(f);
2485 }
2486 } else {
2487 callback.receiveErrorgetTerminationTime(error);
2488 }
2489 }
2490
2491 public void onFault(org.apache.axis2.context.MessageContext faultContext) {
2492 org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
2493 onError(fault);
2494 }
2495
2496 public void onComplete() {
2497 try {
2498 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
2499 } catch (org.apache.axis2.AxisFault axisFault) {
2500 callback.receiveErrorgetTerminationTime(axisFault);
2501 }
2502 }
2503 });
2504
2505
2506 org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
2507 if ( _operations[7].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
2508 _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
2509 _operations[7].setMessageReceiver(
2510 _callbackReceiver);
2511 }
2512
2513
2514 _operationClient.execute(false);
2515
2516 }
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530 public org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersionResponse getInterfaceVersion(
2531
2532 org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersion getInterfaceVersion16)
2533
2534
2535 throws java.rmi.RemoteException
2536
2537
2538 ,org.glite.ce.security.delegation.DelegationException_Fault{
2539 org.apache.axis2.context.MessageContext _messageContext = null;
2540 try{
2541 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());
2542 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/getInterfaceVersionRequest");
2543 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
2544
2545
2546
2547 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
2548
2549
2550
2551 _messageContext = new org.apache.axis2.context.MessageContext();
2552
2553
2554
2555
2556 org.apache.axiom.soap.SOAPEnvelope env = null;
2557
2558
2559 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
2560 getInterfaceVersion16,
2561 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
2562 "getInterfaceVersion")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
2563 "getInterfaceVersion"));
2564
2565
2566 _serviceClient.addHeadersToEnvelope(env);
2567
2568 _messageContext.setEnvelope(env);
2569
2570
2571 _operationClient.addMessageContext(_messageContext);
2572
2573
2574 _operationClient.execute(true);
2575
2576
2577 org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(
2578 org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
2579 org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();
2580
2581
2582 java.lang.Object object = fromOM(
2583 _returnEnv.getBody().getFirstElement() ,
2584 org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersionResponse.class,
2585 getEnvelopeNamespaces(_returnEnv));
2586
2587
2588 return (org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersionResponse)object;
2589
2590 }catch(org.apache.axis2.AxisFault f){
2591
2592 org.apache.axiom.om.OMElement faultElt = f.getDetail();
2593 if (faultElt!=null){
2594 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getInterfaceVersion"))){
2595
2596 try{
2597 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getInterfaceVersion"));
2598 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
2599 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
2600 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
2601
2602 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getInterfaceVersion"));
2603 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
2604 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
2605 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
2606 new java.lang.Class[]{messageClass});
2607 m.invoke(ex,new java.lang.Object[]{messageObject});
2608
2609 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
2610 throw (org.glite.ce.security.delegation.DelegationException_Fault)ex;
2611 }
2612
2613
2614 throw new java.rmi.RemoteException(ex.getMessage(), ex);
2615 }catch(java.lang.ClassCastException e){
2616
2617 throw f;
2618 } catch (java.lang.ClassNotFoundException e) {
2619
2620 throw f;
2621 }catch (java.lang.NoSuchMethodException e) {
2622
2623 throw f;
2624 } catch (java.lang.reflect.InvocationTargetException e) {
2625
2626 throw f;
2627 } catch (java.lang.IllegalAccessException e) {
2628
2629 throw f;
2630 } catch (java.lang.InstantiationException e) {
2631
2632 throw f;
2633 }
2634 }else{
2635 throw f;
2636 }
2637 }else{
2638 throw f;
2639 }
2640 } finally {
2641 if (_messageContext.getTransportOut() != null) {
2642 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
2643 }
2644 }
2645 }
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655 public void startgetInterfaceVersion(
2656
2657 org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersion getInterfaceVersion16,
2658
2659 final org.glite.ce.security.delegation.DelegationServiceCallbackHandler callback)
2660
2661 throws java.rmi.RemoteException{
2662
2663 org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());
2664 _operationClient.getOptions().setAction("http://www.gridsite.org/namespaces/delegation-2/Delegation/getInterfaceVersionRequest");
2665 _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);
2666
2667
2668
2669 addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,"&");
2670
2671
2672
2673
2674 org.apache.axiom.soap.SOAPEnvelope env=null;
2675 final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();
2676
2677
2678
2679
2680
2681 env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),
2682 getInterfaceVersion16,
2683 optimizeContent(new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
2684 "getInterfaceVersion")), new javax.xml.namespace.QName("http://www.gridsite.org/namespaces/delegation-2",
2685 "getInterfaceVersion"));
2686
2687
2688 _serviceClient.addHeadersToEnvelope(env);
2689
2690 _messageContext.setEnvelope(env);
2691
2692
2693 _operationClient.addMessageContext(_messageContext);
2694
2695
2696
2697 _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
2698 public void onMessage(org.apache.axis2.context.MessageContext resultContext) {
2699 try {
2700 org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();
2701
2702 java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),
2703 org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersionResponse.class,
2704 getEnvelopeNamespaces(resultEnv));
2705 callback.receiveResultgetInterfaceVersion(
2706 (org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersionResponse)object);
2707
2708 } catch (org.apache.axis2.AxisFault e) {
2709 callback.receiveErrorgetInterfaceVersion(e);
2710 }
2711 }
2712
2713 public void onError(java.lang.Exception error) {
2714 if (error instanceof org.apache.axis2.AxisFault) {
2715 org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;
2716 org.apache.axiom.om.OMElement faultElt = f.getDetail();
2717 if (faultElt!=null){
2718 if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getInterfaceVersion"))){
2719
2720 try{
2721 java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getInterfaceVersion"));
2722 java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
2723 java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);
2724 java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());
2725
2726 java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),"getInterfaceVersion"));
2727 java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
2728 java.lang.Object messageObject = fromOM(faultElt,messageClass,null);
2729 java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
2730 new java.lang.Class[]{messageClass});
2731 m.invoke(ex,new java.lang.Object[]{messageObject});
2732
2733 if (ex instanceof org.glite.ce.security.delegation.DelegationException_Fault){
2734 callback.receiveErrorgetInterfaceVersion((org.glite.ce.security.delegation.DelegationException_Fault)ex);
2735 return;
2736 }
2737
2738
2739 callback.receiveErrorgetInterfaceVersion(new java.rmi.RemoteException(ex.getMessage(), ex));
2740 } catch(java.lang.ClassCastException e){
2741
2742 callback.receiveErrorgetInterfaceVersion(f);
2743 } catch (java.lang.ClassNotFoundException e) {
2744
2745 callback.receiveErrorgetInterfaceVersion(f);
2746 } catch (java.lang.NoSuchMethodException e) {
2747
2748 callback.receiveErrorgetInterfaceVersion(f);
2749 } catch (java.lang.reflect.InvocationTargetException e) {
2750
2751 callback.receiveErrorgetInterfaceVersion(f);
2752 } catch (java.lang.IllegalAccessException e) {
2753
2754 callback.receiveErrorgetInterfaceVersion(f);
2755 } catch (java.lang.InstantiationException e) {
2756
2757 callback.receiveErrorgetInterfaceVersion(f);
2758 } catch (org.apache.axis2.AxisFault e) {
2759
2760 callback.receiveErrorgetInterfaceVersion(f);
2761 }
2762 } else {
2763 callback.receiveErrorgetInterfaceVersion(f);
2764 }
2765 } else {
2766 callback.receiveErrorgetInterfaceVersion(f);
2767 }
2768 } else {
2769 callback.receiveErrorgetInterfaceVersion(error);
2770 }
2771 }
2772
2773 public void onFault(org.apache.axis2.context.MessageContext faultContext) {
2774 org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);
2775 onError(fault);
2776 }
2777
2778 public void onComplete() {
2779 try {
2780 _messageContext.getTransportOut().getSender().cleanup(_messageContext);
2781 } catch (org.apache.axis2.AxisFault axisFault) {
2782 callback.receiveErrorgetInterfaceVersion(axisFault);
2783 }
2784 }
2785 });
2786
2787
2788 org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;
2789 if ( _operations[8].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {
2790 _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();
2791 _operations[8].setMessageReceiver(
2792 _callbackReceiver);
2793 }
2794
2795
2796 _operationClient.execute(false);
2797
2798 }
2799
2800
2801
2802
2803
2804
2805 private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){
2806 java.util.Map returnMap = new java.util.HashMap();
2807 java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
2808 while (namespaceIterator.hasNext()) {
2809 org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();
2810 returnMap.put(ns.getPrefix(),ns.getNamespaceURI());
2811 }
2812 return returnMap;
2813 }
2814
2815
2816
2817 private javax.xml.namespace.QName[] opNameArray = null;
2818 private boolean optimizeContent(javax.xml.namespace.QName opName) {
2819
2820
2821 if (opNameArray == null) {
2822 return false;
2823 }
2824 for (int i = 0; i < opNameArray.length; i++) {
2825 if (opName.equals(opNameArray[i])) {
2826 return true;
2827 }
2828 }
2829 return false;
2830 }
2831
2832 public static class GetTerminationTime
2833 implements org.apache.axis2.databinding.ADBBean{
2834
2835 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
2836 "http://www.gridsite.org/namespaces/delegation-2",
2837 "getTerminationTime",
2838 "ns2");
2839
2840
2841
2842
2843
2844
2845
2846
2847 protected java.lang.String localDelegationID ;
2848
2849
2850
2851
2852
2853
2854 public java.lang.String getDelegationID(){
2855 return localDelegationID;
2856 }
2857
2858
2859
2860
2861
2862
2863
2864 public void setDelegationID(java.lang.String param){
2865
2866 this.localDelegationID=param;
2867
2868
2869 }
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880 public org.apache.axiom.om.OMElement getOMElement (
2881 final javax.xml.namespace.QName parentQName,
2882 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
2883
2884
2885
2886 org.apache.axiom.om.OMDataSource dataSource =
2887 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
2888 return factory.createOMElement(dataSource,MY_QNAME);
2889
2890 }
2891
2892 public void serialize(final javax.xml.namespace.QName parentQName,
2893 javax.xml.stream.XMLStreamWriter xmlWriter)
2894 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
2895 serialize(parentQName,xmlWriter,false);
2896 }
2897
2898 public void serialize(final javax.xml.namespace.QName parentQName,
2899 javax.xml.stream.XMLStreamWriter xmlWriter,
2900 boolean serializeType)
2901 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
2902
2903
2904
2905
2906 java.lang.String prefix = null;
2907 java.lang.String namespace = null;
2908
2909
2910 prefix = parentQName.getPrefix();
2911 namespace = parentQName.getNamespaceURI();
2912 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
2913
2914 if (serializeType){
2915
2916
2917 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
2918 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
2919 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
2920 namespacePrefix+":getTerminationTime",
2921 xmlWriter);
2922 } else {
2923 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
2924 "getTerminationTime",
2925 xmlWriter);
2926 }
2927
2928
2929 }
2930
2931 namespace = "";
2932 writeStartElement(null, namespace, "delegationID", xmlWriter);
2933
2934
2935 if (localDelegationID==null){
2936
2937
2938 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
2939
2940 }else{
2941
2942
2943 xmlWriter.writeCharacters(localDelegationID);
2944
2945 }
2946
2947 xmlWriter.writeEndElement();
2948
2949 xmlWriter.writeEndElement();
2950
2951
2952 }
2953
2954 private static java.lang.String generatePrefix(java.lang.String namespace) {
2955 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
2956 return "ns2";
2957 }
2958 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
2959 }
2960
2961
2962
2963
2964 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
2965 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
2966 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
2967 if (writerPrefix != null) {
2968 xmlWriter.writeStartElement(namespace, localPart);
2969 } else {
2970 if (namespace.length() == 0) {
2971 prefix = "";
2972 } else if (prefix == null) {
2973 prefix = generatePrefix(namespace);
2974 }
2975
2976 xmlWriter.writeStartElement(prefix, localPart, namespace);
2977 xmlWriter.writeNamespace(prefix, namespace);
2978 xmlWriter.setPrefix(prefix, namespace);
2979 }
2980 }
2981
2982
2983
2984
2985 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
2986 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
2987 if (xmlWriter.getPrefix(namespace) == null) {
2988 xmlWriter.writeNamespace(prefix, namespace);
2989 xmlWriter.setPrefix(prefix, namespace);
2990 }
2991 xmlWriter.writeAttribute(namespace,attName,attValue);
2992 }
2993
2994
2995
2996
2997 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
2998 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
2999 if (namespace.equals("")) {
3000 xmlWriter.writeAttribute(attName,attValue);
3001 } else {
3002 registerPrefix(xmlWriter, namespace);
3003 xmlWriter.writeAttribute(namespace,attName,attValue);
3004 }
3005 }
3006
3007
3008
3009
3010
3011 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
3012 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
3013
3014 java.lang.String attributeNamespace = qname.getNamespaceURI();
3015 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
3016 if (attributePrefix == null) {
3017 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
3018 }
3019 java.lang.String attributeValue;
3020 if (attributePrefix.trim().length() > 0) {
3021 attributeValue = attributePrefix + ":" + qname.getLocalPart();
3022 } else {
3023 attributeValue = qname.getLocalPart();
3024 }
3025
3026 if (namespace.equals("")) {
3027 xmlWriter.writeAttribute(attName, attributeValue);
3028 } else {
3029 registerPrefix(xmlWriter, namespace);
3030 xmlWriter.writeAttribute(namespace, attName, attributeValue);
3031 }
3032 }
3033
3034
3035
3036
3037 private void writeQName(javax.xml.namespace.QName qname,
3038 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
3039 java.lang.String namespaceURI = qname.getNamespaceURI();
3040 if (namespaceURI != null) {
3041 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
3042 if (prefix == null) {
3043 prefix = generatePrefix(namespaceURI);
3044 xmlWriter.writeNamespace(prefix, namespaceURI);
3045 xmlWriter.setPrefix(prefix,namespaceURI);
3046 }
3047
3048 if (prefix.trim().length() > 0){
3049 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
3050 } else {
3051
3052 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
3053 }
3054
3055 } else {
3056 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
3057 }
3058 }
3059
3060 private void writeQNames(javax.xml.namespace.QName[] qnames,
3061 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
3062
3063 if (qnames != null) {
3064
3065
3066 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
3067 java.lang.String namespaceURI = null;
3068 java.lang.String prefix = null;
3069
3070 for (int i = 0; i < qnames.length; i++) {
3071 if (i > 0) {
3072 stringToWrite.append(" ");
3073 }
3074 namespaceURI = qnames[i].getNamespaceURI();
3075 if (namespaceURI != null) {
3076 prefix = xmlWriter.getPrefix(namespaceURI);
3077 if ((prefix == null) || (prefix.length() == 0)) {
3078 prefix = generatePrefix(namespaceURI);
3079 xmlWriter.writeNamespace(prefix, namespaceURI);
3080 xmlWriter.setPrefix(prefix,namespaceURI);
3081 }
3082
3083 if (prefix.trim().length() > 0){
3084 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
3085 } else {
3086 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
3087 }
3088 } else {
3089 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
3090 }
3091 }
3092 xmlWriter.writeCharacters(stringToWrite.toString());
3093 }
3094
3095 }
3096
3097
3098
3099
3100
3101 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
3102 java.lang.String prefix = xmlWriter.getPrefix(namespace);
3103 if (prefix == null) {
3104 prefix = generatePrefix(namespace);
3105 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
3106 while (true) {
3107 java.lang.String uri = nsContext.getNamespaceURI(prefix);
3108 if (uri == null || uri.length() == 0) {
3109 break;
3110 }
3111 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
3112 }
3113 xmlWriter.writeNamespace(prefix, namespace);
3114 xmlWriter.setPrefix(prefix, namespace);
3115 }
3116 return prefix;
3117 }
3118
3119
3120
3121
3122
3123
3124
3125 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
3126 throws org.apache.axis2.databinding.ADBException{
3127
3128
3129
3130 java.util.ArrayList elementList = new java.util.ArrayList();
3131 java.util.ArrayList attribList = new java.util.ArrayList();
3132
3133
3134 elementList.add(new javax.xml.namespace.QName("",
3135 "delegationID"));
3136
3137 elementList.add(localDelegationID==null?null:
3138 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDelegationID));
3139
3140
3141 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
3142
3143
3144
3145 }
3146
3147
3148
3149
3150
3151
3152 public static class Factory{
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164 public static GetTerminationTime parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
3165 GetTerminationTime object =
3166 new GetTerminationTime();
3167
3168 int event;
3169 java.lang.String nillableValue = null;
3170 java.lang.String prefix ="";
3171 java.lang.String namespaceuri ="";
3172 try {
3173
3174 while (!reader.isStartElement() && !reader.isEndElement())
3175 reader.next();
3176
3177
3178 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
3179 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
3180 "type");
3181 if (fullTypeName!=null){
3182 java.lang.String nsPrefix = null;
3183 if (fullTypeName.indexOf(":") > -1){
3184 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
3185 }
3186 nsPrefix = nsPrefix==null?"":nsPrefix;
3187
3188 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
3189
3190 if (!"getTerminationTime".equals(type)){
3191
3192 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
3193 return (GetTerminationTime)ExtensionMapper.getTypeObject(
3194 nsUri,type,reader);
3195 }
3196
3197
3198 }
3199
3200
3201 }
3202
3203
3204
3205
3206
3207
3208 java.util.Vector handledAttributes = new java.util.Vector();
3209
3210
3211
3212
3213 reader.next();
3214
3215
3216 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
3217
3218 if (reader.isStartElement() && new javax.xml.namespace.QName("","delegationID").equals(reader.getName())){
3219
3220 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
3221 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
3222
3223
3224 java.lang.String content = reader.getElementText();
3225
3226 object.setDelegationID(
3227 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
3228
3229 } else {
3230
3231
3232 reader.getElementText();
3233 }
3234
3235 reader.next();
3236
3237 }
3238
3239 else{
3240
3241 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
3242 }
3243
3244 while (!reader.isStartElement() && !reader.isEndElement())
3245 reader.next();
3246
3247 if (reader.isStartElement())
3248
3249 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
3250
3251
3252
3253
3254 } catch (javax.xml.stream.XMLStreamException e) {
3255 throw new java.lang.Exception(e);
3256 }
3257
3258 return object;
3259 }
3260
3261 }
3262
3263
3264
3265 }
3266
3267
3268 public static class DestroyResponse
3269 implements org.apache.axis2.databinding.ADBBean{
3270
3271 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
3272 "http://www.gridsite.org/namespaces/delegation-2",
3273 "destroyResponse",
3274 "ns2");
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286 public org.apache.axiom.om.OMElement getOMElement (
3287 final javax.xml.namespace.QName parentQName,
3288 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
3289
3290
3291
3292 org.apache.axiom.om.OMDataSource dataSource =
3293 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
3294 return factory.createOMElement(dataSource,MY_QNAME);
3295
3296 }
3297
3298 public void serialize(final javax.xml.namespace.QName parentQName,
3299 javax.xml.stream.XMLStreamWriter xmlWriter)
3300 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
3301 serialize(parentQName,xmlWriter,false);
3302 }
3303
3304 public void serialize(final javax.xml.namespace.QName parentQName,
3305 javax.xml.stream.XMLStreamWriter xmlWriter,
3306 boolean serializeType)
3307 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
3308
3309
3310
3311
3312 java.lang.String prefix = null;
3313 java.lang.String namespace = null;
3314
3315
3316 prefix = parentQName.getPrefix();
3317 namespace = parentQName.getNamespaceURI();
3318 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
3319
3320 if (serializeType){
3321
3322
3323 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
3324 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
3325 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
3326 namespacePrefix+":destroyResponse",
3327 xmlWriter);
3328 } else {
3329 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
3330 "destroyResponse",
3331 xmlWriter);
3332 }
3333
3334
3335 }
3336
3337 xmlWriter.writeEndElement();
3338
3339
3340 }
3341
3342 private static java.lang.String generatePrefix(java.lang.String namespace) {
3343 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
3344 return "ns2";
3345 }
3346 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
3347 }
3348
3349
3350
3351
3352 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
3353 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
3354 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
3355 if (writerPrefix != null) {
3356 xmlWriter.writeStartElement(namespace, localPart);
3357 } else {
3358 if (namespace.length() == 0) {
3359 prefix = "";
3360 } else if (prefix == null) {
3361 prefix = generatePrefix(namespace);
3362 }
3363
3364 xmlWriter.writeStartElement(prefix, localPart, namespace);
3365 xmlWriter.writeNamespace(prefix, namespace);
3366 xmlWriter.setPrefix(prefix, namespace);
3367 }
3368 }
3369
3370
3371
3372
3373 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
3374 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
3375 if (xmlWriter.getPrefix(namespace) == null) {
3376 xmlWriter.writeNamespace(prefix, namespace);
3377 xmlWriter.setPrefix(prefix, namespace);
3378 }
3379 xmlWriter.writeAttribute(namespace,attName,attValue);
3380 }
3381
3382
3383
3384
3385 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
3386 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
3387 if (namespace.equals("")) {
3388 xmlWriter.writeAttribute(attName,attValue);
3389 } else {
3390 registerPrefix(xmlWriter, namespace);
3391 xmlWriter.writeAttribute(namespace,attName,attValue);
3392 }
3393 }
3394
3395
3396
3397
3398
3399 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
3400 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
3401
3402 java.lang.String attributeNamespace = qname.getNamespaceURI();
3403 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
3404 if (attributePrefix == null) {
3405 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
3406 }
3407 java.lang.String attributeValue;
3408 if (attributePrefix.trim().length() > 0) {
3409 attributeValue = attributePrefix + ":" + qname.getLocalPart();
3410 } else {
3411 attributeValue = qname.getLocalPart();
3412 }
3413
3414 if (namespace.equals("")) {
3415 xmlWriter.writeAttribute(attName, attributeValue);
3416 } else {
3417 registerPrefix(xmlWriter, namespace);
3418 xmlWriter.writeAttribute(namespace, attName, attributeValue);
3419 }
3420 }
3421
3422
3423
3424
3425 private void writeQName(javax.xml.namespace.QName qname,
3426 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
3427 java.lang.String namespaceURI = qname.getNamespaceURI();
3428 if (namespaceURI != null) {
3429 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
3430 if (prefix == null) {
3431 prefix = generatePrefix(namespaceURI);
3432 xmlWriter.writeNamespace(prefix, namespaceURI);
3433 xmlWriter.setPrefix(prefix,namespaceURI);
3434 }
3435
3436 if (prefix.trim().length() > 0){
3437 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
3438 } else {
3439
3440 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
3441 }
3442
3443 } else {
3444 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
3445 }
3446 }
3447
3448 private void writeQNames(javax.xml.namespace.QName[] qnames,
3449 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
3450
3451 if (qnames != null) {
3452
3453
3454 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
3455 java.lang.String namespaceURI = null;
3456 java.lang.String prefix = null;
3457
3458 for (int i = 0; i < qnames.length; i++) {
3459 if (i > 0) {
3460 stringToWrite.append(" ");
3461 }
3462 namespaceURI = qnames[i].getNamespaceURI();
3463 if (namespaceURI != null) {
3464 prefix = xmlWriter.getPrefix(namespaceURI);
3465 if ((prefix == null) || (prefix.length() == 0)) {
3466 prefix = generatePrefix(namespaceURI);
3467 xmlWriter.writeNamespace(prefix, namespaceURI);
3468 xmlWriter.setPrefix(prefix,namespaceURI);
3469 }
3470
3471 if (prefix.trim().length() > 0){
3472 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
3473 } else {
3474 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
3475 }
3476 } else {
3477 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
3478 }
3479 }
3480 xmlWriter.writeCharacters(stringToWrite.toString());
3481 }
3482
3483 }
3484
3485
3486
3487
3488
3489 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
3490 java.lang.String prefix = xmlWriter.getPrefix(namespace);
3491 if (prefix == null) {
3492 prefix = generatePrefix(namespace);
3493 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
3494 while (true) {
3495 java.lang.String uri = nsContext.getNamespaceURI(prefix);
3496 if (uri == null || uri.length() == 0) {
3497 break;
3498 }
3499 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
3500 }
3501 xmlWriter.writeNamespace(prefix, namespace);
3502 xmlWriter.setPrefix(prefix, namespace);
3503 }
3504 return prefix;
3505 }
3506
3507
3508
3509
3510
3511
3512
3513 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
3514 throws org.apache.axis2.databinding.ADBException{
3515
3516
3517
3518 java.util.ArrayList elementList = new java.util.ArrayList();
3519 java.util.ArrayList attribList = new java.util.ArrayList();
3520
3521
3522
3523 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
3524
3525
3526
3527 }
3528
3529
3530
3531
3532
3533
3534 public static class Factory{
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546 public static DestroyResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
3547 DestroyResponse object =
3548 new DestroyResponse();
3549
3550 int event;
3551 java.lang.String nillableValue = null;
3552 java.lang.String prefix ="";
3553 java.lang.String namespaceuri ="";
3554 try {
3555
3556 while (!reader.isStartElement() && !reader.isEndElement())
3557 reader.next();
3558
3559
3560 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
3561 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
3562 "type");
3563 if (fullTypeName!=null){
3564 java.lang.String nsPrefix = null;
3565 if (fullTypeName.indexOf(":") > -1){
3566 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
3567 }
3568 nsPrefix = nsPrefix==null?"":nsPrefix;
3569
3570 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
3571
3572 if (!"destroyResponse".equals(type)){
3573
3574 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
3575 return (DestroyResponse)ExtensionMapper.getTypeObject(
3576 nsUri,type,reader);
3577 }
3578
3579
3580 }
3581
3582
3583 }
3584
3585
3586
3587
3588
3589
3590 java.util.Vector handledAttributes = new java.util.Vector();
3591
3592
3593
3594
3595 reader.next();
3596
3597 while (!reader.isStartElement() && !reader.isEndElement())
3598 reader.next();
3599
3600 if (reader.isStartElement())
3601
3602 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
3603
3604
3605
3606
3607 } catch (javax.xml.stream.XMLStreamException e) {
3608 throw new java.lang.Exception(e);
3609 }
3610
3611 return object;
3612 }
3613
3614 }
3615
3616
3617
3618 }
3619
3620
3621 public static class GetProxyReqResponse
3622 implements org.apache.axis2.databinding.ADBBean{
3623
3624 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
3625 "http://www.gridsite.org/namespaces/delegation-2",
3626 "getProxyReqResponse",
3627 "ns2");
3628
3629
3630
3631
3632
3633
3634
3635
3636 protected java.lang.String localGetProxyReqReturn ;
3637
3638
3639
3640
3641
3642
3643 public java.lang.String getGetProxyReqReturn(){
3644 return localGetProxyReqReturn;
3645 }
3646
3647
3648
3649
3650
3651
3652
3653 public void setGetProxyReqReturn(java.lang.String param){
3654
3655 this.localGetProxyReqReturn=param;
3656
3657
3658 }
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669 public org.apache.axiom.om.OMElement getOMElement (
3670 final javax.xml.namespace.QName parentQName,
3671 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
3672
3673
3674
3675 org.apache.axiom.om.OMDataSource dataSource =
3676 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
3677 return factory.createOMElement(dataSource,MY_QNAME);
3678
3679 }
3680
3681 public void serialize(final javax.xml.namespace.QName parentQName,
3682 javax.xml.stream.XMLStreamWriter xmlWriter)
3683 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
3684 serialize(parentQName,xmlWriter,false);
3685 }
3686
3687 public void serialize(final javax.xml.namespace.QName parentQName,
3688 javax.xml.stream.XMLStreamWriter xmlWriter,
3689 boolean serializeType)
3690 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
3691
3692
3693
3694
3695 java.lang.String prefix = null;
3696 java.lang.String namespace = null;
3697
3698
3699 prefix = parentQName.getPrefix();
3700 namespace = parentQName.getNamespaceURI();
3701 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
3702
3703 if (serializeType){
3704
3705
3706 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
3707 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
3708 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
3709 namespacePrefix+":getProxyReqResponse",
3710 xmlWriter);
3711 } else {
3712 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
3713 "getProxyReqResponse",
3714 xmlWriter);
3715 }
3716
3717
3718 }
3719
3720 namespace = "";
3721 writeStartElement(null, namespace, "getProxyReqReturn", xmlWriter);
3722
3723
3724 if (localGetProxyReqReturn==null){
3725
3726
3727 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
3728
3729 }else{
3730
3731
3732 xmlWriter.writeCharacters(localGetProxyReqReturn);
3733
3734 }
3735
3736 xmlWriter.writeEndElement();
3737
3738 xmlWriter.writeEndElement();
3739
3740
3741 }
3742
3743 private static java.lang.String generatePrefix(java.lang.String namespace) {
3744 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
3745 return "ns2";
3746 }
3747 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
3748 }
3749
3750
3751
3752
3753 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
3754 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
3755 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
3756 if (writerPrefix != null) {
3757 xmlWriter.writeStartElement(namespace, localPart);
3758 } else {
3759 if (namespace.length() == 0) {
3760 prefix = "";
3761 } else if (prefix == null) {
3762 prefix = generatePrefix(namespace);
3763 }
3764
3765 xmlWriter.writeStartElement(prefix, localPart, namespace);
3766 xmlWriter.writeNamespace(prefix, namespace);
3767 xmlWriter.setPrefix(prefix, namespace);
3768 }
3769 }
3770
3771
3772
3773
3774 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
3775 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
3776 if (xmlWriter.getPrefix(namespace) == null) {
3777 xmlWriter.writeNamespace(prefix, namespace);
3778 xmlWriter.setPrefix(prefix, namespace);
3779 }
3780 xmlWriter.writeAttribute(namespace,attName,attValue);
3781 }
3782
3783
3784
3785
3786 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
3787 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
3788 if (namespace.equals("")) {
3789 xmlWriter.writeAttribute(attName,attValue);
3790 } else {
3791 registerPrefix(xmlWriter, namespace);
3792 xmlWriter.writeAttribute(namespace,attName,attValue);
3793 }
3794 }
3795
3796
3797
3798
3799
3800 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
3801 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
3802
3803 java.lang.String attributeNamespace = qname.getNamespaceURI();
3804 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
3805 if (attributePrefix == null) {
3806 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
3807 }
3808 java.lang.String attributeValue;
3809 if (attributePrefix.trim().length() > 0) {
3810 attributeValue = attributePrefix + ":" + qname.getLocalPart();
3811 } else {
3812 attributeValue = qname.getLocalPart();
3813 }
3814
3815 if (namespace.equals("")) {
3816 xmlWriter.writeAttribute(attName, attributeValue);
3817 } else {
3818 registerPrefix(xmlWriter, namespace);
3819 xmlWriter.writeAttribute(namespace, attName, attributeValue);
3820 }
3821 }
3822
3823
3824
3825
3826 private void writeQName(javax.xml.namespace.QName qname,
3827 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
3828 java.lang.String namespaceURI = qname.getNamespaceURI();
3829 if (namespaceURI != null) {
3830 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
3831 if (prefix == null) {
3832 prefix = generatePrefix(namespaceURI);
3833 xmlWriter.writeNamespace(prefix, namespaceURI);
3834 xmlWriter.setPrefix(prefix,namespaceURI);
3835 }
3836
3837 if (prefix.trim().length() > 0){
3838 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
3839 } else {
3840
3841 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
3842 }
3843
3844 } else {
3845 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
3846 }
3847 }
3848
3849 private void writeQNames(javax.xml.namespace.QName[] qnames,
3850 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
3851
3852 if (qnames != null) {
3853
3854
3855 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
3856 java.lang.String namespaceURI = null;
3857 java.lang.String prefix = null;
3858
3859 for (int i = 0; i < qnames.length; i++) {
3860 if (i > 0) {
3861 stringToWrite.append(" ");
3862 }
3863 namespaceURI = qnames[i].getNamespaceURI();
3864 if (namespaceURI != null) {
3865 prefix = xmlWriter.getPrefix(namespaceURI);
3866 if ((prefix == null) || (prefix.length() == 0)) {
3867 prefix = generatePrefix(namespaceURI);
3868 xmlWriter.writeNamespace(prefix, namespaceURI);
3869 xmlWriter.setPrefix(prefix,namespaceURI);
3870 }
3871
3872 if (prefix.trim().length() > 0){
3873 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
3874 } else {
3875 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
3876 }
3877 } else {
3878 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
3879 }
3880 }
3881 xmlWriter.writeCharacters(stringToWrite.toString());
3882 }
3883
3884 }
3885
3886
3887
3888
3889
3890 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
3891 java.lang.String prefix = xmlWriter.getPrefix(namespace);
3892 if (prefix == null) {
3893 prefix = generatePrefix(namespace);
3894 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
3895 while (true) {
3896 java.lang.String uri = nsContext.getNamespaceURI(prefix);
3897 if (uri == null || uri.length() == 0) {
3898 break;
3899 }
3900 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
3901 }
3902 xmlWriter.writeNamespace(prefix, namespace);
3903 xmlWriter.setPrefix(prefix, namespace);
3904 }
3905 return prefix;
3906 }
3907
3908
3909
3910
3911
3912
3913
3914 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
3915 throws org.apache.axis2.databinding.ADBException{
3916
3917
3918
3919 java.util.ArrayList elementList = new java.util.ArrayList();
3920 java.util.ArrayList attribList = new java.util.ArrayList();
3921
3922
3923 elementList.add(new javax.xml.namespace.QName("",
3924 "getProxyReqReturn"));
3925
3926 elementList.add(localGetProxyReqReturn==null?null:
3927 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGetProxyReqReturn));
3928
3929
3930 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
3931
3932
3933
3934 }
3935
3936
3937
3938
3939
3940
3941 public static class Factory{
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953 public static GetProxyReqResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
3954 GetProxyReqResponse object =
3955 new GetProxyReqResponse();
3956
3957 int event;
3958 java.lang.String nillableValue = null;
3959 java.lang.String prefix ="";
3960 java.lang.String namespaceuri ="";
3961 try {
3962
3963 while (!reader.isStartElement() && !reader.isEndElement())
3964 reader.next();
3965
3966
3967 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
3968 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
3969 "type");
3970 if (fullTypeName!=null){
3971 java.lang.String nsPrefix = null;
3972 if (fullTypeName.indexOf(":") > -1){
3973 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
3974 }
3975 nsPrefix = nsPrefix==null?"":nsPrefix;
3976
3977 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
3978
3979 if (!"getProxyReqResponse".equals(type)){
3980
3981 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
3982 return (GetProxyReqResponse)ExtensionMapper.getTypeObject(
3983 nsUri,type,reader);
3984 }
3985
3986
3987 }
3988
3989
3990 }
3991
3992
3993
3994
3995
3996
3997 java.util.Vector handledAttributes = new java.util.Vector();
3998
3999
4000
4001
4002 reader.next();
4003
4004
4005 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
4006
4007 if (reader.isStartElement() && new javax.xml.namespace.QName("","getProxyReqReturn").equals(reader.getName())){
4008
4009 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
4010 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
4011
4012
4013 java.lang.String content = reader.getElementText();
4014
4015 object.setGetProxyReqReturn(
4016 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
4017
4018 } else {
4019
4020
4021 reader.getElementText();
4022 }
4023
4024 reader.next();
4025
4026 }
4027
4028 else{
4029
4030 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
4031 }
4032
4033 while (!reader.isStartElement() && !reader.isEndElement())
4034 reader.next();
4035
4036 if (reader.isStartElement())
4037
4038 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
4039
4040
4041
4042
4043 } catch (javax.xml.stream.XMLStreamException e) {
4044 throw new java.lang.Exception(e);
4045 }
4046
4047 return object;
4048 }
4049
4050 }
4051
4052
4053
4054 }
4055
4056
4057 public static class GetTerminationTimeResponse
4058 implements org.apache.axis2.databinding.ADBBean{
4059
4060 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
4061 "http://www.gridsite.org/namespaces/delegation-2",
4062 "getTerminationTimeResponse",
4063 "ns2");
4064
4065
4066
4067
4068
4069
4070
4071
4072 protected java.util.Calendar localGetTerminationTimeReturn ;
4073
4074
4075
4076
4077
4078
4079 public java.util.Calendar getGetTerminationTimeReturn(){
4080 return localGetTerminationTimeReturn;
4081 }
4082
4083
4084
4085
4086
4087
4088
4089 public void setGetTerminationTimeReturn(java.util.Calendar param){
4090
4091 this.localGetTerminationTimeReturn=param;
4092
4093
4094 }
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105 public org.apache.axiom.om.OMElement getOMElement (
4106 final javax.xml.namespace.QName parentQName,
4107 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
4108
4109
4110
4111 org.apache.axiom.om.OMDataSource dataSource =
4112 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
4113 return factory.createOMElement(dataSource,MY_QNAME);
4114
4115 }
4116
4117 public void serialize(final javax.xml.namespace.QName parentQName,
4118 javax.xml.stream.XMLStreamWriter xmlWriter)
4119 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
4120 serialize(parentQName,xmlWriter,false);
4121 }
4122
4123 public void serialize(final javax.xml.namespace.QName parentQName,
4124 javax.xml.stream.XMLStreamWriter xmlWriter,
4125 boolean serializeType)
4126 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
4127
4128
4129
4130
4131 java.lang.String prefix = null;
4132 java.lang.String namespace = null;
4133
4134
4135 prefix = parentQName.getPrefix();
4136 namespace = parentQName.getNamespaceURI();
4137 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
4138
4139 if (serializeType){
4140
4141
4142 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
4143 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
4144 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
4145 namespacePrefix+":getTerminationTimeResponse",
4146 xmlWriter);
4147 } else {
4148 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
4149 "getTerminationTimeResponse",
4150 xmlWriter);
4151 }
4152
4153
4154 }
4155
4156 namespace = "";
4157 writeStartElement(null, namespace, "getTerminationTimeReturn", xmlWriter);
4158
4159
4160 if (localGetTerminationTimeReturn==null){
4161
4162
4163 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
4164
4165 }else{
4166
4167
4168 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGetTerminationTimeReturn));
4169
4170 }
4171
4172 xmlWriter.writeEndElement();
4173
4174 xmlWriter.writeEndElement();
4175
4176
4177 }
4178
4179 private static java.lang.String generatePrefix(java.lang.String namespace) {
4180 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
4181 return "ns2";
4182 }
4183 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
4184 }
4185
4186
4187
4188
4189 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
4190 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
4191 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
4192 if (writerPrefix != null) {
4193 xmlWriter.writeStartElement(namespace, localPart);
4194 } else {
4195 if (namespace.length() == 0) {
4196 prefix = "";
4197 } else if (prefix == null) {
4198 prefix = generatePrefix(namespace);
4199 }
4200
4201 xmlWriter.writeStartElement(prefix, localPart, namespace);
4202 xmlWriter.writeNamespace(prefix, namespace);
4203 xmlWriter.setPrefix(prefix, namespace);
4204 }
4205 }
4206
4207
4208
4209
4210 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
4211 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
4212 if (xmlWriter.getPrefix(namespace) == null) {
4213 xmlWriter.writeNamespace(prefix, namespace);
4214 xmlWriter.setPrefix(prefix, namespace);
4215 }
4216 xmlWriter.writeAttribute(namespace,attName,attValue);
4217 }
4218
4219
4220
4221
4222 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
4223 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
4224 if (namespace.equals("")) {
4225 xmlWriter.writeAttribute(attName,attValue);
4226 } else {
4227 registerPrefix(xmlWriter, namespace);
4228 xmlWriter.writeAttribute(namespace,attName,attValue);
4229 }
4230 }
4231
4232
4233
4234
4235
4236 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
4237 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
4238
4239 java.lang.String attributeNamespace = qname.getNamespaceURI();
4240 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
4241 if (attributePrefix == null) {
4242 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
4243 }
4244 java.lang.String attributeValue;
4245 if (attributePrefix.trim().length() > 0) {
4246 attributeValue = attributePrefix + ":" + qname.getLocalPart();
4247 } else {
4248 attributeValue = qname.getLocalPart();
4249 }
4250
4251 if (namespace.equals("")) {
4252 xmlWriter.writeAttribute(attName, attributeValue);
4253 } else {
4254 registerPrefix(xmlWriter, namespace);
4255 xmlWriter.writeAttribute(namespace, attName, attributeValue);
4256 }
4257 }
4258
4259
4260
4261
4262 private void writeQName(javax.xml.namespace.QName qname,
4263 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
4264 java.lang.String namespaceURI = qname.getNamespaceURI();
4265 if (namespaceURI != null) {
4266 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
4267 if (prefix == null) {
4268 prefix = generatePrefix(namespaceURI);
4269 xmlWriter.writeNamespace(prefix, namespaceURI);
4270 xmlWriter.setPrefix(prefix,namespaceURI);
4271 }
4272
4273 if (prefix.trim().length() > 0){
4274 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
4275 } else {
4276
4277 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
4278 }
4279
4280 } else {
4281 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
4282 }
4283 }
4284
4285 private void writeQNames(javax.xml.namespace.QName[] qnames,
4286 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
4287
4288 if (qnames != null) {
4289
4290
4291 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
4292 java.lang.String namespaceURI = null;
4293 java.lang.String prefix = null;
4294
4295 for (int i = 0; i < qnames.length; i++) {
4296 if (i > 0) {
4297 stringToWrite.append(" ");
4298 }
4299 namespaceURI = qnames[i].getNamespaceURI();
4300 if (namespaceURI != null) {
4301 prefix = xmlWriter.getPrefix(namespaceURI);
4302 if ((prefix == null) || (prefix.length() == 0)) {
4303 prefix = generatePrefix(namespaceURI);
4304 xmlWriter.writeNamespace(prefix, namespaceURI);
4305 xmlWriter.setPrefix(prefix,namespaceURI);
4306 }
4307
4308 if (prefix.trim().length() > 0){
4309 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
4310 } else {
4311 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
4312 }
4313 } else {
4314 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
4315 }
4316 }
4317 xmlWriter.writeCharacters(stringToWrite.toString());
4318 }
4319
4320 }
4321
4322
4323
4324
4325
4326 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
4327 java.lang.String prefix = xmlWriter.getPrefix(namespace);
4328 if (prefix == null) {
4329 prefix = generatePrefix(namespace);
4330 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
4331 while (true) {
4332 java.lang.String uri = nsContext.getNamespaceURI(prefix);
4333 if (uri == null || uri.length() == 0) {
4334 break;
4335 }
4336 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
4337 }
4338 xmlWriter.writeNamespace(prefix, namespace);
4339 xmlWriter.setPrefix(prefix, namespace);
4340 }
4341 return prefix;
4342 }
4343
4344
4345
4346
4347
4348
4349
4350 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
4351 throws org.apache.axis2.databinding.ADBException{
4352
4353
4354
4355 java.util.ArrayList elementList = new java.util.ArrayList();
4356 java.util.ArrayList attribList = new java.util.ArrayList();
4357
4358
4359 elementList.add(new javax.xml.namespace.QName("",
4360 "getTerminationTimeReturn"));
4361
4362 elementList.add(localGetTerminationTimeReturn==null?null:
4363 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGetTerminationTimeReturn));
4364
4365
4366 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
4367
4368
4369
4370 }
4371
4372
4373
4374
4375
4376
4377 public static class Factory{
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389 public static GetTerminationTimeResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
4390 GetTerminationTimeResponse object =
4391 new GetTerminationTimeResponse();
4392
4393 int event;
4394 java.lang.String nillableValue = null;
4395 java.lang.String prefix ="";
4396 java.lang.String namespaceuri ="";
4397 try {
4398
4399 while (!reader.isStartElement() && !reader.isEndElement())
4400 reader.next();
4401
4402
4403 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
4404 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
4405 "type");
4406 if (fullTypeName!=null){
4407 java.lang.String nsPrefix = null;
4408 if (fullTypeName.indexOf(":") > -1){
4409 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
4410 }
4411 nsPrefix = nsPrefix==null?"":nsPrefix;
4412
4413 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
4414
4415 if (!"getTerminationTimeResponse".equals(type)){
4416
4417 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
4418 return (GetTerminationTimeResponse)ExtensionMapper.getTypeObject(
4419 nsUri,type,reader);
4420 }
4421
4422
4423 }
4424
4425
4426 }
4427
4428
4429
4430
4431
4432
4433 java.util.Vector handledAttributes = new java.util.Vector();
4434
4435
4436
4437
4438 reader.next();
4439
4440
4441 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
4442
4443 if (reader.isStartElement() && new javax.xml.namespace.QName("","getTerminationTimeReturn").equals(reader.getName())){
4444
4445 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
4446 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
4447
4448
4449 java.lang.String content = reader.getElementText();
4450
4451 object.setGetTerminationTimeReturn(
4452 org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));
4453
4454 } else {
4455
4456
4457 reader.getElementText();
4458 }
4459
4460 reader.next();
4461
4462 }
4463
4464 else{
4465
4466 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
4467 }
4468
4469 while (!reader.isStartElement() && !reader.isEndElement())
4470 reader.next();
4471
4472 if (reader.isStartElement())
4473
4474 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
4475
4476
4477
4478
4479 } catch (javax.xml.stream.XMLStreamException e) {
4480 throw new java.lang.Exception(e);
4481 }
4482
4483 return object;
4484 }
4485
4486 }
4487
4488
4489
4490 }
4491
4492
4493 public static class GetInterfaceVersionResponse
4494 implements org.apache.axis2.databinding.ADBBean{
4495
4496 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
4497 "http://www.gridsite.org/namespaces/delegation-2",
4498 "getInterfaceVersionResponse",
4499 "ns2");
4500
4501
4502
4503
4504
4505
4506
4507
4508 protected java.lang.String localGetInterfaceVersionReturn ;
4509
4510
4511
4512
4513
4514
4515 public java.lang.String getGetInterfaceVersionReturn(){
4516 return localGetInterfaceVersionReturn;
4517 }
4518
4519
4520
4521
4522
4523
4524
4525 public void setGetInterfaceVersionReturn(java.lang.String param){
4526
4527 this.localGetInterfaceVersionReturn=param;
4528
4529
4530 }
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541 public org.apache.axiom.om.OMElement getOMElement (
4542 final javax.xml.namespace.QName parentQName,
4543 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
4544
4545
4546
4547 org.apache.axiom.om.OMDataSource dataSource =
4548 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
4549 return factory.createOMElement(dataSource,MY_QNAME);
4550
4551 }
4552
4553 public void serialize(final javax.xml.namespace.QName parentQName,
4554 javax.xml.stream.XMLStreamWriter xmlWriter)
4555 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
4556 serialize(parentQName,xmlWriter,false);
4557 }
4558
4559 public void serialize(final javax.xml.namespace.QName parentQName,
4560 javax.xml.stream.XMLStreamWriter xmlWriter,
4561 boolean serializeType)
4562 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
4563
4564
4565
4566
4567 java.lang.String prefix = null;
4568 java.lang.String namespace = null;
4569
4570
4571 prefix = parentQName.getPrefix();
4572 namespace = parentQName.getNamespaceURI();
4573 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
4574
4575 if (serializeType){
4576
4577
4578 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
4579 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
4580 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
4581 namespacePrefix+":getInterfaceVersionResponse",
4582 xmlWriter);
4583 } else {
4584 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
4585 "getInterfaceVersionResponse",
4586 xmlWriter);
4587 }
4588
4589
4590 }
4591
4592 namespace = "";
4593 writeStartElement(null, namespace, "getInterfaceVersionReturn", xmlWriter);
4594
4595
4596 if (localGetInterfaceVersionReturn==null){
4597
4598
4599 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
4600
4601 }else{
4602
4603
4604 xmlWriter.writeCharacters(localGetInterfaceVersionReturn);
4605
4606 }
4607
4608 xmlWriter.writeEndElement();
4609
4610 xmlWriter.writeEndElement();
4611
4612
4613 }
4614
4615 private static java.lang.String generatePrefix(java.lang.String namespace) {
4616 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
4617 return "ns2";
4618 }
4619 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
4620 }
4621
4622
4623
4624
4625 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
4626 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
4627 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
4628 if (writerPrefix != null) {
4629 xmlWriter.writeStartElement(namespace, localPart);
4630 } else {
4631 if (namespace.length() == 0) {
4632 prefix = "";
4633 } else if (prefix == null) {
4634 prefix = generatePrefix(namespace);
4635 }
4636
4637 xmlWriter.writeStartElement(prefix, localPart, namespace);
4638 xmlWriter.writeNamespace(prefix, namespace);
4639 xmlWriter.setPrefix(prefix, namespace);
4640 }
4641 }
4642
4643
4644
4645
4646 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
4647 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
4648 if (xmlWriter.getPrefix(namespace) == null) {
4649 xmlWriter.writeNamespace(prefix, namespace);
4650 xmlWriter.setPrefix(prefix, namespace);
4651 }
4652 xmlWriter.writeAttribute(namespace,attName,attValue);
4653 }
4654
4655
4656
4657
4658 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
4659 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
4660 if (namespace.equals("")) {
4661 xmlWriter.writeAttribute(attName,attValue);
4662 } else {
4663 registerPrefix(xmlWriter, namespace);
4664 xmlWriter.writeAttribute(namespace,attName,attValue);
4665 }
4666 }
4667
4668
4669
4670
4671
4672 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
4673 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
4674
4675 java.lang.String attributeNamespace = qname.getNamespaceURI();
4676 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
4677 if (attributePrefix == null) {
4678 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
4679 }
4680 java.lang.String attributeValue;
4681 if (attributePrefix.trim().length() > 0) {
4682 attributeValue = attributePrefix + ":" + qname.getLocalPart();
4683 } else {
4684 attributeValue = qname.getLocalPart();
4685 }
4686
4687 if (namespace.equals("")) {
4688 xmlWriter.writeAttribute(attName, attributeValue);
4689 } else {
4690 registerPrefix(xmlWriter, namespace);
4691 xmlWriter.writeAttribute(namespace, attName, attributeValue);
4692 }
4693 }
4694
4695
4696
4697
4698 private void writeQName(javax.xml.namespace.QName qname,
4699 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
4700 java.lang.String namespaceURI = qname.getNamespaceURI();
4701 if (namespaceURI != null) {
4702 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
4703 if (prefix == null) {
4704 prefix = generatePrefix(namespaceURI);
4705 xmlWriter.writeNamespace(prefix, namespaceURI);
4706 xmlWriter.setPrefix(prefix,namespaceURI);
4707 }
4708
4709 if (prefix.trim().length() > 0){
4710 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
4711 } else {
4712
4713 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
4714 }
4715
4716 } else {
4717 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
4718 }
4719 }
4720
4721 private void writeQNames(javax.xml.namespace.QName[] qnames,
4722 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
4723
4724 if (qnames != null) {
4725
4726
4727 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
4728 java.lang.String namespaceURI = null;
4729 java.lang.String prefix = null;
4730
4731 for (int i = 0; i < qnames.length; i++) {
4732 if (i > 0) {
4733 stringToWrite.append(" ");
4734 }
4735 namespaceURI = qnames[i].getNamespaceURI();
4736 if (namespaceURI != null) {
4737 prefix = xmlWriter.getPrefix(namespaceURI);
4738 if ((prefix == null) || (prefix.length() == 0)) {
4739 prefix = generatePrefix(namespaceURI);
4740 xmlWriter.writeNamespace(prefix, namespaceURI);
4741 xmlWriter.setPrefix(prefix,namespaceURI);
4742 }
4743
4744 if (prefix.trim().length() > 0){
4745 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
4746 } else {
4747 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
4748 }
4749 } else {
4750 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
4751 }
4752 }
4753 xmlWriter.writeCharacters(stringToWrite.toString());
4754 }
4755
4756 }
4757
4758
4759
4760
4761
4762 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
4763 java.lang.String prefix = xmlWriter.getPrefix(namespace);
4764 if (prefix == null) {
4765 prefix = generatePrefix(namespace);
4766 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
4767 while (true) {
4768 java.lang.String uri = nsContext.getNamespaceURI(prefix);
4769 if (uri == null || uri.length() == 0) {
4770 break;
4771 }
4772 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
4773 }
4774 xmlWriter.writeNamespace(prefix, namespace);
4775 xmlWriter.setPrefix(prefix, namespace);
4776 }
4777 return prefix;
4778 }
4779
4780
4781
4782
4783
4784
4785
4786 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
4787 throws org.apache.axis2.databinding.ADBException{
4788
4789
4790
4791 java.util.ArrayList elementList = new java.util.ArrayList();
4792 java.util.ArrayList attribList = new java.util.ArrayList();
4793
4794
4795 elementList.add(new javax.xml.namespace.QName("",
4796 "getInterfaceVersionReturn"));
4797
4798 elementList.add(localGetInterfaceVersionReturn==null?null:
4799 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGetInterfaceVersionReturn));
4800
4801
4802 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
4803
4804
4805
4806 }
4807
4808
4809
4810
4811
4812
4813 public static class Factory{
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825 public static GetInterfaceVersionResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
4826 GetInterfaceVersionResponse object =
4827 new GetInterfaceVersionResponse();
4828
4829 int event;
4830 java.lang.String nillableValue = null;
4831 java.lang.String prefix ="";
4832 java.lang.String namespaceuri ="";
4833 try {
4834
4835 while (!reader.isStartElement() && !reader.isEndElement())
4836 reader.next();
4837
4838
4839 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
4840 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
4841 "type");
4842 if (fullTypeName!=null){
4843 java.lang.String nsPrefix = null;
4844 if (fullTypeName.indexOf(":") > -1){
4845 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
4846 }
4847 nsPrefix = nsPrefix==null?"":nsPrefix;
4848
4849 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
4850
4851 if (!"getInterfaceVersionResponse".equals(type)){
4852
4853 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
4854 return (GetInterfaceVersionResponse)ExtensionMapper.getTypeObject(
4855 nsUri,type,reader);
4856 }
4857
4858
4859 }
4860
4861
4862 }
4863
4864
4865
4866
4867
4868
4869 java.util.Vector handledAttributes = new java.util.Vector();
4870
4871
4872
4873
4874 reader.next();
4875
4876
4877 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
4878
4879 if (reader.isStartElement() && new javax.xml.namespace.QName("","getInterfaceVersionReturn").equals(reader.getName())){
4880
4881 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
4882 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
4883
4884
4885 java.lang.String content = reader.getElementText();
4886
4887 object.setGetInterfaceVersionReturn(
4888 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
4889
4890 } else {
4891
4892
4893 reader.getElementText();
4894 }
4895
4896 reader.next();
4897
4898 }
4899
4900 else{
4901
4902 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
4903 }
4904
4905 while (!reader.isStartElement() && !reader.isEndElement())
4906 reader.next();
4907
4908 if (reader.isStartElement())
4909
4910 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
4911
4912
4913
4914
4915 } catch (javax.xml.stream.XMLStreamException e) {
4916 throw new java.lang.Exception(e);
4917 }
4918
4919 return object;
4920 }
4921
4922 }
4923
4924
4925
4926 }
4927
4928
4929 public static class GetNewProxyReq
4930 implements org.apache.axis2.databinding.ADBBean{
4931
4932 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
4933 "http://www.gridsite.org/namespaces/delegation-2",
4934 "getNewProxyReq",
4935 "ns2");
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947 public org.apache.axiom.om.OMElement getOMElement (
4948 final javax.xml.namespace.QName parentQName,
4949 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
4950
4951
4952
4953 org.apache.axiom.om.OMDataSource dataSource =
4954 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
4955 return factory.createOMElement(dataSource,MY_QNAME);
4956
4957 }
4958
4959 public void serialize(final javax.xml.namespace.QName parentQName,
4960 javax.xml.stream.XMLStreamWriter xmlWriter)
4961 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
4962 serialize(parentQName,xmlWriter,false);
4963 }
4964
4965 public void serialize(final javax.xml.namespace.QName parentQName,
4966 javax.xml.stream.XMLStreamWriter xmlWriter,
4967 boolean serializeType)
4968 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
4969
4970
4971
4972
4973 java.lang.String prefix = null;
4974 java.lang.String namespace = null;
4975
4976
4977 prefix = parentQName.getPrefix();
4978 namespace = parentQName.getNamespaceURI();
4979 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
4980
4981 if (serializeType){
4982
4983
4984 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
4985 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
4986 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
4987 namespacePrefix+":getNewProxyReq",
4988 xmlWriter);
4989 } else {
4990 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
4991 "getNewProxyReq",
4992 xmlWriter);
4993 }
4994
4995
4996 }
4997
4998 xmlWriter.writeEndElement();
4999
5000
5001 }
5002
5003 private static java.lang.String generatePrefix(java.lang.String namespace) {
5004 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
5005 return "ns2";
5006 }
5007 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
5008 }
5009
5010
5011
5012
5013 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
5014 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
5015 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
5016 if (writerPrefix != null) {
5017 xmlWriter.writeStartElement(namespace, localPart);
5018 } else {
5019 if (namespace.length() == 0) {
5020 prefix = "";
5021 } else if (prefix == null) {
5022 prefix = generatePrefix(namespace);
5023 }
5024
5025 xmlWriter.writeStartElement(prefix, localPart, namespace);
5026 xmlWriter.writeNamespace(prefix, namespace);
5027 xmlWriter.setPrefix(prefix, namespace);
5028 }
5029 }
5030
5031
5032
5033
5034 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
5035 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
5036 if (xmlWriter.getPrefix(namespace) == null) {
5037 xmlWriter.writeNamespace(prefix, namespace);
5038 xmlWriter.setPrefix(prefix, namespace);
5039 }
5040 xmlWriter.writeAttribute(namespace,attName,attValue);
5041 }
5042
5043
5044
5045
5046 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
5047 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
5048 if (namespace.equals("")) {
5049 xmlWriter.writeAttribute(attName,attValue);
5050 } else {
5051 registerPrefix(xmlWriter, namespace);
5052 xmlWriter.writeAttribute(namespace,attName,attValue);
5053 }
5054 }
5055
5056
5057
5058
5059
5060 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
5061 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
5062
5063 java.lang.String attributeNamespace = qname.getNamespaceURI();
5064 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
5065 if (attributePrefix == null) {
5066 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
5067 }
5068 java.lang.String attributeValue;
5069 if (attributePrefix.trim().length() > 0) {
5070 attributeValue = attributePrefix + ":" + qname.getLocalPart();
5071 } else {
5072 attributeValue = qname.getLocalPart();
5073 }
5074
5075 if (namespace.equals("")) {
5076 xmlWriter.writeAttribute(attName, attributeValue);
5077 } else {
5078 registerPrefix(xmlWriter, namespace);
5079 xmlWriter.writeAttribute(namespace, attName, attributeValue);
5080 }
5081 }
5082
5083
5084
5085
5086 private void writeQName(javax.xml.namespace.QName qname,
5087 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
5088 java.lang.String namespaceURI = qname.getNamespaceURI();
5089 if (namespaceURI != null) {
5090 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
5091 if (prefix == null) {
5092 prefix = generatePrefix(namespaceURI);
5093 xmlWriter.writeNamespace(prefix, namespaceURI);
5094 xmlWriter.setPrefix(prefix,namespaceURI);
5095 }
5096
5097 if (prefix.trim().length() > 0){
5098 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
5099 } else {
5100
5101 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
5102 }
5103
5104 } else {
5105 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
5106 }
5107 }
5108
5109 private void writeQNames(javax.xml.namespace.QName[] qnames,
5110 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
5111
5112 if (qnames != null) {
5113
5114
5115 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
5116 java.lang.String namespaceURI = null;
5117 java.lang.String prefix = null;
5118
5119 for (int i = 0; i < qnames.length; i++) {
5120 if (i > 0) {
5121 stringToWrite.append(" ");
5122 }
5123 namespaceURI = qnames[i].getNamespaceURI();
5124 if (namespaceURI != null) {
5125 prefix = xmlWriter.getPrefix(namespaceURI);
5126 if ((prefix == null) || (prefix.length() == 0)) {
5127 prefix = generatePrefix(namespaceURI);
5128 xmlWriter.writeNamespace(prefix, namespaceURI);
5129 xmlWriter.setPrefix(prefix,namespaceURI);
5130 }
5131
5132 if (prefix.trim().length() > 0){
5133 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
5134 } else {
5135 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
5136 }
5137 } else {
5138 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
5139 }
5140 }
5141 xmlWriter.writeCharacters(stringToWrite.toString());
5142 }
5143
5144 }
5145
5146
5147
5148
5149
5150 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
5151 java.lang.String prefix = xmlWriter.getPrefix(namespace);
5152 if (prefix == null) {
5153 prefix = generatePrefix(namespace);
5154 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
5155 while (true) {
5156 java.lang.String uri = nsContext.getNamespaceURI(prefix);
5157 if (uri == null || uri.length() == 0) {
5158 break;
5159 }
5160 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
5161 }
5162 xmlWriter.writeNamespace(prefix, namespace);
5163 xmlWriter.setPrefix(prefix, namespace);
5164 }
5165 return prefix;
5166 }
5167
5168
5169
5170
5171
5172
5173
5174 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
5175 throws org.apache.axis2.databinding.ADBException{
5176
5177
5178
5179 java.util.ArrayList elementList = new java.util.ArrayList();
5180 java.util.ArrayList attribList = new java.util.ArrayList();
5181
5182
5183
5184 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
5185
5186
5187
5188 }
5189
5190
5191
5192
5193
5194
5195 public static class Factory{
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207 public static GetNewProxyReq parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
5208 GetNewProxyReq object =
5209 new GetNewProxyReq();
5210
5211 int event;
5212 java.lang.String nillableValue = null;
5213 java.lang.String prefix ="";
5214 java.lang.String namespaceuri ="";
5215 try {
5216
5217 while (!reader.isStartElement() && !reader.isEndElement())
5218 reader.next();
5219
5220
5221 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
5222 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
5223 "type");
5224 if (fullTypeName!=null){
5225 java.lang.String nsPrefix = null;
5226 if (fullTypeName.indexOf(":") > -1){
5227 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
5228 }
5229 nsPrefix = nsPrefix==null?"":nsPrefix;
5230
5231 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
5232
5233 if (!"getNewProxyReq".equals(type)){
5234
5235 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
5236 return (GetNewProxyReq)ExtensionMapper.getTypeObject(
5237 nsUri,type,reader);
5238 }
5239
5240
5241 }
5242
5243
5244 }
5245
5246
5247
5248
5249
5250
5251 java.util.Vector handledAttributes = new java.util.Vector();
5252
5253
5254
5255
5256 reader.next();
5257
5258 while (!reader.isStartElement() && !reader.isEndElement())
5259 reader.next();
5260
5261 if (reader.isStartElement())
5262
5263 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
5264
5265
5266
5267
5268 } catch (javax.xml.stream.XMLStreamException e) {
5269 throw new java.lang.Exception(e);
5270 }
5271
5272 return object;
5273 }
5274
5275 }
5276
5277
5278
5279 }
5280
5281
5282 public static class GetVersionResponse
5283 implements org.apache.axis2.databinding.ADBBean{
5284
5285 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
5286 "http://www.gridsite.org/namespaces/delegation-2",
5287 "getVersionResponse",
5288 "ns2");
5289
5290
5291
5292
5293
5294
5295
5296
5297 protected java.lang.String localGetVersionReturn ;
5298
5299
5300
5301
5302
5303
5304 public java.lang.String getGetVersionReturn(){
5305 return localGetVersionReturn;
5306 }
5307
5308
5309
5310
5311
5312
5313
5314 public void setGetVersionReturn(java.lang.String param){
5315
5316 this.localGetVersionReturn=param;
5317
5318
5319 }
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330 public org.apache.axiom.om.OMElement getOMElement (
5331 final javax.xml.namespace.QName parentQName,
5332 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
5333
5334
5335
5336 org.apache.axiom.om.OMDataSource dataSource =
5337 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
5338 return factory.createOMElement(dataSource,MY_QNAME);
5339
5340 }
5341
5342 public void serialize(final javax.xml.namespace.QName parentQName,
5343 javax.xml.stream.XMLStreamWriter xmlWriter)
5344 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
5345 serialize(parentQName,xmlWriter,false);
5346 }
5347
5348 public void serialize(final javax.xml.namespace.QName parentQName,
5349 javax.xml.stream.XMLStreamWriter xmlWriter,
5350 boolean serializeType)
5351 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
5352
5353
5354
5355
5356 java.lang.String prefix = null;
5357 java.lang.String namespace = null;
5358
5359
5360 prefix = parentQName.getPrefix();
5361 namespace = parentQName.getNamespaceURI();
5362 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
5363
5364 if (serializeType){
5365
5366
5367 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
5368 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
5369 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
5370 namespacePrefix+":getVersionResponse",
5371 xmlWriter);
5372 } else {
5373 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
5374 "getVersionResponse",
5375 xmlWriter);
5376 }
5377
5378
5379 }
5380
5381 namespace = "";
5382 writeStartElement(null, namespace, "getVersionReturn", xmlWriter);
5383
5384
5385 if (localGetVersionReturn==null){
5386
5387
5388 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
5389
5390 }else{
5391
5392
5393 xmlWriter.writeCharacters(localGetVersionReturn);
5394
5395 }
5396
5397 xmlWriter.writeEndElement();
5398
5399 xmlWriter.writeEndElement();
5400
5401
5402 }
5403
5404 private static java.lang.String generatePrefix(java.lang.String namespace) {
5405 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
5406 return "ns2";
5407 }
5408 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
5409 }
5410
5411
5412
5413
5414 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
5415 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
5416 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
5417 if (writerPrefix != null) {
5418 xmlWriter.writeStartElement(namespace, localPart);
5419 } else {
5420 if (namespace.length() == 0) {
5421 prefix = "";
5422 } else if (prefix == null) {
5423 prefix = generatePrefix(namespace);
5424 }
5425
5426 xmlWriter.writeStartElement(prefix, localPart, namespace);
5427 xmlWriter.writeNamespace(prefix, namespace);
5428 xmlWriter.setPrefix(prefix, namespace);
5429 }
5430 }
5431
5432
5433
5434
5435 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
5436 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
5437 if (xmlWriter.getPrefix(namespace) == null) {
5438 xmlWriter.writeNamespace(prefix, namespace);
5439 xmlWriter.setPrefix(prefix, namespace);
5440 }
5441 xmlWriter.writeAttribute(namespace,attName,attValue);
5442 }
5443
5444
5445
5446
5447 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
5448 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
5449 if (namespace.equals("")) {
5450 xmlWriter.writeAttribute(attName,attValue);
5451 } else {
5452 registerPrefix(xmlWriter, namespace);
5453 xmlWriter.writeAttribute(namespace,attName,attValue);
5454 }
5455 }
5456
5457
5458
5459
5460
5461 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
5462 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
5463
5464 java.lang.String attributeNamespace = qname.getNamespaceURI();
5465 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
5466 if (attributePrefix == null) {
5467 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
5468 }
5469 java.lang.String attributeValue;
5470 if (attributePrefix.trim().length() > 0) {
5471 attributeValue = attributePrefix + ":" + qname.getLocalPart();
5472 } else {
5473 attributeValue = qname.getLocalPart();
5474 }
5475
5476 if (namespace.equals("")) {
5477 xmlWriter.writeAttribute(attName, attributeValue);
5478 } else {
5479 registerPrefix(xmlWriter, namespace);
5480 xmlWriter.writeAttribute(namespace, attName, attributeValue);
5481 }
5482 }
5483
5484
5485
5486
5487 private void writeQName(javax.xml.namespace.QName qname,
5488 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
5489 java.lang.String namespaceURI = qname.getNamespaceURI();
5490 if (namespaceURI != null) {
5491 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
5492 if (prefix == null) {
5493 prefix = generatePrefix(namespaceURI);
5494 xmlWriter.writeNamespace(prefix, namespaceURI);
5495 xmlWriter.setPrefix(prefix,namespaceURI);
5496 }
5497
5498 if (prefix.trim().length() > 0){
5499 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
5500 } else {
5501
5502 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
5503 }
5504
5505 } else {
5506 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
5507 }
5508 }
5509
5510 private void writeQNames(javax.xml.namespace.QName[] qnames,
5511 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
5512
5513 if (qnames != null) {
5514
5515
5516 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
5517 java.lang.String namespaceURI = null;
5518 java.lang.String prefix = null;
5519
5520 for (int i = 0; i < qnames.length; i++) {
5521 if (i > 0) {
5522 stringToWrite.append(" ");
5523 }
5524 namespaceURI = qnames[i].getNamespaceURI();
5525 if (namespaceURI != null) {
5526 prefix = xmlWriter.getPrefix(namespaceURI);
5527 if ((prefix == null) || (prefix.length() == 0)) {
5528 prefix = generatePrefix(namespaceURI);
5529 xmlWriter.writeNamespace(prefix, namespaceURI);
5530 xmlWriter.setPrefix(prefix,namespaceURI);
5531 }
5532
5533 if (prefix.trim().length() > 0){
5534 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
5535 } else {
5536 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
5537 }
5538 } else {
5539 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
5540 }
5541 }
5542 xmlWriter.writeCharacters(stringToWrite.toString());
5543 }
5544
5545 }
5546
5547
5548
5549
5550
5551 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
5552 java.lang.String prefix = xmlWriter.getPrefix(namespace);
5553 if (prefix == null) {
5554 prefix = generatePrefix(namespace);
5555 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
5556 while (true) {
5557 java.lang.String uri = nsContext.getNamespaceURI(prefix);
5558 if (uri == null || uri.length() == 0) {
5559 break;
5560 }
5561 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
5562 }
5563 xmlWriter.writeNamespace(prefix, namespace);
5564 xmlWriter.setPrefix(prefix, namespace);
5565 }
5566 return prefix;
5567 }
5568
5569
5570
5571
5572
5573
5574
5575 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
5576 throws org.apache.axis2.databinding.ADBException{
5577
5578
5579
5580 java.util.ArrayList elementList = new java.util.ArrayList();
5581 java.util.ArrayList attribList = new java.util.ArrayList();
5582
5583
5584 elementList.add(new javax.xml.namespace.QName("",
5585 "getVersionReturn"));
5586
5587 elementList.add(localGetVersionReturn==null?null:
5588 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGetVersionReturn));
5589
5590
5591 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
5592
5593
5594
5595 }
5596
5597
5598
5599
5600
5601
5602 public static class Factory{
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614 public static GetVersionResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
5615 GetVersionResponse object =
5616 new GetVersionResponse();
5617
5618 int event;
5619 java.lang.String nillableValue = null;
5620 java.lang.String prefix ="";
5621 java.lang.String namespaceuri ="";
5622 try {
5623
5624 while (!reader.isStartElement() && !reader.isEndElement())
5625 reader.next();
5626
5627
5628 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
5629 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
5630 "type");
5631 if (fullTypeName!=null){
5632 java.lang.String nsPrefix = null;
5633 if (fullTypeName.indexOf(":") > -1){
5634 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
5635 }
5636 nsPrefix = nsPrefix==null?"":nsPrefix;
5637
5638 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
5639
5640 if (!"getVersionResponse".equals(type)){
5641
5642 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
5643 return (GetVersionResponse)ExtensionMapper.getTypeObject(
5644 nsUri,type,reader);
5645 }
5646
5647
5648 }
5649
5650
5651 }
5652
5653
5654
5655
5656
5657
5658 java.util.Vector handledAttributes = new java.util.Vector();
5659
5660
5661
5662
5663 reader.next();
5664
5665
5666 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
5667
5668 if (reader.isStartElement() && new javax.xml.namespace.QName("","getVersionReturn").equals(reader.getName())){
5669
5670 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
5671 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
5672
5673
5674 java.lang.String content = reader.getElementText();
5675
5676 object.setGetVersionReturn(
5677 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
5678
5679 } else {
5680
5681
5682 reader.getElementText();
5683 }
5684
5685 reader.next();
5686
5687 }
5688
5689 else{
5690
5691 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
5692 }
5693
5694 while (!reader.isStartElement() && !reader.isEndElement())
5695 reader.next();
5696
5697 if (reader.isStartElement())
5698
5699 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
5700
5701
5702
5703
5704 } catch (javax.xml.stream.XMLStreamException e) {
5705 throw new java.lang.Exception(e);
5706 }
5707
5708 return object;
5709 }
5710
5711 }
5712
5713
5714
5715 }
5716
5717
5718 public static class NewProxyReq
5719 implements org.apache.axis2.databinding.ADBBean{
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732 protected java.lang.String localProxyRequest ;
5733
5734
5735
5736
5737
5738
5739 public java.lang.String getProxyRequest(){
5740 return localProxyRequest;
5741 }
5742
5743
5744
5745
5746
5747
5748
5749 public void setProxyRequest(java.lang.String param){
5750
5751 this.localProxyRequest=param;
5752
5753
5754 }
5755
5756
5757
5758
5759
5760
5761
5762 protected java.lang.String localDelegationID ;
5763
5764
5765
5766
5767
5768
5769 public java.lang.String getDelegationID(){
5770 return localDelegationID;
5771 }
5772
5773
5774
5775
5776
5777
5778
5779 public void setDelegationID(java.lang.String param){
5780
5781 this.localDelegationID=param;
5782
5783
5784 }
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795 public org.apache.axiom.om.OMElement getOMElement (
5796 final javax.xml.namespace.QName parentQName,
5797 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
5798
5799
5800
5801 org.apache.axiom.om.OMDataSource dataSource =
5802 new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
5803 return factory.createOMElement(dataSource,parentQName);
5804
5805 }
5806
5807 public void serialize(final javax.xml.namespace.QName parentQName,
5808 javax.xml.stream.XMLStreamWriter xmlWriter)
5809 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
5810 serialize(parentQName,xmlWriter,false);
5811 }
5812
5813 public void serialize(final javax.xml.namespace.QName parentQName,
5814 javax.xml.stream.XMLStreamWriter xmlWriter,
5815 boolean serializeType)
5816 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
5817
5818
5819
5820
5821 java.lang.String prefix = null;
5822 java.lang.String namespace = null;
5823
5824
5825 prefix = parentQName.getPrefix();
5826 namespace = parentQName.getNamespaceURI();
5827 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
5828
5829 if (serializeType){
5830
5831
5832 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
5833 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
5834 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
5835 namespacePrefix+":NewProxyReq",
5836 xmlWriter);
5837 } else {
5838 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
5839 "NewProxyReq",
5840 xmlWriter);
5841 }
5842
5843
5844 }
5845
5846 namespace = "";
5847 writeStartElement(null, namespace, "proxyRequest", xmlWriter);
5848
5849
5850 if (localProxyRequest==null){
5851
5852
5853 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
5854
5855 }else{
5856
5857
5858 xmlWriter.writeCharacters(localProxyRequest);
5859
5860 }
5861
5862 xmlWriter.writeEndElement();
5863
5864 namespace = "";
5865 writeStartElement(null, namespace, "delegationID", xmlWriter);
5866
5867
5868 if (localDelegationID==null){
5869
5870
5871 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
5872
5873 }else{
5874
5875
5876 xmlWriter.writeCharacters(localDelegationID);
5877
5878 }
5879
5880 xmlWriter.writeEndElement();
5881
5882 xmlWriter.writeEndElement();
5883
5884
5885 }
5886
5887 private static java.lang.String generatePrefix(java.lang.String namespace) {
5888 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
5889 return "ns2";
5890 }
5891 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
5892 }
5893
5894
5895
5896
5897 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
5898 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
5899 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
5900 if (writerPrefix != null) {
5901 xmlWriter.writeStartElement(namespace, localPart);
5902 } else {
5903 if (namespace.length() == 0) {
5904 prefix = "";
5905 } else if (prefix == null) {
5906 prefix = generatePrefix(namespace);
5907 }
5908
5909 xmlWriter.writeStartElement(prefix, localPart, namespace);
5910 xmlWriter.writeNamespace(prefix, namespace);
5911 xmlWriter.setPrefix(prefix, namespace);
5912 }
5913 }
5914
5915
5916
5917
5918 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
5919 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
5920 if (xmlWriter.getPrefix(namespace) == null) {
5921 xmlWriter.writeNamespace(prefix, namespace);
5922 xmlWriter.setPrefix(prefix, namespace);
5923 }
5924 xmlWriter.writeAttribute(namespace,attName,attValue);
5925 }
5926
5927
5928
5929
5930 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
5931 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
5932 if (namespace.equals("")) {
5933 xmlWriter.writeAttribute(attName,attValue);
5934 } else {
5935 registerPrefix(xmlWriter, namespace);
5936 xmlWriter.writeAttribute(namespace,attName,attValue);
5937 }
5938 }
5939
5940
5941
5942
5943
5944 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
5945 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
5946
5947 java.lang.String attributeNamespace = qname.getNamespaceURI();
5948 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
5949 if (attributePrefix == null) {
5950 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
5951 }
5952 java.lang.String attributeValue;
5953 if (attributePrefix.trim().length() > 0) {
5954 attributeValue = attributePrefix + ":" + qname.getLocalPart();
5955 } else {
5956 attributeValue = qname.getLocalPart();
5957 }
5958
5959 if (namespace.equals("")) {
5960 xmlWriter.writeAttribute(attName, attributeValue);
5961 } else {
5962 registerPrefix(xmlWriter, namespace);
5963 xmlWriter.writeAttribute(namespace, attName, attributeValue);
5964 }
5965 }
5966
5967
5968
5969
5970 private void writeQName(javax.xml.namespace.QName qname,
5971 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
5972 java.lang.String namespaceURI = qname.getNamespaceURI();
5973 if (namespaceURI != null) {
5974 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
5975 if (prefix == null) {
5976 prefix = generatePrefix(namespaceURI);
5977 xmlWriter.writeNamespace(prefix, namespaceURI);
5978 xmlWriter.setPrefix(prefix,namespaceURI);
5979 }
5980
5981 if (prefix.trim().length() > 0){
5982 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
5983 } else {
5984
5985 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
5986 }
5987
5988 } else {
5989 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
5990 }
5991 }
5992
5993 private void writeQNames(javax.xml.namespace.QName[] qnames,
5994 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
5995
5996 if (qnames != null) {
5997
5998
5999 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
6000 java.lang.String namespaceURI = null;
6001 java.lang.String prefix = null;
6002
6003 for (int i = 0; i < qnames.length; i++) {
6004 if (i > 0) {
6005 stringToWrite.append(" ");
6006 }
6007 namespaceURI = qnames[i].getNamespaceURI();
6008 if (namespaceURI != null) {
6009 prefix = xmlWriter.getPrefix(namespaceURI);
6010 if ((prefix == null) || (prefix.length() == 0)) {
6011 prefix = generatePrefix(namespaceURI);
6012 xmlWriter.writeNamespace(prefix, namespaceURI);
6013 xmlWriter.setPrefix(prefix,namespaceURI);
6014 }
6015
6016 if (prefix.trim().length() > 0){
6017 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
6018 } else {
6019 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
6020 }
6021 } else {
6022 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
6023 }
6024 }
6025 xmlWriter.writeCharacters(stringToWrite.toString());
6026 }
6027
6028 }
6029
6030
6031
6032
6033
6034 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
6035 java.lang.String prefix = xmlWriter.getPrefix(namespace);
6036 if (prefix == null) {
6037 prefix = generatePrefix(namespace);
6038 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
6039 while (true) {
6040 java.lang.String uri = nsContext.getNamespaceURI(prefix);
6041 if (uri == null || uri.length() == 0) {
6042 break;
6043 }
6044 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
6045 }
6046 xmlWriter.writeNamespace(prefix, namespace);
6047 xmlWriter.setPrefix(prefix, namespace);
6048 }
6049 return prefix;
6050 }
6051
6052
6053
6054
6055
6056
6057
6058 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
6059 throws org.apache.axis2.databinding.ADBException{
6060
6061
6062
6063 java.util.ArrayList elementList = new java.util.ArrayList();
6064 java.util.ArrayList attribList = new java.util.ArrayList();
6065
6066
6067 elementList.add(new javax.xml.namespace.QName("",
6068 "proxyRequest"));
6069
6070 elementList.add(localProxyRequest==null?null:
6071 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProxyRequest));
6072
6073 elementList.add(new javax.xml.namespace.QName("",
6074 "delegationID"));
6075
6076 elementList.add(localDelegationID==null?null:
6077 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDelegationID));
6078
6079
6080 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
6081
6082
6083
6084 }
6085
6086
6087
6088
6089
6090
6091 public static class Factory{
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103 public static NewProxyReq parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
6104 NewProxyReq object =
6105 new NewProxyReq();
6106
6107 int event;
6108 java.lang.String nillableValue = null;
6109 java.lang.String prefix ="";
6110 java.lang.String namespaceuri ="";
6111 try {
6112
6113 while (!reader.isStartElement() && !reader.isEndElement())
6114 reader.next();
6115
6116
6117 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
6118 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
6119 "type");
6120 if (fullTypeName!=null){
6121 java.lang.String nsPrefix = null;
6122 if (fullTypeName.indexOf(":") > -1){
6123 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
6124 }
6125 nsPrefix = nsPrefix==null?"":nsPrefix;
6126
6127 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
6128
6129 if (!"NewProxyReq".equals(type)){
6130
6131 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
6132 return (NewProxyReq)ExtensionMapper.getTypeObject(
6133 nsUri,type,reader);
6134 }
6135
6136
6137 }
6138
6139
6140 }
6141
6142
6143
6144
6145
6146
6147 java.util.Vector handledAttributes = new java.util.Vector();
6148
6149
6150
6151
6152 reader.next();
6153
6154
6155 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
6156
6157 if (reader.isStartElement() && new javax.xml.namespace.QName("","proxyRequest").equals(reader.getName())){
6158
6159 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
6160 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
6161
6162
6163 java.lang.String content = reader.getElementText();
6164
6165 object.setProxyRequest(
6166 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
6167
6168 } else {
6169
6170
6171 reader.getElementText();
6172 }
6173
6174 reader.next();
6175
6176 }
6177
6178 else{
6179
6180 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
6181 }
6182
6183
6184 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
6185
6186 if (reader.isStartElement() && new javax.xml.namespace.QName("","delegationID").equals(reader.getName())){
6187
6188 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
6189 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
6190
6191
6192 java.lang.String content = reader.getElementText();
6193
6194 object.setDelegationID(
6195 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
6196
6197 } else {
6198
6199
6200 reader.getElementText();
6201 }
6202
6203 reader.next();
6204
6205 }
6206
6207 else{
6208
6209 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
6210 }
6211
6212 while (!reader.isStartElement() && !reader.isEndElement())
6213 reader.next();
6214
6215 if (reader.isStartElement())
6216
6217 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
6218
6219
6220
6221
6222 } catch (javax.xml.stream.XMLStreamException e) {
6223 throw new java.lang.Exception(e);
6224 }
6225
6226 return object;
6227 }
6228
6229 }
6230
6231
6232
6233 }
6234
6235
6236 public static class PutProxyResponse
6237 implements org.apache.axis2.databinding.ADBBean{
6238
6239 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
6240 "http://www.gridsite.org/namespaces/delegation-2",
6241 "putProxyResponse",
6242 "ns2");
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254 public org.apache.axiom.om.OMElement getOMElement (
6255 final javax.xml.namespace.QName parentQName,
6256 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
6257
6258
6259
6260 org.apache.axiom.om.OMDataSource dataSource =
6261 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
6262 return factory.createOMElement(dataSource,MY_QNAME);
6263
6264 }
6265
6266 public void serialize(final javax.xml.namespace.QName parentQName,
6267 javax.xml.stream.XMLStreamWriter xmlWriter)
6268 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
6269 serialize(parentQName,xmlWriter,false);
6270 }
6271
6272 public void serialize(final javax.xml.namespace.QName parentQName,
6273 javax.xml.stream.XMLStreamWriter xmlWriter,
6274 boolean serializeType)
6275 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
6276
6277
6278
6279
6280 java.lang.String prefix = null;
6281 java.lang.String namespace = null;
6282
6283
6284 prefix = parentQName.getPrefix();
6285 namespace = parentQName.getNamespaceURI();
6286 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
6287
6288 if (serializeType){
6289
6290
6291 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
6292 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
6293 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
6294 namespacePrefix+":putProxyResponse",
6295 xmlWriter);
6296 } else {
6297 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
6298 "putProxyResponse",
6299 xmlWriter);
6300 }
6301
6302
6303 }
6304
6305 xmlWriter.writeEndElement();
6306
6307
6308 }
6309
6310 private static java.lang.String generatePrefix(java.lang.String namespace) {
6311 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
6312 return "ns2";
6313 }
6314 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
6315 }
6316
6317
6318
6319
6320 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
6321 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
6322 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
6323 if (writerPrefix != null) {
6324 xmlWriter.writeStartElement(namespace, localPart);
6325 } else {
6326 if (namespace.length() == 0) {
6327 prefix = "";
6328 } else if (prefix == null) {
6329 prefix = generatePrefix(namespace);
6330 }
6331
6332 xmlWriter.writeStartElement(prefix, localPart, namespace);
6333 xmlWriter.writeNamespace(prefix, namespace);
6334 xmlWriter.setPrefix(prefix, namespace);
6335 }
6336 }
6337
6338
6339
6340
6341 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
6342 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
6343 if (xmlWriter.getPrefix(namespace) == null) {
6344 xmlWriter.writeNamespace(prefix, namespace);
6345 xmlWriter.setPrefix(prefix, namespace);
6346 }
6347 xmlWriter.writeAttribute(namespace,attName,attValue);
6348 }
6349
6350
6351
6352
6353 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
6354 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
6355 if (namespace.equals("")) {
6356 xmlWriter.writeAttribute(attName,attValue);
6357 } else {
6358 registerPrefix(xmlWriter, namespace);
6359 xmlWriter.writeAttribute(namespace,attName,attValue);
6360 }
6361 }
6362
6363
6364
6365
6366
6367 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
6368 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
6369
6370 java.lang.String attributeNamespace = qname.getNamespaceURI();
6371 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
6372 if (attributePrefix == null) {
6373 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
6374 }
6375 java.lang.String attributeValue;
6376 if (attributePrefix.trim().length() > 0) {
6377 attributeValue = attributePrefix + ":" + qname.getLocalPart();
6378 } else {
6379 attributeValue = qname.getLocalPart();
6380 }
6381
6382 if (namespace.equals("")) {
6383 xmlWriter.writeAttribute(attName, attributeValue);
6384 } else {
6385 registerPrefix(xmlWriter, namespace);
6386 xmlWriter.writeAttribute(namespace, attName, attributeValue);
6387 }
6388 }
6389
6390
6391
6392
6393 private void writeQName(javax.xml.namespace.QName qname,
6394 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
6395 java.lang.String namespaceURI = qname.getNamespaceURI();
6396 if (namespaceURI != null) {
6397 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
6398 if (prefix == null) {
6399 prefix = generatePrefix(namespaceURI);
6400 xmlWriter.writeNamespace(prefix, namespaceURI);
6401 xmlWriter.setPrefix(prefix,namespaceURI);
6402 }
6403
6404 if (prefix.trim().length() > 0){
6405 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
6406 } else {
6407
6408 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
6409 }
6410
6411 } else {
6412 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
6413 }
6414 }
6415
6416 private void writeQNames(javax.xml.namespace.QName[] qnames,
6417 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
6418
6419 if (qnames != null) {
6420
6421
6422 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
6423 java.lang.String namespaceURI = null;
6424 java.lang.String prefix = null;
6425
6426 for (int i = 0; i < qnames.length; i++) {
6427 if (i > 0) {
6428 stringToWrite.append(" ");
6429 }
6430 namespaceURI = qnames[i].getNamespaceURI();
6431 if (namespaceURI != null) {
6432 prefix = xmlWriter.getPrefix(namespaceURI);
6433 if ((prefix == null) || (prefix.length() == 0)) {
6434 prefix = generatePrefix(namespaceURI);
6435 xmlWriter.writeNamespace(prefix, namespaceURI);
6436 xmlWriter.setPrefix(prefix,namespaceURI);
6437 }
6438
6439 if (prefix.trim().length() > 0){
6440 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
6441 } else {
6442 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
6443 }
6444 } else {
6445 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
6446 }
6447 }
6448 xmlWriter.writeCharacters(stringToWrite.toString());
6449 }
6450
6451 }
6452
6453
6454
6455
6456
6457 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
6458 java.lang.String prefix = xmlWriter.getPrefix(namespace);
6459 if (prefix == null) {
6460 prefix = generatePrefix(namespace);
6461 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
6462 while (true) {
6463 java.lang.String uri = nsContext.getNamespaceURI(prefix);
6464 if (uri == null || uri.length() == 0) {
6465 break;
6466 }
6467 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
6468 }
6469 xmlWriter.writeNamespace(prefix, namespace);
6470 xmlWriter.setPrefix(prefix, namespace);
6471 }
6472 return prefix;
6473 }
6474
6475
6476
6477
6478
6479
6480
6481 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
6482 throws org.apache.axis2.databinding.ADBException{
6483
6484
6485
6486 java.util.ArrayList elementList = new java.util.ArrayList();
6487 java.util.ArrayList attribList = new java.util.ArrayList();
6488
6489
6490
6491 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
6492
6493
6494
6495 }
6496
6497
6498
6499
6500
6501
6502 public static class Factory{
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514 public static PutProxyResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
6515 PutProxyResponse object =
6516 new PutProxyResponse();
6517
6518 int event;
6519 java.lang.String nillableValue = null;
6520 java.lang.String prefix ="";
6521 java.lang.String namespaceuri ="";
6522 try {
6523
6524 while (!reader.isStartElement() && !reader.isEndElement())
6525 reader.next();
6526
6527
6528 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
6529 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
6530 "type");
6531 if (fullTypeName!=null){
6532 java.lang.String nsPrefix = null;
6533 if (fullTypeName.indexOf(":") > -1){
6534 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
6535 }
6536 nsPrefix = nsPrefix==null?"":nsPrefix;
6537
6538 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
6539
6540 if (!"putProxyResponse".equals(type)){
6541
6542 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
6543 return (PutProxyResponse)ExtensionMapper.getTypeObject(
6544 nsUri,type,reader);
6545 }
6546
6547
6548 }
6549
6550
6551 }
6552
6553
6554
6555
6556
6557
6558 java.util.Vector handledAttributes = new java.util.Vector();
6559
6560
6561
6562
6563 reader.next();
6564
6565 while (!reader.isStartElement() && !reader.isEndElement())
6566 reader.next();
6567
6568 if (reader.isStartElement())
6569
6570 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
6571
6572
6573
6574
6575 } catch (javax.xml.stream.XMLStreamException e) {
6576 throw new java.lang.Exception(e);
6577 }
6578
6579 return object;
6580 }
6581
6582 }
6583
6584
6585
6586 }
6587
6588
6589 public static class Destroy
6590 implements org.apache.axis2.databinding.ADBBean{
6591
6592 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
6593 "http://www.gridsite.org/namespaces/delegation-2",
6594 "destroy",
6595 "ns2");
6596
6597
6598
6599
6600
6601
6602
6603
6604 protected java.lang.String localDelegationID ;
6605
6606
6607
6608
6609
6610
6611 public java.lang.String getDelegationID(){
6612 return localDelegationID;
6613 }
6614
6615
6616
6617
6618
6619
6620
6621 public void setDelegationID(java.lang.String param){
6622
6623 this.localDelegationID=param;
6624
6625
6626 }
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637 public org.apache.axiom.om.OMElement getOMElement (
6638 final javax.xml.namespace.QName parentQName,
6639 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
6640
6641
6642
6643 org.apache.axiom.om.OMDataSource dataSource =
6644 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
6645 return factory.createOMElement(dataSource,MY_QNAME);
6646
6647 }
6648
6649 public void serialize(final javax.xml.namespace.QName parentQName,
6650 javax.xml.stream.XMLStreamWriter xmlWriter)
6651 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
6652 serialize(parentQName,xmlWriter,false);
6653 }
6654
6655 public void serialize(final javax.xml.namespace.QName parentQName,
6656 javax.xml.stream.XMLStreamWriter xmlWriter,
6657 boolean serializeType)
6658 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
6659
6660
6661
6662
6663 java.lang.String prefix = null;
6664 java.lang.String namespace = null;
6665
6666
6667 prefix = parentQName.getPrefix();
6668 namespace = parentQName.getNamespaceURI();
6669 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
6670
6671 if (serializeType){
6672
6673
6674 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
6675 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
6676 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
6677 namespacePrefix+":destroy",
6678 xmlWriter);
6679 } else {
6680 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
6681 "destroy",
6682 xmlWriter);
6683 }
6684
6685
6686 }
6687
6688 namespace = "";
6689 writeStartElement(null, namespace, "delegationID", xmlWriter);
6690
6691
6692 if (localDelegationID==null){
6693
6694
6695 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
6696
6697 }else{
6698
6699
6700 xmlWriter.writeCharacters(localDelegationID);
6701
6702 }
6703
6704 xmlWriter.writeEndElement();
6705
6706 xmlWriter.writeEndElement();
6707
6708
6709 }
6710
6711 private static java.lang.String generatePrefix(java.lang.String namespace) {
6712 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
6713 return "ns2";
6714 }
6715 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
6716 }
6717
6718
6719
6720
6721 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
6722 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
6723 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
6724 if (writerPrefix != null) {
6725 xmlWriter.writeStartElement(namespace, localPart);
6726 } else {
6727 if (namespace.length() == 0) {
6728 prefix = "";
6729 } else if (prefix == null) {
6730 prefix = generatePrefix(namespace);
6731 }
6732
6733 xmlWriter.writeStartElement(prefix, localPart, namespace);
6734 xmlWriter.writeNamespace(prefix, namespace);
6735 xmlWriter.setPrefix(prefix, namespace);
6736 }
6737 }
6738
6739
6740
6741
6742 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
6743 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
6744 if (xmlWriter.getPrefix(namespace) == null) {
6745 xmlWriter.writeNamespace(prefix, namespace);
6746 xmlWriter.setPrefix(prefix, namespace);
6747 }
6748 xmlWriter.writeAttribute(namespace,attName,attValue);
6749 }
6750
6751
6752
6753
6754 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
6755 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
6756 if (namespace.equals("")) {
6757 xmlWriter.writeAttribute(attName,attValue);
6758 } else {
6759 registerPrefix(xmlWriter, namespace);
6760 xmlWriter.writeAttribute(namespace,attName,attValue);
6761 }
6762 }
6763
6764
6765
6766
6767
6768 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
6769 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
6770
6771 java.lang.String attributeNamespace = qname.getNamespaceURI();
6772 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
6773 if (attributePrefix == null) {
6774 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
6775 }
6776 java.lang.String attributeValue;
6777 if (attributePrefix.trim().length() > 0) {
6778 attributeValue = attributePrefix + ":" + qname.getLocalPart();
6779 } else {
6780 attributeValue = qname.getLocalPart();
6781 }
6782
6783 if (namespace.equals("")) {
6784 xmlWriter.writeAttribute(attName, attributeValue);
6785 } else {
6786 registerPrefix(xmlWriter, namespace);
6787 xmlWriter.writeAttribute(namespace, attName, attributeValue);
6788 }
6789 }
6790
6791
6792
6793
6794 private void writeQName(javax.xml.namespace.QName qname,
6795 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
6796 java.lang.String namespaceURI = qname.getNamespaceURI();
6797 if (namespaceURI != null) {
6798 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
6799 if (prefix == null) {
6800 prefix = generatePrefix(namespaceURI);
6801 xmlWriter.writeNamespace(prefix, namespaceURI);
6802 xmlWriter.setPrefix(prefix,namespaceURI);
6803 }
6804
6805 if (prefix.trim().length() > 0){
6806 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
6807 } else {
6808
6809 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
6810 }
6811
6812 } else {
6813 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
6814 }
6815 }
6816
6817 private void writeQNames(javax.xml.namespace.QName[] qnames,
6818 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
6819
6820 if (qnames != null) {
6821
6822
6823 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
6824 java.lang.String namespaceURI = null;
6825 java.lang.String prefix = null;
6826
6827 for (int i = 0; i < qnames.length; i++) {
6828 if (i > 0) {
6829 stringToWrite.append(" ");
6830 }
6831 namespaceURI = qnames[i].getNamespaceURI();
6832 if (namespaceURI != null) {
6833 prefix = xmlWriter.getPrefix(namespaceURI);
6834 if ((prefix == null) || (prefix.length() == 0)) {
6835 prefix = generatePrefix(namespaceURI);
6836 xmlWriter.writeNamespace(prefix, namespaceURI);
6837 xmlWriter.setPrefix(prefix,namespaceURI);
6838 }
6839
6840 if (prefix.trim().length() > 0){
6841 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
6842 } else {
6843 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
6844 }
6845 } else {
6846 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
6847 }
6848 }
6849 xmlWriter.writeCharacters(stringToWrite.toString());
6850 }
6851
6852 }
6853
6854
6855
6856
6857
6858 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
6859 java.lang.String prefix = xmlWriter.getPrefix(namespace);
6860 if (prefix == null) {
6861 prefix = generatePrefix(namespace);
6862 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
6863 while (true) {
6864 java.lang.String uri = nsContext.getNamespaceURI(prefix);
6865 if (uri == null || uri.length() == 0) {
6866 break;
6867 }
6868 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
6869 }
6870 xmlWriter.writeNamespace(prefix, namespace);
6871 xmlWriter.setPrefix(prefix, namespace);
6872 }
6873 return prefix;
6874 }
6875
6876
6877
6878
6879
6880
6881
6882 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
6883 throws org.apache.axis2.databinding.ADBException{
6884
6885
6886
6887 java.util.ArrayList elementList = new java.util.ArrayList();
6888 java.util.ArrayList attribList = new java.util.ArrayList();
6889
6890
6891 elementList.add(new javax.xml.namespace.QName("",
6892 "delegationID"));
6893
6894 elementList.add(localDelegationID==null?null:
6895 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDelegationID));
6896
6897
6898 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
6899
6900
6901
6902 }
6903
6904
6905
6906
6907
6908
6909 public static class Factory{
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921 public static Destroy parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
6922 Destroy object =
6923 new Destroy();
6924
6925 int event;
6926 java.lang.String nillableValue = null;
6927 java.lang.String prefix ="";
6928 java.lang.String namespaceuri ="";
6929 try {
6930
6931 while (!reader.isStartElement() && !reader.isEndElement())
6932 reader.next();
6933
6934
6935 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
6936 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
6937 "type");
6938 if (fullTypeName!=null){
6939 java.lang.String nsPrefix = null;
6940 if (fullTypeName.indexOf(":") > -1){
6941 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
6942 }
6943 nsPrefix = nsPrefix==null?"":nsPrefix;
6944
6945 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
6946
6947 if (!"destroy".equals(type)){
6948
6949 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
6950 return (Destroy)ExtensionMapper.getTypeObject(
6951 nsUri,type,reader);
6952 }
6953
6954
6955 }
6956
6957
6958 }
6959
6960
6961
6962
6963
6964
6965 java.util.Vector handledAttributes = new java.util.Vector();
6966
6967
6968
6969
6970 reader.next();
6971
6972
6973 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
6974
6975 if (reader.isStartElement() && new javax.xml.namespace.QName("","delegationID").equals(reader.getName())){
6976
6977 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
6978 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
6979
6980
6981 java.lang.String content = reader.getElementText();
6982
6983 object.setDelegationID(
6984 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
6985
6986 } else {
6987
6988
6989 reader.getElementText();
6990 }
6991
6992 reader.next();
6993
6994 }
6995
6996 else{
6997
6998 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
6999 }
7000
7001 while (!reader.isStartElement() && !reader.isEndElement())
7002 reader.next();
7003
7004 if (reader.isStartElement())
7005
7006 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
7007
7008
7009
7010
7011 } catch (javax.xml.stream.XMLStreamException e) {
7012 throw new java.lang.Exception(e);
7013 }
7014
7015 return object;
7016 }
7017
7018 }
7019
7020
7021
7022 }
7023
7024
7025 public static class GetNewProxyReqResponse
7026 implements org.apache.axis2.databinding.ADBBean{
7027
7028 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
7029 "http://www.gridsite.org/namespaces/delegation-2",
7030 "getNewProxyReqResponse",
7031 "ns2");
7032
7033
7034
7035
7036
7037
7038
7039
7040 protected NewProxyReq localGetNewProxyReqReturn ;
7041
7042
7043
7044
7045
7046
7047 public NewProxyReq getGetNewProxyReqReturn(){
7048 return localGetNewProxyReqReturn;
7049 }
7050
7051
7052
7053
7054
7055
7056
7057 public void setGetNewProxyReqReturn(NewProxyReq param){
7058
7059 this.localGetNewProxyReqReturn=param;
7060
7061
7062 }
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073 public org.apache.axiom.om.OMElement getOMElement (
7074 final javax.xml.namespace.QName parentQName,
7075 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
7076
7077
7078
7079 org.apache.axiom.om.OMDataSource dataSource =
7080 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
7081 return factory.createOMElement(dataSource,MY_QNAME);
7082
7083 }
7084
7085 public void serialize(final javax.xml.namespace.QName parentQName,
7086 javax.xml.stream.XMLStreamWriter xmlWriter)
7087 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
7088 serialize(parentQName,xmlWriter,false);
7089 }
7090
7091 public void serialize(final javax.xml.namespace.QName parentQName,
7092 javax.xml.stream.XMLStreamWriter xmlWriter,
7093 boolean serializeType)
7094 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
7095
7096
7097
7098
7099 java.lang.String prefix = null;
7100 java.lang.String namespace = null;
7101
7102
7103 prefix = parentQName.getPrefix();
7104 namespace = parentQName.getNamespaceURI();
7105 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
7106
7107 if (serializeType){
7108
7109
7110 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
7111 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
7112 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
7113 namespacePrefix+":getNewProxyReqResponse",
7114 xmlWriter);
7115 } else {
7116 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
7117 "getNewProxyReqResponse",
7118 xmlWriter);
7119 }
7120
7121
7122 }
7123
7124 if (localGetNewProxyReqReturn==null){
7125
7126 writeStartElement(null, "", "getNewProxyReqReturn", xmlWriter);
7127
7128
7129 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
7130 xmlWriter.writeEndElement();
7131 }else{
7132 localGetNewProxyReqReturn.serialize(new javax.xml.namespace.QName("","getNewProxyReqReturn"),
7133 xmlWriter);
7134 }
7135
7136 xmlWriter.writeEndElement();
7137
7138
7139 }
7140
7141 private static java.lang.String generatePrefix(java.lang.String namespace) {
7142 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
7143 return "ns2";
7144 }
7145 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
7146 }
7147
7148
7149
7150
7151 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
7152 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
7153 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
7154 if (writerPrefix != null) {
7155 xmlWriter.writeStartElement(namespace, localPart);
7156 } else {
7157 if (namespace.length() == 0) {
7158 prefix = "";
7159 } else if (prefix == null) {
7160 prefix = generatePrefix(namespace);
7161 }
7162
7163 xmlWriter.writeStartElement(prefix, localPart, namespace);
7164 xmlWriter.writeNamespace(prefix, namespace);
7165 xmlWriter.setPrefix(prefix, namespace);
7166 }
7167 }
7168
7169
7170
7171
7172 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
7173 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
7174 if (xmlWriter.getPrefix(namespace) == null) {
7175 xmlWriter.writeNamespace(prefix, namespace);
7176 xmlWriter.setPrefix(prefix, namespace);
7177 }
7178 xmlWriter.writeAttribute(namespace,attName,attValue);
7179 }
7180
7181
7182
7183
7184 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
7185 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
7186 if (namespace.equals("")) {
7187 xmlWriter.writeAttribute(attName,attValue);
7188 } else {
7189 registerPrefix(xmlWriter, namespace);
7190 xmlWriter.writeAttribute(namespace,attName,attValue);
7191 }
7192 }
7193
7194
7195
7196
7197
7198 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
7199 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
7200
7201 java.lang.String attributeNamespace = qname.getNamespaceURI();
7202 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
7203 if (attributePrefix == null) {
7204 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
7205 }
7206 java.lang.String attributeValue;
7207 if (attributePrefix.trim().length() > 0) {
7208 attributeValue = attributePrefix + ":" + qname.getLocalPart();
7209 } else {
7210 attributeValue = qname.getLocalPart();
7211 }
7212
7213 if (namespace.equals("")) {
7214 xmlWriter.writeAttribute(attName, attributeValue);
7215 } else {
7216 registerPrefix(xmlWriter, namespace);
7217 xmlWriter.writeAttribute(namespace, attName, attributeValue);
7218 }
7219 }
7220
7221
7222
7223
7224 private void writeQName(javax.xml.namespace.QName qname,
7225 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
7226 java.lang.String namespaceURI = qname.getNamespaceURI();
7227 if (namespaceURI != null) {
7228 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
7229 if (prefix == null) {
7230 prefix = generatePrefix(namespaceURI);
7231 xmlWriter.writeNamespace(prefix, namespaceURI);
7232 xmlWriter.setPrefix(prefix,namespaceURI);
7233 }
7234
7235 if (prefix.trim().length() > 0){
7236 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
7237 } else {
7238
7239 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
7240 }
7241
7242 } else {
7243 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
7244 }
7245 }
7246
7247 private void writeQNames(javax.xml.namespace.QName[] qnames,
7248 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
7249
7250 if (qnames != null) {
7251
7252
7253 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
7254 java.lang.String namespaceURI = null;
7255 java.lang.String prefix = null;
7256
7257 for (int i = 0; i < qnames.length; i++) {
7258 if (i > 0) {
7259 stringToWrite.append(" ");
7260 }
7261 namespaceURI = qnames[i].getNamespaceURI();
7262 if (namespaceURI != null) {
7263 prefix = xmlWriter.getPrefix(namespaceURI);
7264 if ((prefix == null) || (prefix.length() == 0)) {
7265 prefix = generatePrefix(namespaceURI);
7266 xmlWriter.writeNamespace(prefix, namespaceURI);
7267 xmlWriter.setPrefix(prefix,namespaceURI);
7268 }
7269
7270 if (prefix.trim().length() > 0){
7271 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
7272 } else {
7273 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
7274 }
7275 } else {
7276 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
7277 }
7278 }
7279 xmlWriter.writeCharacters(stringToWrite.toString());
7280 }
7281
7282 }
7283
7284
7285
7286
7287
7288 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
7289 java.lang.String prefix = xmlWriter.getPrefix(namespace);
7290 if (prefix == null) {
7291 prefix = generatePrefix(namespace);
7292 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
7293 while (true) {
7294 java.lang.String uri = nsContext.getNamespaceURI(prefix);
7295 if (uri == null || uri.length() == 0) {
7296 break;
7297 }
7298 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
7299 }
7300 xmlWriter.writeNamespace(prefix, namespace);
7301 xmlWriter.setPrefix(prefix, namespace);
7302 }
7303 return prefix;
7304 }
7305
7306
7307
7308
7309
7310
7311
7312 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
7313 throws org.apache.axis2.databinding.ADBException{
7314
7315
7316
7317 java.util.ArrayList elementList = new java.util.ArrayList();
7318 java.util.ArrayList attribList = new java.util.ArrayList();
7319
7320
7321 elementList.add(new javax.xml.namespace.QName("",
7322 "getNewProxyReqReturn"));
7323
7324
7325 elementList.add(localGetNewProxyReqReturn==null?null:
7326 localGetNewProxyReqReturn);
7327
7328
7329 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
7330
7331
7332
7333 }
7334
7335
7336
7337
7338
7339
7340 public static class Factory{
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352 public static GetNewProxyReqResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
7353 GetNewProxyReqResponse object =
7354 new GetNewProxyReqResponse();
7355
7356 int event;
7357 java.lang.String nillableValue = null;
7358 java.lang.String prefix ="";
7359 java.lang.String namespaceuri ="";
7360 try {
7361
7362 while (!reader.isStartElement() && !reader.isEndElement())
7363 reader.next();
7364
7365
7366 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
7367 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
7368 "type");
7369 if (fullTypeName!=null){
7370 java.lang.String nsPrefix = null;
7371 if (fullTypeName.indexOf(":") > -1){
7372 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
7373 }
7374 nsPrefix = nsPrefix==null?"":nsPrefix;
7375
7376 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
7377
7378 if (!"getNewProxyReqResponse".equals(type)){
7379
7380 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
7381 return (GetNewProxyReqResponse)ExtensionMapper.getTypeObject(
7382 nsUri,type,reader);
7383 }
7384
7385
7386 }
7387
7388
7389 }
7390
7391
7392
7393
7394
7395
7396 java.util.Vector handledAttributes = new java.util.Vector();
7397
7398
7399
7400
7401 reader.next();
7402
7403
7404 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
7405
7406 if (reader.isStartElement() && new javax.xml.namespace.QName("","getNewProxyReqReturn").equals(reader.getName())){
7407
7408 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
7409 if ("true".equals(nillableValue) || "1".equals(nillableValue)){
7410 object.setGetNewProxyReqReturn(null);
7411 reader.next();
7412
7413 reader.next();
7414
7415 }else{
7416
7417 object.setGetNewProxyReqReturn(NewProxyReq.Factory.parse(reader));
7418
7419 reader.next();
7420 }
7421 }
7422
7423 else{
7424
7425 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
7426 }
7427
7428 while (!reader.isStartElement() && !reader.isEndElement())
7429 reader.next();
7430
7431 if (reader.isStartElement())
7432
7433 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
7434
7435
7436
7437
7438 } catch (javax.xml.stream.XMLStreamException e) {
7439 throw new java.lang.Exception(e);
7440 }
7441
7442 return object;
7443 }
7444
7445 }
7446
7447
7448
7449 }
7450
7451
7452 public static class GetServiceMetadataResponse
7453 implements org.apache.axis2.databinding.ADBBean{
7454
7455 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
7456 "http://www.gridsite.org/namespaces/delegation-2",
7457 "getServiceMetadataResponse",
7458 "ns2");
7459
7460
7461
7462
7463
7464
7465
7466
7467 protected java.lang.String localGetServiceMetadataReturn ;
7468
7469
7470
7471
7472
7473
7474 public java.lang.String getGetServiceMetadataReturn(){
7475 return localGetServiceMetadataReturn;
7476 }
7477
7478
7479
7480
7481
7482
7483
7484 public void setGetServiceMetadataReturn(java.lang.String param){
7485
7486 this.localGetServiceMetadataReturn=param;
7487
7488
7489 }
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500 public org.apache.axiom.om.OMElement getOMElement (
7501 final javax.xml.namespace.QName parentQName,
7502 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
7503
7504
7505
7506 org.apache.axiom.om.OMDataSource dataSource =
7507 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
7508 return factory.createOMElement(dataSource,MY_QNAME);
7509
7510 }
7511
7512 public void serialize(final javax.xml.namespace.QName parentQName,
7513 javax.xml.stream.XMLStreamWriter xmlWriter)
7514 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
7515 serialize(parentQName,xmlWriter,false);
7516 }
7517
7518 public void serialize(final javax.xml.namespace.QName parentQName,
7519 javax.xml.stream.XMLStreamWriter xmlWriter,
7520 boolean serializeType)
7521 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
7522
7523
7524
7525
7526 java.lang.String prefix = null;
7527 java.lang.String namespace = null;
7528
7529
7530 prefix = parentQName.getPrefix();
7531 namespace = parentQName.getNamespaceURI();
7532 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
7533
7534 if (serializeType){
7535
7536
7537 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
7538 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
7539 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
7540 namespacePrefix+":getServiceMetadataResponse",
7541 xmlWriter);
7542 } else {
7543 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
7544 "getServiceMetadataResponse",
7545 xmlWriter);
7546 }
7547
7548
7549 }
7550
7551 namespace = "";
7552 writeStartElement(null, namespace, "getServiceMetadataReturn", xmlWriter);
7553
7554
7555 if (localGetServiceMetadataReturn==null){
7556
7557
7558 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
7559
7560 }else{
7561
7562
7563 xmlWriter.writeCharacters(localGetServiceMetadataReturn);
7564
7565 }
7566
7567 xmlWriter.writeEndElement();
7568
7569 xmlWriter.writeEndElement();
7570
7571
7572 }
7573
7574 private static java.lang.String generatePrefix(java.lang.String namespace) {
7575 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
7576 return "ns2";
7577 }
7578 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
7579 }
7580
7581
7582
7583
7584 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
7585 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
7586 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
7587 if (writerPrefix != null) {
7588 xmlWriter.writeStartElement(namespace, localPart);
7589 } else {
7590 if (namespace.length() == 0) {
7591 prefix = "";
7592 } else if (prefix == null) {
7593 prefix = generatePrefix(namespace);
7594 }
7595
7596 xmlWriter.writeStartElement(prefix, localPart, namespace);
7597 xmlWriter.writeNamespace(prefix, namespace);
7598 xmlWriter.setPrefix(prefix, namespace);
7599 }
7600 }
7601
7602
7603
7604
7605 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
7606 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
7607 if (xmlWriter.getPrefix(namespace) == null) {
7608 xmlWriter.writeNamespace(prefix, namespace);
7609 xmlWriter.setPrefix(prefix, namespace);
7610 }
7611 xmlWriter.writeAttribute(namespace,attName,attValue);
7612 }
7613
7614
7615
7616
7617 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
7618 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
7619 if (namespace.equals("")) {
7620 xmlWriter.writeAttribute(attName,attValue);
7621 } else {
7622 registerPrefix(xmlWriter, namespace);
7623 xmlWriter.writeAttribute(namespace,attName,attValue);
7624 }
7625 }
7626
7627
7628
7629
7630
7631 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
7632 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
7633
7634 java.lang.String attributeNamespace = qname.getNamespaceURI();
7635 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
7636 if (attributePrefix == null) {
7637 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
7638 }
7639 java.lang.String attributeValue;
7640 if (attributePrefix.trim().length() > 0) {
7641 attributeValue = attributePrefix + ":" + qname.getLocalPart();
7642 } else {
7643 attributeValue = qname.getLocalPart();
7644 }
7645
7646 if (namespace.equals("")) {
7647 xmlWriter.writeAttribute(attName, attributeValue);
7648 } else {
7649 registerPrefix(xmlWriter, namespace);
7650 xmlWriter.writeAttribute(namespace, attName, attributeValue);
7651 }
7652 }
7653
7654
7655
7656
7657 private void writeQName(javax.xml.namespace.QName qname,
7658 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
7659 java.lang.String namespaceURI = qname.getNamespaceURI();
7660 if (namespaceURI != null) {
7661 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
7662 if (prefix == null) {
7663 prefix = generatePrefix(namespaceURI);
7664 xmlWriter.writeNamespace(prefix, namespaceURI);
7665 xmlWriter.setPrefix(prefix,namespaceURI);
7666 }
7667
7668 if (prefix.trim().length() > 0){
7669 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
7670 } else {
7671
7672 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
7673 }
7674
7675 } else {
7676 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
7677 }
7678 }
7679
7680 private void writeQNames(javax.xml.namespace.QName[] qnames,
7681 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
7682
7683 if (qnames != null) {
7684
7685
7686 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
7687 java.lang.String namespaceURI = null;
7688 java.lang.String prefix = null;
7689
7690 for (int i = 0; i < qnames.length; i++) {
7691 if (i > 0) {
7692 stringToWrite.append(" ");
7693 }
7694 namespaceURI = qnames[i].getNamespaceURI();
7695 if (namespaceURI != null) {
7696 prefix = xmlWriter.getPrefix(namespaceURI);
7697 if ((prefix == null) || (prefix.length() == 0)) {
7698 prefix = generatePrefix(namespaceURI);
7699 xmlWriter.writeNamespace(prefix, namespaceURI);
7700 xmlWriter.setPrefix(prefix,namespaceURI);
7701 }
7702
7703 if (prefix.trim().length() > 0){
7704 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
7705 } else {
7706 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
7707 }
7708 } else {
7709 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
7710 }
7711 }
7712 xmlWriter.writeCharacters(stringToWrite.toString());
7713 }
7714
7715 }
7716
7717
7718
7719
7720
7721 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
7722 java.lang.String prefix = xmlWriter.getPrefix(namespace);
7723 if (prefix == null) {
7724 prefix = generatePrefix(namespace);
7725 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
7726 while (true) {
7727 java.lang.String uri = nsContext.getNamespaceURI(prefix);
7728 if (uri == null || uri.length() == 0) {
7729 break;
7730 }
7731 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
7732 }
7733 xmlWriter.writeNamespace(prefix, namespace);
7734 xmlWriter.setPrefix(prefix, namespace);
7735 }
7736 return prefix;
7737 }
7738
7739
7740
7741
7742
7743
7744
7745 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
7746 throws org.apache.axis2.databinding.ADBException{
7747
7748
7749
7750 java.util.ArrayList elementList = new java.util.ArrayList();
7751 java.util.ArrayList attribList = new java.util.ArrayList();
7752
7753
7754 elementList.add(new javax.xml.namespace.QName("",
7755 "getServiceMetadataReturn"));
7756
7757 elementList.add(localGetServiceMetadataReturn==null?null:
7758 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGetServiceMetadataReturn));
7759
7760
7761 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
7762
7763
7764
7765 }
7766
7767
7768
7769
7770
7771
7772 public static class Factory{
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784 public static GetServiceMetadataResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
7785 GetServiceMetadataResponse object =
7786 new GetServiceMetadataResponse();
7787
7788 int event;
7789 java.lang.String nillableValue = null;
7790 java.lang.String prefix ="";
7791 java.lang.String namespaceuri ="";
7792 try {
7793
7794 while (!reader.isStartElement() && !reader.isEndElement())
7795 reader.next();
7796
7797
7798 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
7799 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
7800 "type");
7801 if (fullTypeName!=null){
7802 java.lang.String nsPrefix = null;
7803 if (fullTypeName.indexOf(":") > -1){
7804 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
7805 }
7806 nsPrefix = nsPrefix==null?"":nsPrefix;
7807
7808 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
7809
7810 if (!"getServiceMetadataResponse".equals(type)){
7811
7812 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
7813 return (GetServiceMetadataResponse)ExtensionMapper.getTypeObject(
7814 nsUri,type,reader);
7815 }
7816
7817
7818 }
7819
7820
7821 }
7822
7823
7824
7825
7826
7827
7828 java.util.Vector handledAttributes = new java.util.Vector();
7829
7830
7831
7832
7833 reader.next();
7834
7835
7836 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
7837
7838 if (reader.isStartElement() && new javax.xml.namespace.QName("","getServiceMetadataReturn").equals(reader.getName())){
7839
7840 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
7841 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
7842
7843
7844 java.lang.String content = reader.getElementText();
7845
7846 object.setGetServiceMetadataReturn(
7847 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
7848
7849 } else {
7850
7851
7852 reader.getElementText();
7853 }
7854
7855 reader.next();
7856
7857 }
7858
7859 else{
7860
7861 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
7862 }
7863
7864 while (!reader.isStartElement() && !reader.isEndElement())
7865 reader.next();
7866
7867 if (reader.isStartElement())
7868
7869 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
7870
7871
7872
7873
7874 } catch (javax.xml.stream.XMLStreamException e) {
7875 throw new java.lang.Exception(e);
7876 }
7877
7878 return object;
7879 }
7880
7881 }
7882
7883
7884
7885 }
7886
7887
7888 public static class GetServiceMetadata
7889 implements org.apache.axis2.databinding.ADBBean{
7890
7891 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
7892 "http://www.gridsite.org/namespaces/delegation-2",
7893 "getServiceMetadata",
7894 "ns2");
7895
7896
7897
7898
7899
7900
7901
7902
7903 protected java.lang.String localKey ;
7904
7905
7906
7907
7908
7909
7910 public java.lang.String getKey(){
7911 return localKey;
7912 }
7913
7914
7915
7916
7917
7918
7919
7920 public void setKey(java.lang.String param){
7921
7922 this.localKey=param;
7923
7924
7925 }
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936 public org.apache.axiom.om.OMElement getOMElement (
7937 final javax.xml.namespace.QName parentQName,
7938 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
7939
7940
7941
7942 org.apache.axiom.om.OMDataSource dataSource =
7943 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
7944 return factory.createOMElement(dataSource,MY_QNAME);
7945
7946 }
7947
7948 public void serialize(final javax.xml.namespace.QName parentQName,
7949 javax.xml.stream.XMLStreamWriter xmlWriter)
7950 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
7951 serialize(parentQName,xmlWriter,false);
7952 }
7953
7954 public void serialize(final javax.xml.namespace.QName parentQName,
7955 javax.xml.stream.XMLStreamWriter xmlWriter,
7956 boolean serializeType)
7957 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
7958
7959
7960
7961
7962 java.lang.String prefix = null;
7963 java.lang.String namespace = null;
7964
7965
7966 prefix = parentQName.getPrefix();
7967 namespace = parentQName.getNamespaceURI();
7968 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
7969
7970 if (serializeType){
7971
7972
7973 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
7974 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
7975 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
7976 namespacePrefix+":getServiceMetadata",
7977 xmlWriter);
7978 } else {
7979 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
7980 "getServiceMetadata",
7981 xmlWriter);
7982 }
7983
7984
7985 }
7986
7987 namespace = "";
7988 writeStartElement(null, namespace, "key", xmlWriter);
7989
7990
7991 if (localKey==null){
7992
7993
7994 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
7995
7996 }else{
7997
7998
7999 xmlWriter.writeCharacters(localKey);
8000
8001 }
8002
8003 xmlWriter.writeEndElement();
8004
8005 xmlWriter.writeEndElement();
8006
8007
8008 }
8009
8010 private static java.lang.String generatePrefix(java.lang.String namespace) {
8011 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
8012 return "ns2";
8013 }
8014 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
8015 }
8016
8017
8018
8019
8020 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
8021 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
8022 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
8023 if (writerPrefix != null) {
8024 xmlWriter.writeStartElement(namespace, localPart);
8025 } else {
8026 if (namespace.length() == 0) {
8027 prefix = "";
8028 } else if (prefix == null) {
8029 prefix = generatePrefix(namespace);
8030 }
8031
8032 xmlWriter.writeStartElement(prefix, localPart, namespace);
8033 xmlWriter.writeNamespace(prefix, namespace);
8034 xmlWriter.setPrefix(prefix, namespace);
8035 }
8036 }
8037
8038
8039
8040
8041 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
8042 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
8043 if (xmlWriter.getPrefix(namespace) == null) {
8044 xmlWriter.writeNamespace(prefix, namespace);
8045 xmlWriter.setPrefix(prefix, namespace);
8046 }
8047 xmlWriter.writeAttribute(namespace,attName,attValue);
8048 }
8049
8050
8051
8052
8053 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
8054 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
8055 if (namespace.equals("")) {
8056 xmlWriter.writeAttribute(attName,attValue);
8057 } else {
8058 registerPrefix(xmlWriter, namespace);
8059 xmlWriter.writeAttribute(namespace,attName,attValue);
8060 }
8061 }
8062
8063
8064
8065
8066
8067 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
8068 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
8069
8070 java.lang.String attributeNamespace = qname.getNamespaceURI();
8071 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
8072 if (attributePrefix == null) {
8073 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
8074 }
8075 java.lang.String attributeValue;
8076 if (attributePrefix.trim().length() > 0) {
8077 attributeValue = attributePrefix + ":" + qname.getLocalPart();
8078 } else {
8079 attributeValue = qname.getLocalPart();
8080 }
8081
8082 if (namespace.equals("")) {
8083 xmlWriter.writeAttribute(attName, attributeValue);
8084 } else {
8085 registerPrefix(xmlWriter, namespace);
8086 xmlWriter.writeAttribute(namespace, attName, attributeValue);
8087 }
8088 }
8089
8090
8091
8092
8093 private void writeQName(javax.xml.namespace.QName qname,
8094 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
8095 java.lang.String namespaceURI = qname.getNamespaceURI();
8096 if (namespaceURI != null) {
8097 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
8098 if (prefix == null) {
8099 prefix = generatePrefix(namespaceURI);
8100 xmlWriter.writeNamespace(prefix, namespaceURI);
8101 xmlWriter.setPrefix(prefix,namespaceURI);
8102 }
8103
8104 if (prefix.trim().length() > 0){
8105 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
8106 } else {
8107
8108 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
8109 }
8110
8111 } else {
8112 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
8113 }
8114 }
8115
8116 private void writeQNames(javax.xml.namespace.QName[] qnames,
8117 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
8118
8119 if (qnames != null) {
8120
8121
8122 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
8123 java.lang.String namespaceURI = null;
8124 java.lang.String prefix = null;
8125
8126 for (int i = 0; i < qnames.length; i++) {
8127 if (i > 0) {
8128 stringToWrite.append(" ");
8129 }
8130 namespaceURI = qnames[i].getNamespaceURI();
8131 if (namespaceURI != null) {
8132 prefix = xmlWriter.getPrefix(namespaceURI);
8133 if ((prefix == null) || (prefix.length() == 0)) {
8134 prefix = generatePrefix(namespaceURI);
8135 xmlWriter.writeNamespace(prefix, namespaceURI);
8136 xmlWriter.setPrefix(prefix,namespaceURI);
8137 }
8138
8139 if (prefix.trim().length() > 0){
8140 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
8141 } else {
8142 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
8143 }
8144 } else {
8145 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
8146 }
8147 }
8148 xmlWriter.writeCharacters(stringToWrite.toString());
8149 }
8150
8151 }
8152
8153
8154
8155
8156
8157 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
8158 java.lang.String prefix = xmlWriter.getPrefix(namespace);
8159 if (prefix == null) {
8160 prefix = generatePrefix(namespace);
8161 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
8162 while (true) {
8163 java.lang.String uri = nsContext.getNamespaceURI(prefix);
8164 if (uri == null || uri.length() == 0) {
8165 break;
8166 }
8167 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
8168 }
8169 xmlWriter.writeNamespace(prefix, namespace);
8170 xmlWriter.setPrefix(prefix, namespace);
8171 }
8172 return prefix;
8173 }
8174
8175
8176
8177
8178
8179
8180
8181 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
8182 throws org.apache.axis2.databinding.ADBException{
8183
8184
8185
8186 java.util.ArrayList elementList = new java.util.ArrayList();
8187 java.util.ArrayList attribList = new java.util.ArrayList();
8188
8189
8190 elementList.add(new javax.xml.namespace.QName("",
8191 "key"));
8192
8193 elementList.add(localKey==null?null:
8194 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localKey));
8195
8196
8197 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
8198
8199
8200
8201 }
8202
8203
8204
8205
8206
8207
8208 public static class Factory{
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220 public static GetServiceMetadata parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
8221 GetServiceMetadata object =
8222 new GetServiceMetadata();
8223
8224 int event;
8225 java.lang.String nillableValue = null;
8226 java.lang.String prefix ="";
8227 java.lang.String namespaceuri ="";
8228 try {
8229
8230 while (!reader.isStartElement() && !reader.isEndElement())
8231 reader.next();
8232
8233
8234 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
8235 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
8236 "type");
8237 if (fullTypeName!=null){
8238 java.lang.String nsPrefix = null;
8239 if (fullTypeName.indexOf(":") > -1){
8240 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
8241 }
8242 nsPrefix = nsPrefix==null?"":nsPrefix;
8243
8244 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
8245
8246 if (!"getServiceMetadata".equals(type)){
8247
8248 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
8249 return (GetServiceMetadata)ExtensionMapper.getTypeObject(
8250 nsUri,type,reader);
8251 }
8252
8253
8254 }
8255
8256
8257 }
8258
8259
8260
8261
8262
8263
8264 java.util.Vector handledAttributes = new java.util.Vector();
8265
8266
8267
8268
8269 reader.next();
8270
8271
8272 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
8273
8274 if (reader.isStartElement() && new javax.xml.namespace.QName("","key").equals(reader.getName())){
8275
8276 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
8277 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
8278
8279
8280 java.lang.String content = reader.getElementText();
8281
8282 object.setKey(
8283 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
8284
8285 } else {
8286
8287
8288 reader.getElementText();
8289 }
8290
8291 reader.next();
8292
8293 }
8294
8295 else{
8296
8297 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
8298 }
8299
8300 while (!reader.isStartElement() && !reader.isEndElement())
8301 reader.next();
8302
8303 if (reader.isStartElement())
8304
8305 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
8306
8307
8308
8309
8310 } catch (javax.xml.stream.XMLStreamException e) {
8311 throw new java.lang.Exception(e);
8312 }
8313
8314 return object;
8315 }
8316
8317 }
8318
8319
8320
8321 }
8322
8323
8324 public static class GetProxyReq
8325 implements org.apache.axis2.databinding.ADBBean{
8326
8327 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
8328 "http://www.gridsite.org/namespaces/delegation-2",
8329 "getProxyReq",
8330 "ns2");
8331
8332
8333
8334
8335
8336
8337
8338
8339 protected java.lang.String localDelegationID ;
8340
8341
8342
8343
8344
8345
8346 public java.lang.String getDelegationID(){
8347 return localDelegationID;
8348 }
8349
8350
8351
8352
8353
8354
8355
8356 public void setDelegationID(java.lang.String param){
8357
8358 this.localDelegationID=param;
8359
8360
8361 }
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372 public org.apache.axiom.om.OMElement getOMElement (
8373 final javax.xml.namespace.QName parentQName,
8374 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
8375
8376
8377
8378 org.apache.axiom.om.OMDataSource dataSource =
8379 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
8380 return factory.createOMElement(dataSource,MY_QNAME);
8381
8382 }
8383
8384 public void serialize(final javax.xml.namespace.QName parentQName,
8385 javax.xml.stream.XMLStreamWriter xmlWriter)
8386 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
8387 serialize(parentQName,xmlWriter,false);
8388 }
8389
8390 public void serialize(final javax.xml.namespace.QName parentQName,
8391 javax.xml.stream.XMLStreamWriter xmlWriter,
8392 boolean serializeType)
8393 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
8394
8395
8396
8397
8398 java.lang.String prefix = null;
8399 java.lang.String namespace = null;
8400
8401
8402 prefix = parentQName.getPrefix();
8403 namespace = parentQName.getNamespaceURI();
8404 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
8405
8406 if (serializeType){
8407
8408
8409 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
8410 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
8411 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
8412 namespacePrefix+":getProxyReq",
8413 xmlWriter);
8414 } else {
8415 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
8416 "getProxyReq",
8417 xmlWriter);
8418 }
8419
8420
8421 }
8422
8423 namespace = "";
8424 writeStartElement(null, namespace, "delegationID", xmlWriter);
8425
8426
8427 if (localDelegationID==null){
8428
8429
8430 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
8431
8432 }else{
8433
8434
8435 xmlWriter.writeCharacters(localDelegationID);
8436
8437 }
8438
8439 xmlWriter.writeEndElement();
8440
8441 xmlWriter.writeEndElement();
8442
8443
8444 }
8445
8446 private static java.lang.String generatePrefix(java.lang.String namespace) {
8447 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
8448 return "ns2";
8449 }
8450 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
8451 }
8452
8453
8454
8455
8456 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
8457 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
8458 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
8459 if (writerPrefix != null) {
8460 xmlWriter.writeStartElement(namespace, localPart);
8461 } else {
8462 if (namespace.length() == 0) {
8463 prefix = "";
8464 } else if (prefix == null) {
8465 prefix = generatePrefix(namespace);
8466 }
8467
8468 xmlWriter.writeStartElement(prefix, localPart, namespace);
8469 xmlWriter.writeNamespace(prefix, namespace);
8470 xmlWriter.setPrefix(prefix, namespace);
8471 }
8472 }
8473
8474
8475
8476
8477 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
8478 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
8479 if (xmlWriter.getPrefix(namespace) == null) {
8480 xmlWriter.writeNamespace(prefix, namespace);
8481 xmlWriter.setPrefix(prefix, namespace);
8482 }
8483 xmlWriter.writeAttribute(namespace,attName,attValue);
8484 }
8485
8486
8487
8488
8489 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
8490 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
8491 if (namespace.equals("")) {
8492 xmlWriter.writeAttribute(attName,attValue);
8493 } else {
8494 registerPrefix(xmlWriter, namespace);
8495 xmlWriter.writeAttribute(namespace,attName,attValue);
8496 }
8497 }
8498
8499
8500
8501
8502
8503 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
8504 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
8505
8506 java.lang.String attributeNamespace = qname.getNamespaceURI();
8507 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
8508 if (attributePrefix == null) {
8509 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
8510 }
8511 java.lang.String attributeValue;
8512 if (attributePrefix.trim().length() > 0) {
8513 attributeValue = attributePrefix + ":" + qname.getLocalPart();
8514 } else {
8515 attributeValue = qname.getLocalPart();
8516 }
8517
8518 if (namespace.equals("")) {
8519 xmlWriter.writeAttribute(attName, attributeValue);
8520 } else {
8521 registerPrefix(xmlWriter, namespace);
8522 xmlWriter.writeAttribute(namespace, attName, attributeValue);
8523 }
8524 }
8525
8526
8527
8528
8529 private void writeQName(javax.xml.namespace.QName qname,
8530 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
8531 java.lang.String namespaceURI = qname.getNamespaceURI();
8532 if (namespaceURI != null) {
8533 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
8534 if (prefix == null) {
8535 prefix = generatePrefix(namespaceURI);
8536 xmlWriter.writeNamespace(prefix, namespaceURI);
8537 xmlWriter.setPrefix(prefix,namespaceURI);
8538 }
8539
8540 if (prefix.trim().length() > 0){
8541 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
8542 } else {
8543
8544 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
8545 }
8546
8547 } else {
8548 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
8549 }
8550 }
8551
8552 private void writeQNames(javax.xml.namespace.QName[] qnames,
8553 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
8554
8555 if (qnames != null) {
8556
8557
8558 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
8559 java.lang.String namespaceURI = null;
8560 java.lang.String prefix = null;
8561
8562 for (int i = 0; i < qnames.length; i++) {
8563 if (i > 0) {
8564 stringToWrite.append(" ");
8565 }
8566 namespaceURI = qnames[i].getNamespaceURI();
8567 if (namespaceURI != null) {
8568 prefix = xmlWriter.getPrefix(namespaceURI);
8569 if ((prefix == null) || (prefix.length() == 0)) {
8570 prefix = generatePrefix(namespaceURI);
8571 xmlWriter.writeNamespace(prefix, namespaceURI);
8572 xmlWriter.setPrefix(prefix,namespaceURI);
8573 }
8574
8575 if (prefix.trim().length() > 0){
8576 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
8577 } else {
8578 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
8579 }
8580 } else {
8581 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
8582 }
8583 }
8584 xmlWriter.writeCharacters(stringToWrite.toString());
8585 }
8586
8587 }
8588
8589
8590
8591
8592
8593 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
8594 java.lang.String prefix = xmlWriter.getPrefix(namespace);
8595 if (prefix == null) {
8596 prefix = generatePrefix(namespace);
8597 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
8598 while (true) {
8599 java.lang.String uri = nsContext.getNamespaceURI(prefix);
8600 if (uri == null || uri.length() == 0) {
8601 break;
8602 }
8603 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
8604 }
8605 xmlWriter.writeNamespace(prefix, namespace);
8606 xmlWriter.setPrefix(prefix, namespace);
8607 }
8608 return prefix;
8609 }
8610
8611
8612
8613
8614
8615
8616
8617 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
8618 throws org.apache.axis2.databinding.ADBException{
8619
8620
8621
8622 java.util.ArrayList elementList = new java.util.ArrayList();
8623 java.util.ArrayList attribList = new java.util.ArrayList();
8624
8625
8626 elementList.add(new javax.xml.namespace.QName("",
8627 "delegationID"));
8628
8629 elementList.add(localDelegationID==null?null:
8630 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDelegationID));
8631
8632
8633 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
8634
8635
8636
8637 }
8638
8639
8640
8641
8642
8643
8644 public static class Factory{
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656 public static GetProxyReq parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
8657 GetProxyReq object =
8658 new GetProxyReq();
8659
8660 int event;
8661 java.lang.String nillableValue = null;
8662 java.lang.String prefix ="";
8663 java.lang.String namespaceuri ="";
8664 try {
8665
8666 while (!reader.isStartElement() && !reader.isEndElement())
8667 reader.next();
8668
8669
8670 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
8671 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
8672 "type");
8673 if (fullTypeName!=null){
8674 java.lang.String nsPrefix = null;
8675 if (fullTypeName.indexOf(":") > -1){
8676 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
8677 }
8678 nsPrefix = nsPrefix==null?"":nsPrefix;
8679
8680 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
8681
8682 if (!"getProxyReq".equals(type)){
8683
8684 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
8685 return (GetProxyReq)ExtensionMapper.getTypeObject(
8686 nsUri,type,reader);
8687 }
8688
8689
8690 }
8691
8692
8693 }
8694
8695
8696
8697
8698
8699
8700 java.util.Vector handledAttributes = new java.util.Vector();
8701
8702
8703
8704
8705 reader.next();
8706
8707
8708 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
8709
8710 if (reader.isStartElement() && new javax.xml.namespace.QName("","delegationID").equals(reader.getName())){
8711
8712 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
8713 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
8714
8715
8716 java.lang.String content = reader.getElementText();
8717
8718 object.setDelegationID(
8719 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
8720
8721 } else {
8722
8723
8724 reader.getElementText();
8725 }
8726
8727 reader.next();
8728
8729 }
8730
8731 else{
8732
8733 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
8734 }
8735
8736 while (!reader.isStartElement() && !reader.isEndElement())
8737 reader.next();
8738
8739 if (reader.isStartElement())
8740
8741 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
8742
8743
8744
8745
8746 } catch (javax.xml.stream.XMLStreamException e) {
8747 throw new java.lang.Exception(e);
8748 }
8749
8750 return object;
8751 }
8752
8753 }
8754
8755
8756
8757 }
8758
8759
8760 public static class GetInterfaceVersion
8761 implements org.apache.axis2.databinding.ADBBean{
8762
8763 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
8764 "http://www.gridsite.org/namespaces/delegation-2",
8765 "getInterfaceVersion",
8766 "ns2");
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778 public org.apache.axiom.om.OMElement getOMElement (
8779 final javax.xml.namespace.QName parentQName,
8780 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
8781
8782
8783
8784 org.apache.axiom.om.OMDataSource dataSource =
8785 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
8786 return factory.createOMElement(dataSource,MY_QNAME);
8787
8788 }
8789
8790 public void serialize(final javax.xml.namespace.QName parentQName,
8791 javax.xml.stream.XMLStreamWriter xmlWriter)
8792 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
8793 serialize(parentQName,xmlWriter,false);
8794 }
8795
8796 public void serialize(final javax.xml.namespace.QName parentQName,
8797 javax.xml.stream.XMLStreamWriter xmlWriter,
8798 boolean serializeType)
8799 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
8800
8801
8802
8803
8804 java.lang.String prefix = null;
8805 java.lang.String namespace = null;
8806
8807
8808 prefix = parentQName.getPrefix();
8809 namespace = parentQName.getNamespaceURI();
8810 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
8811
8812 if (serializeType){
8813
8814
8815 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
8816 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
8817 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
8818 namespacePrefix+":getInterfaceVersion",
8819 xmlWriter);
8820 } else {
8821 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
8822 "getInterfaceVersion",
8823 xmlWriter);
8824 }
8825
8826
8827 }
8828
8829 xmlWriter.writeEndElement();
8830
8831
8832 }
8833
8834 private static java.lang.String generatePrefix(java.lang.String namespace) {
8835 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
8836 return "ns2";
8837 }
8838 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
8839 }
8840
8841
8842
8843
8844 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
8845 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
8846 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
8847 if (writerPrefix != null) {
8848 xmlWriter.writeStartElement(namespace, localPart);
8849 } else {
8850 if (namespace.length() == 0) {
8851 prefix = "";
8852 } else if (prefix == null) {
8853 prefix = generatePrefix(namespace);
8854 }
8855
8856 xmlWriter.writeStartElement(prefix, localPart, namespace);
8857 xmlWriter.writeNamespace(prefix, namespace);
8858 xmlWriter.setPrefix(prefix, namespace);
8859 }
8860 }
8861
8862
8863
8864
8865 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
8866 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
8867 if (xmlWriter.getPrefix(namespace) == null) {
8868 xmlWriter.writeNamespace(prefix, namespace);
8869 xmlWriter.setPrefix(prefix, namespace);
8870 }
8871 xmlWriter.writeAttribute(namespace,attName,attValue);
8872 }
8873
8874
8875
8876
8877 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
8878 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
8879 if (namespace.equals("")) {
8880 xmlWriter.writeAttribute(attName,attValue);
8881 } else {
8882 registerPrefix(xmlWriter, namespace);
8883 xmlWriter.writeAttribute(namespace,attName,attValue);
8884 }
8885 }
8886
8887
8888
8889
8890
8891 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
8892 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
8893
8894 java.lang.String attributeNamespace = qname.getNamespaceURI();
8895 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
8896 if (attributePrefix == null) {
8897 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
8898 }
8899 java.lang.String attributeValue;
8900 if (attributePrefix.trim().length() > 0) {
8901 attributeValue = attributePrefix + ":" + qname.getLocalPart();
8902 } else {
8903 attributeValue = qname.getLocalPart();
8904 }
8905
8906 if (namespace.equals("")) {
8907 xmlWriter.writeAttribute(attName, attributeValue);
8908 } else {
8909 registerPrefix(xmlWriter, namespace);
8910 xmlWriter.writeAttribute(namespace, attName, attributeValue);
8911 }
8912 }
8913
8914
8915
8916
8917 private void writeQName(javax.xml.namespace.QName qname,
8918 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
8919 java.lang.String namespaceURI = qname.getNamespaceURI();
8920 if (namespaceURI != null) {
8921 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
8922 if (prefix == null) {
8923 prefix = generatePrefix(namespaceURI);
8924 xmlWriter.writeNamespace(prefix, namespaceURI);
8925 xmlWriter.setPrefix(prefix,namespaceURI);
8926 }
8927
8928 if (prefix.trim().length() > 0){
8929 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
8930 } else {
8931
8932 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
8933 }
8934
8935 } else {
8936 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
8937 }
8938 }
8939
8940 private void writeQNames(javax.xml.namespace.QName[] qnames,
8941 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
8942
8943 if (qnames != null) {
8944
8945
8946 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
8947 java.lang.String namespaceURI = null;
8948 java.lang.String prefix = null;
8949
8950 for (int i = 0; i < qnames.length; i++) {
8951 if (i > 0) {
8952 stringToWrite.append(" ");
8953 }
8954 namespaceURI = qnames[i].getNamespaceURI();
8955 if (namespaceURI != null) {
8956 prefix = xmlWriter.getPrefix(namespaceURI);
8957 if ((prefix == null) || (prefix.length() == 0)) {
8958 prefix = generatePrefix(namespaceURI);
8959 xmlWriter.writeNamespace(prefix, namespaceURI);
8960 xmlWriter.setPrefix(prefix,namespaceURI);
8961 }
8962
8963 if (prefix.trim().length() > 0){
8964 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
8965 } else {
8966 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
8967 }
8968 } else {
8969 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
8970 }
8971 }
8972 xmlWriter.writeCharacters(stringToWrite.toString());
8973 }
8974
8975 }
8976
8977
8978
8979
8980
8981 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
8982 java.lang.String prefix = xmlWriter.getPrefix(namespace);
8983 if (prefix == null) {
8984 prefix = generatePrefix(namespace);
8985 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
8986 while (true) {
8987 java.lang.String uri = nsContext.getNamespaceURI(prefix);
8988 if (uri == null || uri.length() == 0) {
8989 break;
8990 }
8991 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
8992 }
8993 xmlWriter.writeNamespace(prefix, namespace);
8994 xmlWriter.setPrefix(prefix, namespace);
8995 }
8996 return prefix;
8997 }
8998
8999
9000
9001
9002
9003
9004
9005 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
9006 throws org.apache.axis2.databinding.ADBException{
9007
9008
9009
9010 java.util.ArrayList elementList = new java.util.ArrayList();
9011 java.util.ArrayList attribList = new java.util.ArrayList();
9012
9013
9014
9015 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
9016
9017
9018
9019 }
9020
9021
9022
9023
9024
9025
9026 public static class Factory{
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038 public static GetInterfaceVersion parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
9039 GetInterfaceVersion object =
9040 new GetInterfaceVersion();
9041
9042 int event;
9043 java.lang.String nillableValue = null;
9044 java.lang.String prefix ="";
9045 java.lang.String namespaceuri ="";
9046 try {
9047
9048 while (!reader.isStartElement() && !reader.isEndElement())
9049 reader.next();
9050
9051
9052 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
9053 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
9054 "type");
9055 if (fullTypeName!=null){
9056 java.lang.String nsPrefix = null;
9057 if (fullTypeName.indexOf(":") > -1){
9058 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
9059 }
9060 nsPrefix = nsPrefix==null?"":nsPrefix;
9061
9062 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
9063
9064 if (!"getInterfaceVersion".equals(type)){
9065
9066 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
9067 return (GetInterfaceVersion)ExtensionMapper.getTypeObject(
9068 nsUri,type,reader);
9069 }
9070
9071
9072 }
9073
9074
9075 }
9076
9077
9078
9079
9080
9081
9082 java.util.Vector handledAttributes = new java.util.Vector();
9083
9084
9085
9086
9087 reader.next();
9088
9089 while (!reader.isStartElement() && !reader.isEndElement())
9090 reader.next();
9091
9092 if (reader.isStartElement())
9093
9094 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
9095
9096
9097
9098
9099 } catch (javax.xml.stream.XMLStreamException e) {
9100 throw new java.lang.Exception(e);
9101 }
9102
9103 return object;
9104 }
9105
9106 }
9107
9108
9109
9110 }
9111
9112
9113 public static class ExtensionMapper{
9114
9115 public static java.lang.Object getTypeObject(java.lang.String namespaceURI,
9116 java.lang.String typeName,
9117 javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
9118
9119
9120 if (
9121 "http://www.gridsite.org/namespaces/delegation-2".equals(namespaceURI) &&
9122 "NewProxyReq".equals(typeName)){
9123
9124 return NewProxyReq.Factory.parse(reader);
9125
9126
9127 }
9128
9129
9130 throw new org.apache.axis2.databinding.ADBException("Unsupported type " + namespaceURI + " " + typeName);
9131 }
9132
9133 }
9134
9135 public static class RenewProxyReq
9136 implements org.apache.axis2.databinding.ADBBean{
9137
9138 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
9139 "http://www.gridsite.org/namespaces/delegation-2",
9140 "renewProxyReq",
9141 "ns2");
9142
9143
9144
9145
9146
9147
9148
9149
9150 protected java.lang.String localDelegationID ;
9151
9152
9153
9154
9155
9156
9157 public java.lang.String getDelegationID(){
9158 return localDelegationID;
9159 }
9160
9161
9162
9163
9164
9165
9166
9167 public void setDelegationID(java.lang.String param){
9168
9169 this.localDelegationID=param;
9170
9171
9172 }
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183 public org.apache.axiom.om.OMElement getOMElement (
9184 final javax.xml.namespace.QName parentQName,
9185 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
9186
9187
9188
9189 org.apache.axiom.om.OMDataSource dataSource =
9190 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
9191 return factory.createOMElement(dataSource,MY_QNAME);
9192
9193 }
9194
9195 public void serialize(final javax.xml.namespace.QName parentQName,
9196 javax.xml.stream.XMLStreamWriter xmlWriter)
9197 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
9198 serialize(parentQName,xmlWriter,false);
9199 }
9200
9201 public void serialize(final javax.xml.namespace.QName parentQName,
9202 javax.xml.stream.XMLStreamWriter xmlWriter,
9203 boolean serializeType)
9204 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
9205
9206
9207
9208
9209 java.lang.String prefix = null;
9210 java.lang.String namespace = null;
9211
9212
9213 prefix = parentQName.getPrefix();
9214 namespace = parentQName.getNamespaceURI();
9215 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
9216
9217 if (serializeType){
9218
9219
9220 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
9221 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
9222 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
9223 namespacePrefix+":renewProxyReq",
9224 xmlWriter);
9225 } else {
9226 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
9227 "renewProxyReq",
9228 xmlWriter);
9229 }
9230
9231
9232 }
9233
9234 namespace = "";
9235 writeStartElement(null, namespace, "delegationID", xmlWriter);
9236
9237
9238 if (localDelegationID==null){
9239
9240
9241 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
9242
9243 }else{
9244
9245
9246 xmlWriter.writeCharacters(localDelegationID);
9247
9248 }
9249
9250 xmlWriter.writeEndElement();
9251
9252 xmlWriter.writeEndElement();
9253
9254
9255 }
9256
9257 private static java.lang.String generatePrefix(java.lang.String namespace) {
9258 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
9259 return "ns2";
9260 }
9261 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
9262 }
9263
9264
9265
9266
9267 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
9268 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
9269 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
9270 if (writerPrefix != null) {
9271 xmlWriter.writeStartElement(namespace, localPart);
9272 } else {
9273 if (namespace.length() == 0) {
9274 prefix = "";
9275 } else if (prefix == null) {
9276 prefix = generatePrefix(namespace);
9277 }
9278
9279 xmlWriter.writeStartElement(prefix, localPart, namespace);
9280 xmlWriter.writeNamespace(prefix, namespace);
9281 xmlWriter.setPrefix(prefix, namespace);
9282 }
9283 }
9284
9285
9286
9287
9288 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
9289 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
9290 if (xmlWriter.getPrefix(namespace) == null) {
9291 xmlWriter.writeNamespace(prefix, namespace);
9292 xmlWriter.setPrefix(prefix, namespace);
9293 }
9294 xmlWriter.writeAttribute(namespace,attName,attValue);
9295 }
9296
9297
9298
9299
9300 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
9301 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
9302 if (namespace.equals("")) {
9303 xmlWriter.writeAttribute(attName,attValue);
9304 } else {
9305 registerPrefix(xmlWriter, namespace);
9306 xmlWriter.writeAttribute(namespace,attName,attValue);
9307 }
9308 }
9309
9310
9311
9312
9313
9314 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
9315 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
9316
9317 java.lang.String attributeNamespace = qname.getNamespaceURI();
9318 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
9319 if (attributePrefix == null) {
9320 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
9321 }
9322 java.lang.String attributeValue;
9323 if (attributePrefix.trim().length() > 0) {
9324 attributeValue = attributePrefix + ":" + qname.getLocalPart();
9325 } else {
9326 attributeValue = qname.getLocalPart();
9327 }
9328
9329 if (namespace.equals("")) {
9330 xmlWriter.writeAttribute(attName, attributeValue);
9331 } else {
9332 registerPrefix(xmlWriter, namespace);
9333 xmlWriter.writeAttribute(namespace, attName, attributeValue);
9334 }
9335 }
9336
9337
9338
9339
9340 private void writeQName(javax.xml.namespace.QName qname,
9341 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
9342 java.lang.String namespaceURI = qname.getNamespaceURI();
9343 if (namespaceURI != null) {
9344 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
9345 if (prefix == null) {
9346 prefix = generatePrefix(namespaceURI);
9347 xmlWriter.writeNamespace(prefix, namespaceURI);
9348 xmlWriter.setPrefix(prefix,namespaceURI);
9349 }
9350
9351 if (prefix.trim().length() > 0){
9352 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
9353 } else {
9354
9355 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
9356 }
9357
9358 } else {
9359 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
9360 }
9361 }
9362
9363 private void writeQNames(javax.xml.namespace.QName[] qnames,
9364 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
9365
9366 if (qnames != null) {
9367
9368
9369 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
9370 java.lang.String namespaceURI = null;
9371 java.lang.String prefix = null;
9372
9373 for (int i = 0; i < qnames.length; i++) {
9374 if (i > 0) {
9375 stringToWrite.append(" ");
9376 }
9377 namespaceURI = qnames[i].getNamespaceURI();
9378 if (namespaceURI != null) {
9379 prefix = xmlWriter.getPrefix(namespaceURI);
9380 if ((prefix == null) || (prefix.length() == 0)) {
9381 prefix = generatePrefix(namespaceURI);
9382 xmlWriter.writeNamespace(prefix, namespaceURI);
9383 xmlWriter.setPrefix(prefix,namespaceURI);
9384 }
9385
9386 if (prefix.trim().length() > 0){
9387 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
9388 } else {
9389 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
9390 }
9391 } else {
9392 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
9393 }
9394 }
9395 xmlWriter.writeCharacters(stringToWrite.toString());
9396 }
9397
9398 }
9399
9400
9401
9402
9403
9404 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
9405 java.lang.String prefix = xmlWriter.getPrefix(namespace);
9406 if (prefix == null) {
9407 prefix = generatePrefix(namespace);
9408 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
9409 while (true) {
9410 java.lang.String uri = nsContext.getNamespaceURI(prefix);
9411 if (uri == null || uri.length() == 0) {
9412 break;
9413 }
9414 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
9415 }
9416 xmlWriter.writeNamespace(prefix, namespace);
9417 xmlWriter.setPrefix(prefix, namespace);
9418 }
9419 return prefix;
9420 }
9421
9422
9423
9424
9425
9426
9427
9428 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
9429 throws org.apache.axis2.databinding.ADBException{
9430
9431
9432
9433 java.util.ArrayList elementList = new java.util.ArrayList();
9434 java.util.ArrayList attribList = new java.util.ArrayList();
9435
9436
9437 elementList.add(new javax.xml.namespace.QName("",
9438 "delegationID"));
9439
9440 elementList.add(localDelegationID==null?null:
9441 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDelegationID));
9442
9443
9444 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
9445
9446
9447
9448 }
9449
9450
9451
9452
9453
9454
9455 public static class Factory{
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467 public static RenewProxyReq parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
9468 RenewProxyReq object =
9469 new RenewProxyReq();
9470
9471 int event;
9472 java.lang.String nillableValue = null;
9473 java.lang.String prefix ="";
9474 java.lang.String namespaceuri ="";
9475 try {
9476
9477 while (!reader.isStartElement() && !reader.isEndElement())
9478 reader.next();
9479
9480
9481 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
9482 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
9483 "type");
9484 if (fullTypeName!=null){
9485 java.lang.String nsPrefix = null;
9486 if (fullTypeName.indexOf(":") > -1){
9487 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
9488 }
9489 nsPrefix = nsPrefix==null?"":nsPrefix;
9490
9491 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
9492
9493 if (!"renewProxyReq".equals(type)){
9494
9495 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
9496 return (RenewProxyReq)ExtensionMapper.getTypeObject(
9497 nsUri,type,reader);
9498 }
9499
9500
9501 }
9502
9503
9504 }
9505
9506
9507
9508
9509
9510
9511 java.util.Vector handledAttributes = new java.util.Vector();
9512
9513
9514
9515
9516 reader.next();
9517
9518
9519 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
9520
9521 if (reader.isStartElement() && new javax.xml.namespace.QName("","delegationID").equals(reader.getName())){
9522
9523 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
9524 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
9525
9526
9527 java.lang.String content = reader.getElementText();
9528
9529 object.setDelegationID(
9530 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
9531
9532 } else {
9533
9534
9535 reader.getElementText();
9536 }
9537
9538 reader.next();
9539
9540 }
9541
9542 else{
9543
9544 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
9545 }
9546
9547 while (!reader.isStartElement() && !reader.isEndElement())
9548 reader.next();
9549
9550 if (reader.isStartElement())
9551
9552 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
9553
9554
9555
9556
9557 } catch (javax.xml.stream.XMLStreamException e) {
9558 throw new java.lang.Exception(e);
9559 }
9560
9561 return object;
9562 }
9563
9564 }
9565
9566
9567
9568 }
9569
9570
9571 public static class RenewProxyReqResponse
9572 implements org.apache.axis2.databinding.ADBBean{
9573
9574 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
9575 "http://www.gridsite.org/namespaces/delegation-2",
9576 "renewProxyReqResponse",
9577 "ns2");
9578
9579
9580
9581
9582
9583
9584
9585
9586 protected java.lang.String localRenewProxyReqReturn ;
9587
9588
9589
9590
9591
9592
9593 public java.lang.String getRenewProxyReqReturn(){
9594 return localRenewProxyReqReturn;
9595 }
9596
9597
9598
9599
9600
9601
9602
9603 public void setRenewProxyReqReturn(java.lang.String param){
9604
9605 this.localRenewProxyReqReturn=param;
9606
9607
9608 }
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619 public org.apache.axiom.om.OMElement getOMElement (
9620 final javax.xml.namespace.QName parentQName,
9621 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
9622
9623
9624
9625 org.apache.axiom.om.OMDataSource dataSource =
9626 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
9627 return factory.createOMElement(dataSource,MY_QNAME);
9628
9629 }
9630
9631 public void serialize(final javax.xml.namespace.QName parentQName,
9632 javax.xml.stream.XMLStreamWriter xmlWriter)
9633 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
9634 serialize(parentQName,xmlWriter,false);
9635 }
9636
9637 public void serialize(final javax.xml.namespace.QName parentQName,
9638 javax.xml.stream.XMLStreamWriter xmlWriter,
9639 boolean serializeType)
9640 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
9641
9642
9643
9644
9645 java.lang.String prefix = null;
9646 java.lang.String namespace = null;
9647
9648
9649 prefix = parentQName.getPrefix();
9650 namespace = parentQName.getNamespaceURI();
9651 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
9652
9653 if (serializeType){
9654
9655
9656 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
9657 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
9658 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
9659 namespacePrefix+":renewProxyReqResponse",
9660 xmlWriter);
9661 } else {
9662 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
9663 "renewProxyReqResponse",
9664 xmlWriter);
9665 }
9666
9667
9668 }
9669
9670 namespace = "";
9671 writeStartElement(null, namespace, "renewProxyReqReturn", xmlWriter);
9672
9673
9674 if (localRenewProxyReqReturn==null){
9675
9676
9677 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
9678
9679 }else{
9680
9681
9682 xmlWriter.writeCharacters(localRenewProxyReqReturn);
9683
9684 }
9685
9686 xmlWriter.writeEndElement();
9687
9688 xmlWriter.writeEndElement();
9689
9690
9691 }
9692
9693 private static java.lang.String generatePrefix(java.lang.String namespace) {
9694 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
9695 return "ns2";
9696 }
9697 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
9698 }
9699
9700
9701
9702
9703 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
9704 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
9705 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
9706 if (writerPrefix != null) {
9707 xmlWriter.writeStartElement(namespace, localPart);
9708 } else {
9709 if (namespace.length() == 0) {
9710 prefix = "";
9711 } else if (prefix == null) {
9712 prefix = generatePrefix(namespace);
9713 }
9714
9715 xmlWriter.writeStartElement(prefix, localPart, namespace);
9716 xmlWriter.writeNamespace(prefix, namespace);
9717 xmlWriter.setPrefix(prefix, namespace);
9718 }
9719 }
9720
9721
9722
9723
9724 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
9725 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
9726 if (xmlWriter.getPrefix(namespace) == null) {
9727 xmlWriter.writeNamespace(prefix, namespace);
9728 xmlWriter.setPrefix(prefix, namespace);
9729 }
9730 xmlWriter.writeAttribute(namespace,attName,attValue);
9731 }
9732
9733
9734
9735
9736 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
9737 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
9738 if (namespace.equals("")) {
9739 xmlWriter.writeAttribute(attName,attValue);
9740 } else {
9741 registerPrefix(xmlWriter, namespace);
9742 xmlWriter.writeAttribute(namespace,attName,attValue);
9743 }
9744 }
9745
9746
9747
9748
9749
9750 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
9751 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
9752
9753 java.lang.String attributeNamespace = qname.getNamespaceURI();
9754 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
9755 if (attributePrefix == null) {
9756 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
9757 }
9758 java.lang.String attributeValue;
9759 if (attributePrefix.trim().length() > 0) {
9760 attributeValue = attributePrefix + ":" + qname.getLocalPart();
9761 } else {
9762 attributeValue = qname.getLocalPart();
9763 }
9764
9765 if (namespace.equals("")) {
9766 xmlWriter.writeAttribute(attName, attributeValue);
9767 } else {
9768 registerPrefix(xmlWriter, namespace);
9769 xmlWriter.writeAttribute(namespace, attName, attributeValue);
9770 }
9771 }
9772
9773
9774
9775
9776 private void writeQName(javax.xml.namespace.QName qname,
9777 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
9778 java.lang.String namespaceURI = qname.getNamespaceURI();
9779 if (namespaceURI != null) {
9780 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
9781 if (prefix == null) {
9782 prefix = generatePrefix(namespaceURI);
9783 xmlWriter.writeNamespace(prefix, namespaceURI);
9784 xmlWriter.setPrefix(prefix,namespaceURI);
9785 }
9786
9787 if (prefix.trim().length() > 0){
9788 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
9789 } else {
9790
9791 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
9792 }
9793
9794 } else {
9795 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
9796 }
9797 }
9798
9799 private void writeQNames(javax.xml.namespace.QName[] qnames,
9800 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
9801
9802 if (qnames != null) {
9803
9804
9805 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
9806 java.lang.String namespaceURI = null;
9807 java.lang.String prefix = null;
9808
9809 for (int i = 0; i < qnames.length; i++) {
9810 if (i > 0) {
9811 stringToWrite.append(" ");
9812 }
9813 namespaceURI = qnames[i].getNamespaceURI();
9814 if (namespaceURI != null) {
9815 prefix = xmlWriter.getPrefix(namespaceURI);
9816 if ((prefix == null) || (prefix.length() == 0)) {
9817 prefix = generatePrefix(namespaceURI);
9818 xmlWriter.writeNamespace(prefix, namespaceURI);
9819 xmlWriter.setPrefix(prefix,namespaceURI);
9820 }
9821
9822 if (prefix.trim().length() > 0){
9823 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
9824 } else {
9825 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
9826 }
9827 } else {
9828 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
9829 }
9830 }
9831 xmlWriter.writeCharacters(stringToWrite.toString());
9832 }
9833
9834 }
9835
9836
9837
9838
9839
9840 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
9841 java.lang.String prefix = xmlWriter.getPrefix(namespace);
9842 if (prefix == null) {
9843 prefix = generatePrefix(namespace);
9844 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
9845 while (true) {
9846 java.lang.String uri = nsContext.getNamespaceURI(prefix);
9847 if (uri == null || uri.length() == 0) {
9848 break;
9849 }
9850 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
9851 }
9852 xmlWriter.writeNamespace(prefix, namespace);
9853 xmlWriter.setPrefix(prefix, namespace);
9854 }
9855 return prefix;
9856 }
9857
9858
9859
9860
9861
9862
9863
9864 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
9865 throws org.apache.axis2.databinding.ADBException{
9866
9867
9868
9869 java.util.ArrayList elementList = new java.util.ArrayList();
9870 java.util.ArrayList attribList = new java.util.ArrayList();
9871
9872
9873 elementList.add(new javax.xml.namespace.QName("",
9874 "renewProxyReqReturn"));
9875
9876 elementList.add(localRenewProxyReqReturn==null?null:
9877 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRenewProxyReqReturn));
9878
9879
9880 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
9881
9882
9883
9884 }
9885
9886
9887
9888
9889
9890
9891 public static class Factory{
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903 public static RenewProxyReqResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
9904 RenewProxyReqResponse object =
9905 new RenewProxyReqResponse();
9906
9907 int event;
9908 java.lang.String nillableValue = null;
9909 java.lang.String prefix ="";
9910 java.lang.String namespaceuri ="";
9911 try {
9912
9913 while (!reader.isStartElement() && !reader.isEndElement())
9914 reader.next();
9915
9916
9917 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
9918 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
9919 "type");
9920 if (fullTypeName!=null){
9921 java.lang.String nsPrefix = null;
9922 if (fullTypeName.indexOf(":") > -1){
9923 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
9924 }
9925 nsPrefix = nsPrefix==null?"":nsPrefix;
9926
9927 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
9928
9929 if (!"renewProxyReqResponse".equals(type)){
9930
9931 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
9932 return (RenewProxyReqResponse)ExtensionMapper.getTypeObject(
9933 nsUri,type,reader);
9934 }
9935
9936
9937 }
9938
9939
9940 }
9941
9942
9943
9944
9945
9946
9947 java.util.Vector handledAttributes = new java.util.Vector();
9948
9949
9950
9951
9952 reader.next();
9953
9954
9955 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
9956
9957 if (reader.isStartElement() && new javax.xml.namespace.QName("","renewProxyReqReturn").equals(reader.getName())){
9958
9959 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
9960 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
9961
9962
9963 java.lang.String content = reader.getElementText();
9964
9965 object.setRenewProxyReqReturn(
9966 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
9967
9968 } else {
9969
9970
9971 reader.getElementText();
9972 }
9973
9974 reader.next();
9975
9976 }
9977
9978 else{
9979
9980 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
9981 }
9982
9983 while (!reader.isStartElement() && !reader.isEndElement())
9984 reader.next();
9985
9986 if (reader.isStartElement())
9987
9988 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
9989
9990
9991
9992
9993 } catch (javax.xml.stream.XMLStreamException e) {
9994 throw new java.lang.Exception(e);
9995 }
9996
9997 return object;
9998 }
9999
10000 }
10001
10002
10003
10004 }
10005
10006
10007 public static class GetVersion
10008 implements org.apache.axis2.databinding.ADBBean{
10009
10010 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
10011 "http://www.gridsite.org/namespaces/delegation-2",
10012 "getVersion",
10013 "ns2");
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025 public org.apache.axiom.om.OMElement getOMElement (
10026 final javax.xml.namespace.QName parentQName,
10027 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
10028
10029
10030
10031 org.apache.axiom.om.OMDataSource dataSource =
10032 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
10033 return factory.createOMElement(dataSource,MY_QNAME);
10034
10035 }
10036
10037 public void serialize(final javax.xml.namespace.QName parentQName,
10038 javax.xml.stream.XMLStreamWriter xmlWriter)
10039 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
10040 serialize(parentQName,xmlWriter,false);
10041 }
10042
10043 public void serialize(final javax.xml.namespace.QName parentQName,
10044 javax.xml.stream.XMLStreamWriter xmlWriter,
10045 boolean serializeType)
10046 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
10047
10048
10049
10050
10051 java.lang.String prefix = null;
10052 java.lang.String namespace = null;
10053
10054
10055 prefix = parentQName.getPrefix();
10056 namespace = parentQName.getNamespaceURI();
10057 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
10058
10059 if (serializeType){
10060
10061
10062 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
10063 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
10064 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
10065 namespacePrefix+":getVersion",
10066 xmlWriter);
10067 } else {
10068 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
10069 "getVersion",
10070 xmlWriter);
10071 }
10072
10073
10074 }
10075
10076 xmlWriter.writeEndElement();
10077
10078
10079 }
10080
10081 private static java.lang.String generatePrefix(java.lang.String namespace) {
10082 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
10083 return "ns2";
10084 }
10085 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
10086 }
10087
10088
10089
10090
10091 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
10092 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
10093 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
10094 if (writerPrefix != null) {
10095 xmlWriter.writeStartElement(namespace, localPart);
10096 } else {
10097 if (namespace.length() == 0) {
10098 prefix = "";
10099 } else if (prefix == null) {
10100 prefix = generatePrefix(namespace);
10101 }
10102
10103 xmlWriter.writeStartElement(prefix, localPart, namespace);
10104 xmlWriter.writeNamespace(prefix, namespace);
10105 xmlWriter.setPrefix(prefix, namespace);
10106 }
10107 }
10108
10109
10110
10111
10112 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
10113 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
10114 if (xmlWriter.getPrefix(namespace) == null) {
10115 xmlWriter.writeNamespace(prefix, namespace);
10116 xmlWriter.setPrefix(prefix, namespace);
10117 }
10118 xmlWriter.writeAttribute(namespace,attName,attValue);
10119 }
10120
10121
10122
10123
10124 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
10125 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
10126 if (namespace.equals("")) {
10127 xmlWriter.writeAttribute(attName,attValue);
10128 } else {
10129 registerPrefix(xmlWriter, namespace);
10130 xmlWriter.writeAttribute(namespace,attName,attValue);
10131 }
10132 }
10133
10134
10135
10136
10137
10138 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
10139 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
10140
10141 java.lang.String attributeNamespace = qname.getNamespaceURI();
10142 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
10143 if (attributePrefix == null) {
10144 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
10145 }
10146 java.lang.String attributeValue;
10147 if (attributePrefix.trim().length() > 0) {
10148 attributeValue = attributePrefix + ":" + qname.getLocalPart();
10149 } else {
10150 attributeValue = qname.getLocalPart();
10151 }
10152
10153 if (namespace.equals("")) {
10154 xmlWriter.writeAttribute(attName, attributeValue);
10155 } else {
10156 registerPrefix(xmlWriter, namespace);
10157 xmlWriter.writeAttribute(namespace, attName, attributeValue);
10158 }
10159 }
10160
10161
10162
10163
10164 private void writeQName(javax.xml.namespace.QName qname,
10165 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
10166 java.lang.String namespaceURI = qname.getNamespaceURI();
10167 if (namespaceURI != null) {
10168 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
10169 if (prefix == null) {
10170 prefix = generatePrefix(namespaceURI);
10171 xmlWriter.writeNamespace(prefix, namespaceURI);
10172 xmlWriter.setPrefix(prefix,namespaceURI);
10173 }
10174
10175 if (prefix.trim().length() > 0){
10176 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
10177 } else {
10178
10179 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
10180 }
10181
10182 } else {
10183 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
10184 }
10185 }
10186
10187 private void writeQNames(javax.xml.namespace.QName[] qnames,
10188 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
10189
10190 if (qnames != null) {
10191
10192
10193 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
10194 java.lang.String namespaceURI = null;
10195 java.lang.String prefix = null;
10196
10197 for (int i = 0; i < qnames.length; i++) {
10198 if (i > 0) {
10199 stringToWrite.append(" ");
10200 }
10201 namespaceURI = qnames[i].getNamespaceURI();
10202 if (namespaceURI != null) {
10203 prefix = xmlWriter.getPrefix(namespaceURI);
10204 if ((prefix == null) || (prefix.length() == 0)) {
10205 prefix = generatePrefix(namespaceURI);
10206 xmlWriter.writeNamespace(prefix, namespaceURI);
10207 xmlWriter.setPrefix(prefix,namespaceURI);
10208 }
10209
10210 if (prefix.trim().length() > 0){
10211 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
10212 } else {
10213 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
10214 }
10215 } else {
10216 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
10217 }
10218 }
10219 xmlWriter.writeCharacters(stringToWrite.toString());
10220 }
10221
10222 }
10223
10224
10225
10226
10227
10228 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
10229 java.lang.String prefix = xmlWriter.getPrefix(namespace);
10230 if (prefix == null) {
10231 prefix = generatePrefix(namespace);
10232 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
10233 while (true) {
10234 java.lang.String uri = nsContext.getNamespaceURI(prefix);
10235 if (uri == null || uri.length() == 0) {
10236 break;
10237 }
10238 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
10239 }
10240 xmlWriter.writeNamespace(prefix, namespace);
10241 xmlWriter.setPrefix(prefix, namespace);
10242 }
10243 return prefix;
10244 }
10245
10246
10247
10248
10249
10250
10251
10252 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
10253 throws org.apache.axis2.databinding.ADBException{
10254
10255
10256
10257 java.util.ArrayList elementList = new java.util.ArrayList();
10258 java.util.ArrayList attribList = new java.util.ArrayList();
10259
10260
10261
10262 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
10263
10264
10265
10266 }
10267
10268
10269
10270
10271
10272
10273 public static class Factory{
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285 public static GetVersion parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
10286 GetVersion object =
10287 new GetVersion();
10288
10289 int event;
10290 java.lang.String nillableValue = null;
10291 java.lang.String prefix ="";
10292 java.lang.String namespaceuri ="";
10293 try {
10294
10295 while (!reader.isStartElement() && !reader.isEndElement())
10296 reader.next();
10297
10298
10299 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
10300 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
10301 "type");
10302 if (fullTypeName!=null){
10303 java.lang.String nsPrefix = null;
10304 if (fullTypeName.indexOf(":") > -1){
10305 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
10306 }
10307 nsPrefix = nsPrefix==null?"":nsPrefix;
10308
10309 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
10310
10311 if (!"getVersion".equals(type)){
10312
10313 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
10314 return (GetVersion)ExtensionMapper.getTypeObject(
10315 nsUri,type,reader);
10316 }
10317
10318
10319 }
10320
10321
10322 }
10323
10324
10325
10326
10327
10328
10329 java.util.Vector handledAttributes = new java.util.Vector();
10330
10331
10332
10333
10334 reader.next();
10335
10336 while (!reader.isStartElement() && !reader.isEndElement())
10337 reader.next();
10338
10339 if (reader.isStartElement())
10340
10341 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
10342
10343
10344
10345
10346 } catch (javax.xml.stream.XMLStreamException e) {
10347 throw new java.lang.Exception(e);
10348 }
10349
10350 return object;
10351 }
10352
10353 }
10354
10355
10356
10357 }
10358
10359
10360 public static class DelegationException
10361 implements org.apache.axis2.databinding.ADBBean{
10362
10363 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
10364 "http://www.gridsite.org/namespaces/delegation-2",
10365 "DelegationException",
10366 "ns2");
10367
10368
10369
10370
10371
10372
10373
10374
10375 protected java.lang.String localMsg ;
10376
10377
10378
10379
10380
10381
10382 public java.lang.String getMsg(){
10383 return localMsg;
10384 }
10385
10386
10387
10388
10389
10390
10391
10392 public void setMsg(java.lang.String param){
10393
10394 this.localMsg=param;
10395
10396
10397 }
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408 public org.apache.axiom.om.OMElement getOMElement (
10409 final javax.xml.namespace.QName parentQName,
10410 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
10411
10412
10413
10414 org.apache.axiom.om.OMDataSource dataSource =
10415 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
10416 return factory.createOMElement(dataSource,MY_QNAME);
10417
10418 }
10419
10420 public void serialize(final javax.xml.namespace.QName parentQName,
10421 javax.xml.stream.XMLStreamWriter xmlWriter)
10422 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
10423 serialize(parentQName,xmlWriter,false);
10424 }
10425
10426 public void serialize(final javax.xml.namespace.QName parentQName,
10427 javax.xml.stream.XMLStreamWriter xmlWriter,
10428 boolean serializeType)
10429 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
10430
10431
10432
10433
10434 java.lang.String prefix = null;
10435 java.lang.String namespace = null;
10436
10437
10438 prefix = parentQName.getPrefix();
10439 namespace = parentQName.getNamespaceURI();
10440 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
10441
10442 if (serializeType){
10443
10444
10445 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
10446 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
10447 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
10448 namespacePrefix+":DelegationException",
10449 xmlWriter);
10450 } else {
10451 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
10452 "DelegationException",
10453 xmlWriter);
10454 }
10455
10456
10457 }
10458
10459 namespace = "";
10460 writeStartElement(null, namespace, "msg", xmlWriter);
10461
10462
10463 if (localMsg==null){
10464
10465
10466 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
10467
10468 }else{
10469
10470
10471 xmlWriter.writeCharacters(localMsg);
10472
10473 }
10474
10475 xmlWriter.writeEndElement();
10476
10477 xmlWriter.writeEndElement();
10478
10479
10480 }
10481
10482 private static java.lang.String generatePrefix(java.lang.String namespace) {
10483 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
10484 return "ns2";
10485 }
10486 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
10487 }
10488
10489
10490
10491
10492 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
10493 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
10494 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
10495 if (writerPrefix != null) {
10496 xmlWriter.writeStartElement(namespace, localPart);
10497 } else {
10498 if (namespace.length() == 0) {
10499 prefix = "";
10500 } else if (prefix == null) {
10501 prefix = generatePrefix(namespace);
10502 }
10503
10504 xmlWriter.writeStartElement(prefix, localPart, namespace);
10505 xmlWriter.writeNamespace(prefix, namespace);
10506 xmlWriter.setPrefix(prefix, namespace);
10507 }
10508 }
10509
10510
10511
10512
10513 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
10514 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
10515 if (xmlWriter.getPrefix(namespace) == null) {
10516 xmlWriter.writeNamespace(prefix, namespace);
10517 xmlWriter.setPrefix(prefix, namespace);
10518 }
10519 xmlWriter.writeAttribute(namespace,attName,attValue);
10520 }
10521
10522
10523
10524
10525 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
10526 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
10527 if (namespace.equals("")) {
10528 xmlWriter.writeAttribute(attName,attValue);
10529 } else {
10530 registerPrefix(xmlWriter, namespace);
10531 xmlWriter.writeAttribute(namespace,attName,attValue);
10532 }
10533 }
10534
10535
10536
10537
10538
10539 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
10540 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
10541
10542 java.lang.String attributeNamespace = qname.getNamespaceURI();
10543 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
10544 if (attributePrefix == null) {
10545 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
10546 }
10547 java.lang.String attributeValue;
10548 if (attributePrefix.trim().length() > 0) {
10549 attributeValue = attributePrefix + ":" + qname.getLocalPart();
10550 } else {
10551 attributeValue = qname.getLocalPart();
10552 }
10553
10554 if (namespace.equals("")) {
10555 xmlWriter.writeAttribute(attName, attributeValue);
10556 } else {
10557 registerPrefix(xmlWriter, namespace);
10558 xmlWriter.writeAttribute(namespace, attName, attributeValue);
10559 }
10560 }
10561
10562
10563
10564
10565 private void writeQName(javax.xml.namespace.QName qname,
10566 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
10567 java.lang.String namespaceURI = qname.getNamespaceURI();
10568 if (namespaceURI != null) {
10569 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
10570 if (prefix == null) {
10571 prefix = generatePrefix(namespaceURI);
10572 xmlWriter.writeNamespace(prefix, namespaceURI);
10573 xmlWriter.setPrefix(prefix,namespaceURI);
10574 }
10575
10576 if (prefix.trim().length() > 0){
10577 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
10578 } else {
10579
10580 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
10581 }
10582
10583 } else {
10584 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
10585 }
10586 }
10587
10588 private void writeQNames(javax.xml.namespace.QName[] qnames,
10589 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
10590
10591 if (qnames != null) {
10592
10593
10594 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
10595 java.lang.String namespaceURI = null;
10596 java.lang.String prefix = null;
10597
10598 for (int i = 0; i < qnames.length; i++) {
10599 if (i > 0) {
10600 stringToWrite.append(" ");
10601 }
10602 namespaceURI = qnames[i].getNamespaceURI();
10603 if (namespaceURI != null) {
10604 prefix = xmlWriter.getPrefix(namespaceURI);
10605 if ((prefix == null) || (prefix.length() == 0)) {
10606 prefix = generatePrefix(namespaceURI);
10607 xmlWriter.writeNamespace(prefix, namespaceURI);
10608 xmlWriter.setPrefix(prefix,namespaceURI);
10609 }
10610
10611 if (prefix.trim().length() > 0){
10612 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
10613 } else {
10614 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
10615 }
10616 } else {
10617 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
10618 }
10619 }
10620 xmlWriter.writeCharacters(stringToWrite.toString());
10621 }
10622
10623 }
10624
10625
10626
10627
10628
10629 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
10630 java.lang.String prefix = xmlWriter.getPrefix(namespace);
10631 if (prefix == null) {
10632 prefix = generatePrefix(namespace);
10633 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
10634 while (true) {
10635 java.lang.String uri = nsContext.getNamespaceURI(prefix);
10636 if (uri == null || uri.length() == 0) {
10637 break;
10638 }
10639 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
10640 }
10641 xmlWriter.writeNamespace(prefix, namespace);
10642 xmlWriter.setPrefix(prefix, namespace);
10643 }
10644 return prefix;
10645 }
10646
10647
10648
10649
10650
10651
10652
10653 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
10654 throws org.apache.axis2.databinding.ADBException{
10655
10656
10657
10658 java.util.ArrayList elementList = new java.util.ArrayList();
10659 java.util.ArrayList attribList = new java.util.ArrayList();
10660
10661
10662 elementList.add(new javax.xml.namespace.QName("",
10663 "msg"));
10664
10665 elementList.add(localMsg==null?null:
10666 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMsg));
10667
10668
10669 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
10670
10671
10672
10673 }
10674
10675
10676
10677
10678
10679
10680 public static class Factory{
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692 public static DelegationException parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
10693 DelegationException object =
10694 new DelegationException();
10695
10696 int event;
10697 java.lang.String nillableValue = null;
10698 java.lang.String prefix ="";
10699 java.lang.String namespaceuri ="";
10700 try {
10701
10702 while (!reader.isStartElement() && !reader.isEndElement())
10703 reader.next();
10704
10705
10706 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
10707 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
10708 "type");
10709 if (fullTypeName!=null){
10710 java.lang.String nsPrefix = null;
10711 if (fullTypeName.indexOf(":") > -1){
10712 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
10713 }
10714 nsPrefix = nsPrefix==null?"":nsPrefix;
10715
10716 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
10717
10718 if (!"DelegationException".equals(type)){
10719
10720 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
10721 return (DelegationException)ExtensionMapper.getTypeObject(
10722 nsUri,type,reader);
10723 }
10724
10725
10726 }
10727
10728
10729 }
10730
10731
10732
10733
10734
10735
10736 java.util.Vector handledAttributes = new java.util.Vector();
10737
10738
10739
10740
10741 reader.next();
10742
10743
10744 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
10745
10746 if (reader.isStartElement() && new javax.xml.namespace.QName("","msg").equals(reader.getName())){
10747
10748 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
10749 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
10750
10751
10752 java.lang.String content = reader.getElementText();
10753
10754 object.setMsg(
10755 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
10756
10757 } else {
10758
10759
10760 reader.getElementText();
10761 }
10762
10763 reader.next();
10764
10765 }
10766
10767 else{
10768
10769 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
10770 }
10771
10772 while (!reader.isStartElement() && !reader.isEndElement())
10773 reader.next();
10774
10775 if (reader.isStartElement())
10776
10777 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
10778
10779
10780
10781
10782 } catch (javax.xml.stream.XMLStreamException e) {
10783 throw new java.lang.Exception(e);
10784 }
10785
10786 return object;
10787 }
10788
10789 }
10790
10791
10792
10793 }
10794
10795
10796 public static class PutProxy
10797 implements org.apache.axis2.databinding.ADBBean{
10798
10799 public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
10800 "http://www.gridsite.org/namespaces/delegation-2",
10801 "putProxy",
10802 "ns2");
10803
10804
10805
10806
10807
10808
10809
10810
10811 protected java.lang.String localDelegationID ;
10812
10813
10814
10815
10816
10817
10818 public java.lang.String getDelegationID(){
10819 return localDelegationID;
10820 }
10821
10822
10823
10824
10825
10826
10827
10828 public void setDelegationID(java.lang.String param){
10829
10830 this.localDelegationID=param;
10831
10832
10833 }
10834
10835
10836
10837
10838
10839
10840
10841 protected java.lang.String localProxy ;
10842
10843
10844
10845
10846
10847
10848 public java.lang.String getProxy(){
10849 return localProxy;
10850 }
10851
10852
10853
10854
10855
10856
10857
10858 public void setProxy(java.lang.String param){
10859
10860 this.localProxy=param;
10861
10862
10863 }
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874 public org.apache.axiom.om.OMElement getOMElement (
10875 final javax.xml.namespace.QName parentQName,
10876 final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
10877
10878
10879
10880 org.apache.axiom.om.OMDataSource dataSource =
10881 new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME);
10882 return factory.createOMElement(dataSource,MY_QNAME);
10883
10884 }
10885
10886 public void serialize(final javax.xml.namespace.QName parentQName,
10887 javax.xml.stream.XMLStreamWriter xmlWriter)
10888 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
10889 serialize(parentQName,xmlWriter,false);
10890 }
10891
10892 public void serialize(final javax.xml.namespace.QName parentQName,
10893 javax.xml.stream.XMLStreamWriter xmlWriter,
10894 boolean serializeType)
10895 throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
10896
10897
10898
10899
10900 java.lang.String prefix = null;
10901 java.lang.String namespace = null;
10902
10903
10904 prefix = parentQName.getPrefix();
10905 namespace = parentQName.getNamespaceURI();
10906 writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter);
10907
10908 if (serializeType){
10909
10910
10911 java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://www.gridsite.org/namespaces/delegation-2");
10912 if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
10913 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
10914 namespacePrefix+":putProxy",
10915 xmlWriter);
10916 } else {
10917 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
10918 "putProxy",
10919 xmlWriter);
10920 }
10921
10922
10923 }
10924
10925 namespace = "";
10926 writeStartElement(null, namespace, "delegationID", xmlWriter);
10927
10928
10929 if (localDelegationID==null){
10930
10931
10932 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
10933
10934 }else{
10935
10936
10937 xmlWriter.writeCharacters(localDelegationID);
10938
10939 }
10940
10941 xmlWriter.writeEndElement();
10942
10943 namespace = "";
10944 writeStartElement(null, namespace, "proxy", xmlWriter);
10945
10946
10947 if (localProxy==null){
10948
10949
10950 writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
10951
10952 }else{
10953
10954
10955 xmlWriter.writeCharacters(localProxy);
10956
10957 }
10958
10959 xmlWriter.writeEndElement();
10960
10961 xmlWriter.writeEndElement();
10962
10963
10964 }
10965
10966 private static java.lang.String generatePrefix(java.lang.String namespace) {
10967 if(namespace.equals("http://www.gridsite.org/namespaces/delegation-2")){
10968 return "ns2";
10969 }
10970 return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
10971 }
10972
10973
10974
10975
10976 private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart,
10977 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
10978 java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
10979 if (writerPrefix != null) {
10980 xmlWriter.writeStartElement(namespace, localPart);
10981 } else {
10982 if (namespace.length() == 0) {
10983 prefix = "";
10984 } else if (prefix == null) {
10985 prefix = generatePrefix(namespace);
10986 }
10987
10988 xmlWriter.writeStartElement(prefix, localPart, namespace);
10989 xmlWriter.writeNamespace(prefix, namespace);
10990 xmlWriter.setPrefix(prefix, namespace);
10991 }
10992 }
10993
10994
10995
10996
10997 private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
10998 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
10999 if (xmlWriter.getPrefix(namespace) == null) {
11000 xmlWriter.writeNamespace(prefix, namespace);
11001 xmlWriter.setPrefix(prefix, namespace);
11002 }
11003 xmlWriter.writeAttribute(namespace,attName,attValue);
11004 }
11005
11006
11007
11008
11009 private void writeAttribute(java.lang.String namespace,java.lang.String attName,
11010 java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
11011 if (namespace.equals("")) {
11012 xmlWriter.writeAttribute(attName,attValue);
11013 } else {
11014 registerPrefix(xmlWriter, namespace);
11015 xmlWriter.writeAttribute(namespace,attName,attValue);
11016 }
11017 }
11018
11019
11020
11021
11022
11023 private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
11024 javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
11025
11026 java.lang.String attributeNamespace = qname.getNamespaceURI();
11027 java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
11028 if (attributePrefix == null) {
11029 attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
11030 }
11031 java.lang.String attributeValue;
11032 if (attributePrefix.trim().length() > 0) {
11033 attributeValue = attributePrefix + ":" + qname.getLocalPart();
11034 } else {
11035 attributeValue = qname.getLocalPart();
11036 }
11037
11038 if (namespace.equals("")) {
11039 xmlWriter.writeAttribute(attName, attributeValue);
11040 } else {
11041 registerPrefix(xmlWriter, namespace);
11042 xmlWriter.writeAttribute(namespace, attName, attributeValue);
11043 }
11044 }
11045
11046
11047
11048
11049 private void writeQName(javax.xml.namespace.QName qname,
11050 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
11051 java.lang.String namespaceURI = qname.getNamespaceURI();
11052 if (namespaceURI != null) {
11053 java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
11054 if (prefix == null) {
11055 prefix = generatePrefix(namespaceURI);
11056 xmlWriter.writeNamespace(prefix, namespaceURI);
11057 xmlWriter.setPrefix(prefix,namespaceURI);
11058 }
11059
11060 if (prefix.trim().length() > 0){
11061 xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
11062 } else {
11063
11064 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
11065 }
11066
11067 } else {
11068 xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
11069 }
11070 }
11071
11072 private void writeQNames(javax.xml.namespace.QName[] qnames,
11073 javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
11074
11075 if (qnames != null) {
11076
11077
11078 java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
11079 java.lang.String namespaceURI = null;
11080 java.lang.String prefix = null;
11081
11082 for (int i = 0; i < qnames.length; i++) {
11083 if (i > 0) {
11084 stringToWrite.append(" ");
11085 }
11086 namespaceURI = qnames[i].getNamespaceURI();
11087 if (namespaceURI != null) {
11088 prefix = xmlWriter.getPrefix(namespaceURI);
11089 if ((prefix == null) || (prefix.length() == 0)) {
11090 prefix = generatePrefix(namespaceURI);
11091 xmlWriter.writeNamespace(prefix, namespaceURI);
11092 xmlWriter.setPrefix(prefix,namespaceURI);
11093 }
11094
11095 if (prefix.trim().length() > 0){
11096 stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
11097 } else {
11098 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
11099 }
11100 } else {
11101 stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
11102 }
11103 }
11104 xmlWriter.writeCharacters(stringToWrite.toString());
11105 }
11106
11107 }
11108
11109
11110
11111
11112
11113 private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
11114 java.lang.String prefix = xmlWriter.getPrefix(namespace);
11115 if (prefix == null) {
11116 prefix = generatePrefix(namespace);
11117 javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
11118 while (true) {
11119 java.lang.String uri = nsContext.getNamespaceURI(prefix);
11120 if (uri == null || uri.length() == 0) {
11121 break;
11122 }
11123 prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
11124 }
11125 xmlWriter.writeNamespace(prefix, namespace);
11126 xmlWriter.setPrefix(prefix, namespace);
11127 }
11128 return prefix;
11129 }
11130
11131
11132
11133
11134
11135
11136
11137 public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
11138 throws org.apache.axis2.databinding.ADBException{
11139
11140
11141
11142 java.util.ArrayList elementList = new java.util.ArrayList();
11143 java.util.ArrayList attribList = new java.util.ArrayList();
11144
11145
11146 elementList.add(new javax.xml.namespace.QName("",
11147 "delegationID"));
11148
11149 elementList.add(localDelegationID==null?null:
11150 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDelegationID));
11151
11152 elementList.add(new javax.xml.namespace.QName("",
11153 "proxy"));
11154
11155 elementList.add(localProxy==null?null:
11156 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProxy));
11157
11158
11159 return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
11160
11161
11162
11163 }
11164
11165
11166
11167
11168
11169
11170 public static class Factory{
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182 public static PutProxy parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
11183 PutProxy object =
11184 new PutProxy();
11185
11186 int event;
11187 java.lang.String nillableValue = null;
11188 java.lang.String prefix ="";
11189 java.lang.String namespaceuri ="";
11190 try {
11191
11192 while (!reader.isStartElement() && !reader.isEndElement())
11193 reader.next();
11194
11195
11196 if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
11197 java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
11198 "type");
11199 if (fullTypeName!=null){
11200 java.lang.String nsPrefix = null;
11201 if (fullTypeName.indexOf(":") > -1){
11202 nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(":"));
11203 }
11204 nsPrefix = nsPrefix==null?"":nsPrefix;
11205
11206 java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":")+1);
11207
11208 if (!"putProxy".equals(type)){
11209
11210 java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
11211 return (PutProxy)ExtensionMapper.getTypeObject(
11212 nsUri,type,reader);
11213 }
11214
11215
11216 }
11217
11218
11219 }
11220
11221
11222
11223
11224
11225
11226 java.util.Vector handledAttributes = new java.util.Vector();
11227
11228
11229
11230
11231 reader.next();
11232
11233
11234 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
11235
11236 if (reader.isStartElement() && new javax.xml.namespace.QName("","delegationID").equals(reader.getName())){
11237
11238 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
11239 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
11240
11241
11242 java.lang.String content = reader.getElementText();
11243
11244 object.setDelegationID(
11245 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
11246
11247 } else {
11248
11249
11250 reader.getElementText();
11251 }
11252
11253 reader.next();
11254
11255 }
11256
11257 else{
11258
11259 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
11260 }
11261
11262
11263 while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
11264
11265 if (reader.isStartElement() && new javax.xml.namespace.QName("","proxy").equals(reader.getName())){
11266
11267 nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
11268 if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
11269
11270
11271 java.lang.String content = reader.getElementText();
11272
11273 object.setProxy(
11274 org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
11275
11276 } else {
11277
11278
11279 reader.getElementText();
11280 }
11281
11282 reader.next();
11283
11284 }
11285
11286 else{
11287
11288 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
11289 }
11290
11291 while (!reader.isStartElement() && !reader.isEndElement())
11292 reader.next();
11293
11294 if (reader.isStartElement())
11295
11296 throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
11297
11298
11299
11300
11301 } catch (javax.xml.stream.XMLStreamException e) {
11302 throw new java.lang.Exception(e);
11303 }
11304
11305 return object;
11306 }
11307
11308 }
11309
11310
11311
11312 }
11313
11314
11315 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReq param, boolean optimizeContent)
11316 throws org.apache.axis2.AxisFault {
11317
11318
11319 try{
11320 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReq.MY_QNAME,
11321 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11322 } catch(org.apache.axis2.databinding.ADBException e){
11323 throw org.apache.axis2.AxisFault.makeFault(e);
11324 }
11325
11326
11327 }
11328
11329 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReqResponse param, boolean optimizeContent)
11330 throws org.apache.axis2.AxisFault {
11331
11332
11333 try{
11334 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReqResponse.MY_QNAME,
11335 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11336 } catch(org.apache.axis2.databinding.ADBException e){
11337 throw org.apache.axis2.AxisFault.makeFault(e);
11338 }
11339
11340
11341 }
11342
11343 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.DelegationException param, boolean optimizeContent)
11344 throws org.apache.axis2.AxisFault {
11345
11346
11347 try{
11348 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.MY_QNAME,
11349 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11350 } catch(org.apache.axis2.databinding.ADBException e){
11351 throw org.apache.axis2.AxisFault.makeFault(e);
11352 }
11353
11354
11355 }
11356
11357 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.Destroy param, boolean optimizeContent)
11358 throws org.apache.axis2.AxisFault {
11359
11360
11361 try{
11362 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.Destroy.MY_QNAME,
11363 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11364 } catch(org.apache.axis2.databinding.ADBException e){
11365 throw org.apache.axis2.AxisFault.makeFault(e);
11366 }
11367
11368
11369 }
11370
11371 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.DestroyResponse param, boolean optimizeContent)
11372 throws org.apache.axis2.AxisFault {
11373
11374
11375 try{
11376 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.DestroyResponse.MY_QNAME,
11377 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11378 } catch(org.apache.axis2.databinding.ADBException e){
11379 throw org.apache.axis2.AxisFault.makeFault(e);
11380 }
11381
11382
11383 }
11384
11385 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReq param, boolean optimizeContent)
11386 throws org.apache.axis2.AxisFault {
11387
11388
11389 try{
11390 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReq.MY_QNAME,
11391 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11392 } catch(org.apache.axis2.databinding.ADBException e){
11393 throw org.apache.axis2.AxisFault.makeFault(e);
11394 }
11395
11396
11397 }
11398
11399 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReqResponse param, boolean optimizeContent)
11400 throws org.apache.axis2.AxisFault {
11401
11402
11403 try{
11404 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReqResponse.MY_QNAME,
11405 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11406 } catch(org.apache.axis2.databinding.ADBException e){
11407 throw org.apache.axis2.AxisFault.makeFault(e);
11408 }
11409
11410
11411 }
11412
11413 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReq param, boolean optimizeContent)
11414 throws org.apache.axis2.AxisFault {
11415
11416
11417 try{
11418 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReq.MY_QNAME,
11419 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11420 } catch(org.apache.axis2.databinding.ADBException e){
11421 throw org.apache.axis2.AxisFault.makeFault(e);
11422 }
11423
11424
11425 }
11426
11427 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReqResponse param, boolean optimizeContent)
11428 throws org.apache.axis2.AxisFault {
11429
11430
11431 try{
11432 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReqResponse.MY_QNAME,
11433 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11434 } catch(org.apache.axis2.databinding.ADBException e){
11435 throw org.apache.axis2.AxisFault.makeFault(e);
11436 }
11437
11438
11439 }
11440
11441 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadata param, boolean optimizeContent)
11442 throws org.apache.axis2.AxisFault {
11443
11444
11445 try{
11446 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadata.MY_QNAME,
11447 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11448 } catch(org.apache.axis2.databinding.ADBException e){
11449 throw org.apache.axis2.AxisFault.makeFault(e);
11450 }
11451
11452
11453 }
11454
11455 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadataResponse param, boolean optimizeContent)
11456 throws org.apache.axis2.AxisFault {
11457
11458
11459 try{
11460 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadataResponse.MY_QNAME,
11461 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11462 } catch(org.apache.axis2.databinding.ADBException e){
11463 throw org.apache.axis2.AxisFault.makeFault(e);
11464 }
11465
11466
11467 }
11468
11469 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.PutProxy param, boolean optimizeContent)
11470 throws org.apache.axis2.AxisFault {
11471
11472
11473 try{
11474 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.PutProxy.MY_QNAME,
11475 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11476 } catch(org.apache.axis2.databinding.ADBException e){
11477 throw org.apache.axis2.AxisFault.makeFault(e);
11478 }
11479
11480
11481 }
11482
11483 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.PutProxyResponse param, boolean optimizeContent)
11484 throws org.apache.axis2.AxisFault {
11485
11486
11487 try{
11488 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.PutProxyResponse.MY_QNAME,
11489 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11490 } catch(org.apache.axis2.databinding.ADBException e){
11491 throw org.apache.axis2.AxisFault.makeFault(e);
11492 }
11493
11494
11495 }
11496
11497 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.GetVersion param, boolean optimizeContent)
11498 throws org.apache.axis2.AxisFault {
11499
11500
11501 try{
11502 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetVersion.MY_QNAME,
11503 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11504 } catch(org.apache.axis2.databinding.ADBException e){
11505 throw org.apache.axis2.AxisFault.makeFault(e);
11506 }
11507
11508
11509 }
11510
11511 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.GetVersionResponse param, boolean optimizeContent)
11512 throws org.apache.axis2.AxisFault {
11513
11514
11515 try{
11516 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetVersionResponse.MY_QNAME,
11517 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11518 } catch(org.apache.axis2.databinding.ADBException e){
11519 throw org.apache.axis2.AxisFault.makeFault(e);
11520 }
11521
11522
11523 }
11524
11525 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTime param, boolean optimizeContent)
11526 throws org.apache.axis2.AxisFault {
11527
11528
11529 try{
11530 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTime.MY_QNAME,
11531 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11532 } catch(org.apache.axis2.databinding.ADBException e){
11533 throw org.apache.axis2.AxisFault.makeFault(e);
11534 }
11535
11536
11537 }
11538
11539 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTimeResponse param, boolean optimizeContent)
11540 throws org.apache.axis2.AxisFault {
11541
11542
11543 try{
11544 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTimeResponse.MY_QNAME,
11545 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11546 } catch(org.apache.axis2.databinding.ADBException e){
11547 throw org.apache.axis2.AxisFault.makeFault(e);
11548 }
11549
11550
11551 }
11552
11553 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersion param, boolean optimizeContent)
11554 throws org.apache.axis2.AxisFault {
11555
11556
11557 try{
11558 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersion.MY_QNAME,
11559 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11560 } catch(org.apache.axis2.databinding.ADBException e){
11561 throw org.apache.axis2.AxisFault.makeFault(e);
11562 }
11563
11564
11565 }
11566
11567 private org.apache.axiom.om.OMElement toOM(org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersionResponse param, boolean optimizeContent)
11568 throws org.apache.axis2.AxisFault {
11569
11570
11571 try{
11572 return param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersionResponse.MY_QNAME,
11573 org.apache.axiom.om.OMAbstractFactory.getOMFactory());
11574 } catch(org.apache.axis2.databinding.ADBException e){
11575 throw org.apache.axis2.AxisFault.makeFault(e);
11576 }
11577
11578
11579 }
11580
11581
11582 private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReq param, boolean optimizeContent, javax.xml.namespace.QName methodQName)
11583 throws org.apache.axis2.AxisFault{
11584
11585
11586 try{
11587
11588 org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
11589 emptyEnvelope.getBody().addChild(param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReq.MY_QNAME,factory));
11590 return emptyEnvelope;
11591 } catch(org.apache.axis2.databinding.ADBException e){
11592 throw org.apache.axis2.AxisFault.makeFault(e);
11593 }
11594
11595
11596 }
11597
11598
11599
11600
11601
11602
11603 private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.glite.ce.security.delegation.DelegationServiceStub.Destroy param, boolean optimizeContent, javax.xml.namespace.QName methodQName)
11604 throws org.apache.axis2.AxisFault{
11605
11606
11607 try{
11608
11609 org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
11610 emptyEnvelope.getBody().addChild(param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.Destroy.MY_QNAME,factory));
11611 return emptyEnvelope;
11612 } catch(org.apache.axis2.databinding.ADBException e){
11613 throw org.apache.axis2.AxisFault.makeFault(e);
11614 }
11615
11616
11617 }
11618
11619
11620
11621
11622
11623
11624 private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReq param, boolean optimizeContent, javax.xml.namespace.QName methodQName)
11625 throws org.apache.axis2.AxisFault{
11626
11627
11628 try{
11629
11630 org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
11631 emptyEnvelope.getBody().addChild(param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReq.MY_QNAME,factory));
11632 return emptyEnvelope;
11633 } catch(org.apache.axis2.databinding.ADBException e){
11634 throw org.apache.axis2.AxisFault.makeFault(e);
11635 }
11636
11637
11638 }
11639
11640
11641
11642
11643
11644
11645 private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReq param, boolean optimizeContent, javax.xml.namespace.QName methodQName)
11646 throws org.apache.axis2.AxisFault{
11647
11648
11649 try{
11650
11651 org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
11652 emptyEnvelope.getBody().addChild(param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReq.MY_QNAME,factory));
11653 return emptyEnvelope;
11654 } catch(org.apache.axis2.databinding.ADBException e){
11655 throw org.apache.axis2.AxisFault.makeFault(e);
11656 }
11657
11658
11659 }
11660
11661
11662
11663
11664
11665
11666 private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadata param, boolean optimizeContent, javax.xml.namespace.QName methodQName)
11667 throws org.apache.axis2.AxisFault{
11668
11669
11670 try{
11671
11672 org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
11673 emptyEnvelope.getBody().addChild(param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadata.MY_QNAME,factory));
11674 return emptyEnvelope;
11675 } catch(org.apache.axis2.databinding.ADBException e){
11676 throw org.apache.axis2.AxisFault.makeFault(e);
11677 }
11678
11679
11680 }
11681
11682
11683
11684
11685
11686
11687 private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.glite.ce.security.delegation.DelegationServiceStub.PutProxy param, boolean optimizeContent, javax.xml.namespace.QName methodQName)
11688 throws org.apache.axis2.AxisFault{
11689
11690
11691 try{
11692
11693 org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
11694 emptyEnvelope.getBody().addChild(param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.PutProxy.MY_QNAME,factory));
11695 return emptyEnvelope;
11696 } catch(org.apache.axis2.databinding.ADBException e){
11697 throw org.apache.axis2.AxisFault.makeFault(e);
11698 }
11699
11700
11701 }
11702
11703
11704
11705
11706
11707
11708 private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.glite.ce.security.delegation.DelegationServiceStub.GetVersion param, boolean optimizeContent, javax.xml.namespace.QName methodQName)
11709 throws org.apache.axis2.AxisFault{
11710
11711
11712 try{
11713
11714 org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
11715 emptyEnvelope.getBody().addChild(param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetVersion.MY_QNAME,factory));
11716 return emptyEnvelope;
11717 } catch(org.apache.axis2.databinding.ADBException e){
11718 throw org.apache.axis2.AxisFault.makeFault(e);
11719 }
11720
11721
11722 }
11723
11724
11725
11726
11727
11728
11729 private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTime param, boolean optimizeContent, javax.xml.namespace.QName methodQName)
11730 throws org.apache.axis2.AxisFault{
11731
11732
11733 try{
11734
11735 org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
11736 emptyEnvelope.getBody().addChild(param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTime.MY_QNAME,factory));
11737 return emptyEnvelope;
11738 } catch(org.apache.axis2.databinding.ADBException e){
11739 throw org.apache.axis2.AxisFault.makeFault(e);
11740 }
11741
11742
11743 }
11744
11745
11746
11747
11748
11749
11750 private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersion param, boolean optimizeContent, javax.xml.namespace.QName methodQName)
11751 throws org.apache.axis2.AxisFault{
11752
11753
11754 try{
11755
11756 org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
11757 emptyEnvelope.getBody().addChild(param.getOMElement(org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersion.MY_QNAME,factory));
11758 return emptyEnvelope;
11759 } catch(org.apache.axis2.databinding.ADBException e){
11760 throw org.apache.axis2.AxisFault.makeFault(e);
11761 }
11762
11763
11764 }
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775 private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory){
11776 return factory.getDefaultEnvelope();
11777 }
11778
11779
11780 private java.lang.Object fromOM(
11781 org.apache.axiom.om.OMElement param,
11782 java.lang.Class type,
11783 java.util.Map extraNamespaces) throws org.apache.axis2.AxisFault{
11784
11785 try {
11786
11787 if (org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReq.class.equals(type)){
11788
11789 return org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReq.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11790
11791
11792 }
11793
11794 if (org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReqResponse.class.equals(type)){
11795
11796 return org.glite.ce.security.delegation.DelegationServiceStub.GetProxyReqResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11797
11798
11799 }
11800
11801 if (org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.class.equals(type)){
11802
11803 return org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11804
11805
11806 }
11807
11808 if (org.glite.ce.security.delegation.DelegationServiceStub.Destroy.class.equals(type)){
11809
11810 return org.glite.ce.security.delegation.DelegationServiceStub.Destroy.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11811
11812
11813 }
11814
11815 if (org.glite.ce.security.delegation.DelegationServiceStub.DestroyResponse.class.equals(type)){
11816
11817 return org.glite.ce.security.delegation.DelegationServiceStub.DestroyResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11818
11819
11820 }
11821
11822 if (org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.class.equals(type)){
11823
11824 return org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11825
11826
11827 }
11828
11829 if (org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReq.class.equals(type)){
11830
11831 return org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReq.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11832
11833
11834 }
11835
11836 if (org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReqResponse.class.equals(type)){
11837
11838 return org.glite.ce.security.delegation.DelegationServiceStub.RenewProxyReqResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11839
11840
11841 }
11842
11843 if (org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.class.equals(type)){
11844
11845 return org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11846
11847
11848 }
11849
11850 if (org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReq.class.equals(type)){
11851
11852 return org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReq.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11853
11854
11855 }
11856
11857 if (org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReqResponse.class.equals(type)){
11858
11859 return org.glite.ce.security.delegation.DelegationServiceStub.GetNewProxyReqResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11860
11861
11862 }
11863
11864 if (org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.class.equals(type)){
11865
11866 return org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11867
11868
11869 }
11870
11871 if (org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadata.class.equals(type)){
11872
11873 return org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadata.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11874
11875
11876 }
11877
11878 if (org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadataResponse.class.equals(type)){
11879
11880 return org.glite.ce.security.delegation.DelegationServiceStub.GetServiceMetadataResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11881
11882
11883 }
11884
11885 if (org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.class.equals(type)){
11886
11887 return org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11888
11889
11890 }
11891
11892 if (org.glite.ce.security.delegation.DelegationServiceStub.PutProxy.class.equals(type)){
11893
11894 return org.glite.ce.security.delegation.DelegationServiceStub.PutProxy.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11895
11896
11897 }
11898
11899 if (org.glite.ce.security.delegation.DelegationServiceStub.PutProxyResponse.class.equals(type)){
11900
11901 return org.glite.ce.security.delegation.DelegationServiceStub.PutProxyResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11902
11903
11904 }
11905
11906 if (org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.class.equals(type)){
11907
11908 return org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11909
11910
11911 }
11912
11913 if (org.glite.ce.security.delegation.DelegationServiceStub.GetVersion.class.equals(type)){
11914
11915 return org.glite.ce.security.delegation.DelegationServiceStub.GetVersion.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11916
11917
11918 }
11919
11920 if (org.glite.ce.security.delegation.DelegationServiceStub.GetVersionResponse.class.equals(type)){
11921
11922 return org.glite.ce.security.delegation.DelegationServiceStub.GetVersionResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11923
11924
11925 }
11926
11927 if (org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.class.equals(type)){
11928
11929 return org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11930
11931
11932 }
11933
11934 if (org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTime.class.equals(type)){
11935
11936 return org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTime.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11937
11938
11939 }
11940
11941 if (org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTimeResponse.class.equals(type)){
11942
11943 return org.glite.ce.security.delegation.DelegationServiceStub.GetTerminationTimeResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11944
11945
11946 }
11947
11948 if (org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.class.equals(type)){
11949
11950 return org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11951
11952
11953 }
11954
11955 if (org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersion.class.equals(type)){
11956
11957 return org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersion.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11958
11959
11960 }
11961
11962 if (org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersionResponse.class.equals(type)){
11963
11964 return org.glite.ce.security.delegation.DelegationServiceStub.GetInterfaceVersionResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11965
11966
11967 }
11968
11969 if (org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.class.equals(type)){
11970
11971 return org.glite.ce.security.delegation.DelegationServiceStub.DelegationException.Factory.parse(param.getXMLStreamReaderWithoutCaching());
11972
11973
11974 }
11975
11976 } catch (java.lang.Exception e) {
11977 throw org.apache.axis2.AxisFault.makeFault(e);
11978 }
11979 return null;
11980 }
11981
11982
11983
11984
11985 }
11986