Class WSServletContextListener
java.lang.Object
com.sun.xml.ws.transport.http.servlet.WSServletContextListener
- All Implemented Interfaces:
EventListener,javax.servlet.ServletContextAttributeListener,javax.servlet.ServletContextListener
public final class WSServletContextListener
extends Object
implements javax.servlet.ServletContextAttributeListener, javax.servlet.ServletContextListener
Parses
sun-jaxws.xml and sets up
HttpAdapters 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.xml so that we can
start when the container starts the webapp.
- Author:
- WS Development Team
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattributeAdded(javax.servlet.ServletContextAttributeEvent event) voidattributeRemoved(javax.servlet.ServletContextAttributeEvent event) voidattributeReplaced(javax.servlet.ServletContextAttributeEvent event) voidcontextDestroyed(javax.servlet.ServletContextEvent event) voidcontextInitialized(javax.servlet.ServletContextEvent event) protected ContainercreateContainer(javax.servlet.ServletContext context) CreatesContainerimplementation that hosts the JAX-WS endpoint.protected WSServletDelegatecreateDelegate(List<ServletAdapter> adapters, javax.servlet.ServletContext context) CreatesWSServletDelegatethat does the real work.
-
Constructor Details
-
WSServletContextListener
public WSServletContextListener()
-
-
Method Details
-
attributeAdded
public void attributeAdded(javax.servlet.ServletContextAttributeEvent event) - Specified by:
attributeAddedin interfacejavax.servlet.ServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(javax.servlet.ServletContextAttributeEvent event) - Specified by:
attributeRemovedin interfacejavax.servlet.ServletContextAttributeListener
-
attributeReplaced
public void attributeReplaced(javax.servlet.ServletContextAttributeEvent event) - Specified by:
attributeReplacedin interfacejavax.servlet.ServletContextAttributeListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event) - Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event) - Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
createContainer
CreatesContainerimplementation that hosts the JAX-WS endpoint. -
createDelegate
@NotNull protected WSServletDelegate createDelegate(List<ServletAdapter> adapters, javax.servlet.ServletContext context) CreatesWSServletDelegatethat does the real work.
-