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

JAXWSContainer

public class JAXWSContainer extends com.sun.xml.ws.api.server.Container

Fields Summary
private final ServletContext
servletContext
private final com.sun.enterprise.deployment.WebServiceEndpoint
endpoint
private final JAXWSServletModule
module
Constructors Summary
public JAXWSContainer(ServletContext servletContext, com.sun.enterprise.deployment.WebServiceEndpoint ep)

        this.servletContext = servletContext;
        this.endpoint = ep;
        
        if (servletContext != null) {
            this.module = JAXWSServletModule
                .getServletModule(servletContext.getContextPath());
        } else {
            this.module = null;
        }
       
    
Methods Summary
public voidaddEndpoint(com.sun.xml.ws.api.server.WSEndpoint wsEndpoint)

  
        if (module != null) {
            module.addEndpoint(endpoint.getEndpointAddressUri(), 
                                   wsEndpoint);
        }

    
public TgetSPI(java.lang.Class spiType)

        if (spiType == ServletContext.class) {
            return (T)servletContext;
        }
        if((spiType == com.sun.xml.ws.api.server.ServerPipelineHook.class) ||
           (spiType == com.sun.xml.ws.assembler.ServerPipelineHook.class)){
            return((T)new ServerPipeCreator(endpoint));
        }
        if(spiType == ResourceInjector.class) {
            // Give control of injection time only for servlet endpoints
            if(endpoint.implementedByWebComponent()) {
                return ((T)new ResourceInjectorImpl(endpoint));
            }
        }
        if (spiType.isAssignableFrom(ServletModule.class)) {
            
            if (module != null) {
                return ((T)spiType.cast(module));
            }
        }
        return null;