KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > wsdl > WSDLManager


1 package org.objectweb.celtix.wsdl;
2
3 import java.net.URL JavaDoc;
4
5 import javax.wsdl.Definition;
6 import javax.wsdl.WSDLException;
7 import javax.wsdl.extensions.ExtensionRegistry;
8 import javax.wsdl.factory.WSDLFactory;
9
10 import org.w3c.dom.Element JavaDoc;
11
12 /**
13  * WSDLManager
14  *
15  */

16 public interface WSDLManager {
17
18     /**
19      * Returns the ExtensionRegistry that the WSDLManager
20      * uses when reading WSDL files. Users can use
21      * this to register their own extensors.
22      * @return the ExtensionRegistry
23      */

24     ExtensionRegistry getExtenstionRegistry();
25     
26     /**
27      * Returns the WSDLFactory that is used to read/write WSDL definitions
28      * @return the WSDLFactory
29      */

30     WSDLFactory getWSDLFactory();
31     
32
33     /**
34      * Get the WSDL definition for the given URL. Implementations
35      * may return a copy from a local cache or load a new copy
36      * from the URL.
37      * @param url - the location of the WSDL to load
38      * @return the wsdl definition
39      */

40     Definition getDefinition(URL JavaDoc url) throws WSDLException;
41
42     /**
43      * Get the WSDL definition for the given URL. Implementations
44      * may return a copy from a local cache or load a new copy
45      * from the URL.
46      * @param url - the location of the WSDL to load
47      * @return the wsdl definition
48      */

49     Definition getDefinition(String JavaDoc url) throws WSDLException;
50     
51     /**
52      * Get the WSDL definition for the given Element. Implementations
53      * may return a copy from a local cache or load a new copy
54      * from the Element.
55      * @param element - the root element of the wsdl
56      * @return the wsdl definition
57      */

58     Definition getDefinition(Element JavaDoc element) throws WSDLException;
59     
60     /**
61      * Get the WSDL definition for the given class. Implementations
62      * may return a copy from a local cache or load a new copy
63      * from the class.
64      * @param sei - the Class annotated with a WebService annotation
65      * @return the wsdl Definition
66      */

67     Definition getDefinition(Class JavaDoc<?> sei) throws WSDLException;
68
69     /**
70      * Adds a definition into the cache for lookup later
71      * @param key
72      * @param wsdl
73      */

74     void addDefinition(Object JavaDoc key, Definition wsdl);
75     
76     /**
77      * Shouts down the WSDL manager, and do clean up things
78      */

79     void shutdown();
80 }
81
Free Books   Free Magazines  
Popular Tags