Class WSServletContextListener
- java.lang.Object
-
- com.sun.xml.ws.transport.http.servlet.WSServletContextListener
-
- All Implemented Interfaces:
jakarta.servlet.ServletContextAttributeListener,jakarta.servlet.ServletContextListener,EventListener
public final class WSServletContextListener extends Object implements jakarta.servlet.ServletContextAttributeListener, jakarta.servlet.ServletContextListener
Parsessun-jaxws.xmland sets upHttpAdapters for all deployed endpoints.This code is the entry point at the server side in the servlet deployment. The user application writes this in their
web.xmlso that we can start when the container starts the webapp.- Author:
- WS Development Team
-
-
Constructor Summary
Constructors Constructor Description WSServletContextListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattributeAdded(jakarta.servlet.ServletContextAttributeEvent event)voidattributeRemoved(jakarta.servlet.ServletContextAttributeEvent event)voidattributeReplaced(jakarta.servlet.ServletContextAttributeEvent event)voidcontextDestroyed(jakarta.servlet.ServletContextEvent event)voidcontextInitialized(jakarta.servlet.ServletContextEvent event)protected ContainercreateContainer(jakarta.servlet.ServletContext context)CreatesContainerimplementation that hosts the JAX-WS endpoint.protected WSServletDelegatecreateDelegate(List<ServletAdapter> adapters, jakarta.servlet.ServletContext context)CreatesWSServletDelegatethat does the real work.
-
-
-
Method Detail
-
attributeAdded
public void attributeAdded(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeAddedin interfacejakarta.servlet.ServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeRemovedin interfacejakarta.servlet.ServletContextAttributeListener
-
attributeReplaced
public void attributeReplaced(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeReplacedin interfacejakarta.servlet.ServletContextAttributeListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent event)
- Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent event)
- Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
createContainer
@NotNull protected Container createContainer(jakarta.servlet.ServletContext context)
CreatesContainerimplementation that hosts the JAX-WS endpoint.
-
createDelegate
@NotNull protected WSServletDelegate createDelegate(List<ServletAdapter> adapters, jakarta.servlet.ServletContext context)
CreatesWSServletDelegatethat does the real work.
-
-