Class WebModule

java.lang.Object
com.sun.xml.ws.api.server.Module
com.sun.xml.ws.api.server.WebModule
All Implemented Interfaces:
Component
Direct Known Subclasses:
ServletModule

public abstract class WebModule extends Module
Module that is an HTTP container.
Since:
2.1 EA3
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • WebModule

      public WebModule()
  • Method Details

    • getContextPath

      @NotNull public abstract String getContextPath()
      Gets the host, port, and context path portion of this module.

      For example, if this is an web appliation running in a servlet container "http://myhost/myapp", then this method should return this URI.

      This method follows the convention of the HttpServletRequest.getContextPath(), and accepts strings like "http://myhost" (for web applications that are deployed to the root context path), or "http://myhost/foobar" (for web applications that are deployed to context path "/foobar")

      Notice that this method involves in determining the machine name without relying on HTTP "Host" header.