Class WebXmlInfoBean

java.lang.Object
com.sun.xml.ws.test.container.jelly.WebXmlInfoBean

public class WebXmlInfoBean extends Object
This bean wraps the endpoint information. It is passed to the Jelly script to create a web.xml file.

The field names match the element names in the web.xml template.

  • Constructor Details

    • WebXmlInfoBean

      public WebXmlInfoBean(DeploymentContext context, List<EndpointInfoBean> endpoints, String listenerClass, String servletClass)
      The constructor creates the fields queried by the Jelly script. In many jax-ws web.xml files, the servlet name and display name are the same. This same convention is followed here for simplicity.

      TODO: support for multiple ports. Currently hard-coding url pattern and assuming only one port/service.

  • Method Details

    • getDisplayName

      public String getDisplayName()
    • getDescription

      public String getDescription()
    • getServletName

      public String getServletName()
    • getServletClass

      public String getServletClass()
    • getListenerClass

      public String getListenerClass()
    • getEndpoints

      public List<EndpointInfoBean> getEndpoints()
      Starting from wsdl, a service may have more than one port. So the web.xml will have more than one url mapping to the same jax-ws servlet. The mappings in web.xml should match the endpoints in sun-jaxws.xml.