FileDocCategorySizeDatePackage
JAXWSAdapterRegistry.javaAPI DocGlassfish v2 API6304Fri May 04 22:36:10 BST 2007com.sun.enterprise.webservice

JAXWSAdapterRegistry

public class JAXWSAdapterRegistry extends Object
Registry of JAXWS Adapter of endpoints.

Fields Summary
private static JAXWSAdapterRegistry
registry
private Map
store
private static final com.sun.enterprise.util.i18n.StringManager
localStrings
final Logger
logger
Constructors Summary
private JAXWSAdapterRegistry()
Creates a new instance of JAXWSServletUtil

    
           
      
        store = new HashMap();
    
Methods Summary
public voidaddAdapter(java.lang.String contextRoot, java.lang.String urlPattern, com.sun.xml.ws.api.server.Adapter info)

        if (contextRoot == null)
            contextRoot = "";
        ContextAdapter contextRtInfo = 
                (ContextAdapter)store.get(contextRoot);
        if(contextRtInfo == null) {
            contextRtInfo = new ContextAdapter(contextRoot);
        }        
        contextRtInfo.addAdapter(urlPattern, info);
        store.put(contextRoot, contextRtInfo);
    
public com.sun.xml.ws.api.server.AdaptergetAdapter(java.lang.String contextRoot, java.lang.String path, java.lang.String urlPattern)

         ContextAdapter serviceInfo = 
                (ContextAdapter)store.get(contextRoot);        
        if(serviceInfo == null)
             return null;        
         return serviceInfo.getAdapter(path, urlPattern);
     
public static synchronized com.sun.enterprise.webservice.JAXWSAdapterRegistrygetInstance()

        if(registry == null)
            registry = new JAXWSAdapterRegistry();
        return registry;
    
public voidremoveAdapter(java.lang.String contextRoot)

         if(contextRoot == null)
             contextRoot = "";
         ContextAdapter serviceInfo = 
                (ContextAdapter)store.get(contextRoot);
        if(serviceInfo == null)
             return ;
        store.remove(contextRoot);