KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis2 > clientapi > Callback


1 package org.apache.axis2.clientapi;
2
3 import org.apache.axis2.soap.SOAPEnvelope;
4
5 /**
6  * Created by IntelliJ IDEA.
7  * Author : Deepal Jayasinghe
8  * Date: Apr 9, 2005
9  * Time: 8:03:41 PM
10  */

11 public abstract class Callback {
12      /**
13      * Field complete
14      */

15     private boolean complete = false;
16
17     /**
18      * Field result
19      */

20     private SOAPEnvelope result;
21
22     /**
23      * Method onComplete
24      *
25      * @param result
26      */

27     public abstract void onComplete(AsyncResult result);
28
29     /**
30      * Method reportError
31      *
32      * @param e
33      */

34     public abstract void reportError(Exception JavaDoc e);
35
36     /**
37      * Method isComplete
38      *
39      * @return
40      */

41     public boolean isComplete() {
42         return complete;
43     }
44
45     /**
46      * Method setComplete
47      *
48      * @param complete
49      */

50     public void setComplete(boolean complete) {
51         this.complete = complete;
52     }
53
54     /**
55      * Method getResult
56      *
57      * @return
58      */

59     public SOAPEnvelope getResult() {
60         return result;
61     }
62
63     /**
64      * Method setResult
65      *
66      * @param result
67      */

68     public void setResult(SOAPEnvelope result) {
69         this.result = result;
70     }
71 }
72
Popular Tags