com.sun.xml.ws.transport.http.servlet
Class WSServletContextListener

java.lang.Object
  extended by 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.


Field Summary
(package private) static String JAXWS_RI_RUNTIME
           
 
Constructor Summary
WSServletContextListener()
           
 
Method Summary
 void attributeAdded(javax.servlet.ServletContextAttributeEvent event)
           
 void attributeRemoved(javax.servlet.ServletContextAttributeEvent event)
           
 void attributeReplaced(javax.servlet.ServletContextAttributeEvent event)
           
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
protected  Container createContainer(javax.servlet.ServletContext context)
          Creates Container implementation that hosts the JAX-WS endpoint.
protected  WSServletDelegate createDelegate(List<ServletAdapter> adapters, javax.servlet.ServletContext context)
          Creates WSServletDelegate that does the real work.
(package private)  void parseAdaptersAndCreateDelegate(javax.servlet.ServletContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAXWS_RI_RUNTIME

static final String JAXWS_RI_RUNTIME
See Also:
Constant Field Values
Constructor Detail

WSServletContextListener

public WSServletContextListener()
Method Detail

attributeAdded

public void attributeAdded(javax.servlet.ServletContextAttributeEvent event)
Specified by:
attributeAdded in interface javax.servlet.ServletContextAttributeListener

attributeRemoved

public void attributeRemoved(javax.servlet.ServletContextAttributeEvent event)
Specified by:
attributeRemoved in interface javax.servlet.ServletContextAttributeListener

attributeReplaced

public void attributeReplaced(javax.servlet.ServletContextAttributeEvent event)
Specified by:
attributeReplaced in interface javax.servlet.ServletContextAttributeListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

parseAdaptersAndCreateDelegate

void parseAdaptersAndCreateDelegate(javax.servlet.ServletContext context)

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

createContainer

@NotNull
protected Container createContainer(javax.servlet.ServletContext context)
Creates Container implementation that hosts the JAX-WS endpoint.


createDelegate

@NotNull
protected WSServletDelegate createDelegate(List<ServletAdapter> adapters,
                                                   javax.servlet.ServletContext context)
Creates WSServletDelegate that does the real work.



Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.