FileDocCategorySizeDatePackage
JAXWSServletModule.javaAPI DocGlassfish v2 API3908Tue Jul 03 12:35:18 BST 2007com.sun.enterprise.webservice

JAXWSServletModule

public class JAXWSServletModule extends com.sun.xml.ws.transport.http.servlet.ServletModule
Implementation of JAX-WS ServletModule SPI used by WSIT WS-MetadataExchange. In the current 109 design, each endpoint has a unique JAXWSContainer. On the other hand, the requirements imposed by WSIT WS-MetadataExchange require that all endpoints sharing a context root share a ServletMoule. Therefore, in general, multiple JAXWSContainers will share a JAXWSServletModule, so JAXWSContainer must use a lookup in the static JAXWSServletModule.modules to find its associatiated module.

Fields Summary
private static final Hashtable
modules
private final Hashtable
endpoints
private final String
contextPath
Constructors Summary
private JAXWSServletModule(String contextPath)

            this.contextPath = contextPath;
    
Methods Summary
public voidaddEndpoint(java.lang.String uri, com.sun.xml.ws.api.server.WSEndpoint endpoint)

        endpoints.put(uri, new JAXWSBoundEndpoint(uri, endpoint));
    
public java.util.ListgetBoundEndpoints()

            return new ArrayList(endpoints.values());
    
public java.lang.StringgetContextPath()

        return contextPath;
    
public static synchronized com.sun.enterprise.webservice.JAXWSServletModulegetServletModule(java.lang.String contextPath)

    
         
          
        
        JAXWSServletModule ret = modules.get(contextPath);
        if (ret == null) {
            ret = new JAXWSServletModule(contextPath);
            modules.put(contextPath, ret);
        }
        return ret;