Class WSServletContextListener
java.lang.Object
com.sun.xml.ws.transport.http.servlet.WSServletContextListener
- All Implemented Interfaces:
ServletContextAttributeListener,ServletContextListener,EventListener
public final class WSServletContextListener
extends Object
implements ServletContextAttributeListener, 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 TypeMethodDescriptionvoidvoidvoidvoidvoidprotected ContainercreateContainer(ServletContext context) CreatesContainerimplementation that hosts the JAX-WS endpoint.protected WSServletDelegatecreateDelegate(List<ServletAdapter> adapters, ServletContext context) CreatesWSServletDelegatethat does the real work.
-
Constructor Details
-
WSServletContextListener
public WSServletContextListener()Default constructor.
-
-
Method Details
-
attributeAdded
- Specified by:
attributeAddedin interfaceServletContextAttributeListener
-
attributeRemoved
- Specified by:
attributeRemovedin interfaceServletContextAttributeListener
-
attributeReplaced
- Specified by:
attributeReplacedin interfaceServletContextAttributeListener
-
contextDestroyed
- Specified by:
contextDestroyedin interfaceServletContextListener
-
contextInitialized
- Specified by:
contextInitializedin interfaceServletContextListener
-
createContainer
CreatesContainerimplementation that hosts the JAX-WS endpoint.- Parameters:
context- the Servlet context object- Returns:
Containerimplementation that hosts the JAX-WS endpoint
-
createDelegate
@NotNull protected WSServletDelegate createDelegate(List<ServletAdapter> adapters, ServletContext context) CreatesWSServletDelegatethat does the real work.- Parameters:
adapters- adapterscontext- the Servlet context object- Returns:
WSServletDelegatethat does the real work
-