View Javadoc

1   
2   /**
3    * ResourceMatcherServiceCallbackHandler.java
4    *
5    * This file was auto-generated from WSDL
6    * by the Apache Axis2 version: 1.5.1  Built on : Oct 19, 2009 (10:59:00 EDT)
7    */
8   
9       package de.fraunhofer.first.resmatch.client;
10  
11      /**
12       *  ResourceMatcherServiceCallbackHandler Callback class, Users can extend this class and implement
13       *  their own receiveResult and receiveError methods.
14       */
15      public abstract class ResourceMatcherServiceCallbackHandler{
16  
17  
18  
19      protected Object clientData;
20  
21      /**
22      * User can pass in any object that needs to be accessed once the NonBlocking
23      * Web service call is finished and appropriate method of this CallBack is called.
24      * @param clientData Object mechanism by which the user can pass in user data
25      * that will be avilable at the time this callback is called.
26      */
27      public ResourceMatcherServiceCallbackHandler(Object clientData){
28          this.clientData = clientData;
29      }
30  
31      /**
32      * Please use this constructor if you don't want to set any clientData
33      */
34      public ResourceMatcherServiceCallbackHandler(){
35          this.clientData = null;
36      }
37  
38      /**
39       * Get the client data
40       */
41  
42       public Object getClientData() {
43          return clientData;
44       }
45  
46          
47             /**
48              * auto generated Axis2 call back method for match method
49              * override this method for handling normal response from match operation
50              */
51             public void receiveResultmatch(
52                      de.fraunhofer.first.resmatch.client.ResourceMatcherServiceStub.MatchResponse result
53                          ) {
54             }
55  
56            /**
57             * auto generated Axis2 Error handler
58             * override this method for handling error response from match operation
59             */
60              public void receiveErrormatch(java.lang.Exception e) {
61              }
62                  
63  
64  
65      }
66