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
Parses
sun-jaxws.xml
and sets up
HttpAdapter
s 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attributeAdded
(jakarta.servlet.ServletContextAttributeEvent event) void
attributeRemoved
(jakarta.servlet.ServletContextAttributeEvent event) void
attributeReplaced
(jakarta.servlet.ServletContextAttributeEvent event) void
contextDestroyed
(jakarta.servlet.ServletContextEvent event) void
contextInitialized
(jakarta.servlet.ServletContextEvent event) protected Container
createContainer
(jakarta.servlet.ServletContext context) CreatesContainer
implementation that hosts the JAX-WS endpoint.protected WSServletDelegate
createDelegate
(List<ServletAdapter> adapters, jakarta.servlet.ServletContext context) CreatesWSServletDelegate
that does the real work.
-
Constructor Details
-
WSServletContextListener
public WSServletContextListener()
-
-
Method Details
-
attributeAdded
public void attributeAdded(jakarta.servlet.ServletContextAttributeEvent event) - Specified by:
attributeAdded
in interfacejakarta.servlet.ServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.ServletContextAttributeEvent event) - Specified by:
attributeRemoved
in interfacejakarta.servlet.ServletContextAttributeListener
-
attributeReplaced
public void attributeReplaced(jakarta.servlet.ServletContextAttributeEvent event) - Specified by:
attributeReplaced
in interfacejakarta.servlet.ServletContextAttributeListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent event) - Specified by:
contextDestroyed
in interfacejakarta.servlet.ServletContextListener
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent event) - Specified by:
contextInitialized
in interfacejakarta.servlet.ServletContextListener
-
createContainer
CreatesContainer
implementation that hosts the JAX-WS endpoint.- Parameters:
context
- the Servlet context object- Returns:
Container
implementation that hosts the JAX-WS endpoint
-
createDelegate
@NotNull protected WSServletDelegate createDelegate(List<ServletAdapter> adapters, jakarta.servlet.ServletContext context) CreatesWSServletDelegate
that does the real work.- Parameters:
adapters
- adapterscontext
- the Servlet context object- Returns:
WSServletDelegate
that does the real work
-