< prev index next >

src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/server/WebModule.java

Print this page




  26 package com.sun.xml.internal.ws.api.server;
  27 
  28 import com.sun.istack.internal.NotNull;
  29 
  30 /**
  31  * {@link Module} that is an HTTP container.
  32  *
  33  * @author Kohsuke Kawaguchi
  34  * @since 2.1 EA3
  35  */
  36 public abstract class WebModule extends Module {
  37     /**
  38      * Gets the host, port, and context path portion of this module.
  39      *
  40      * <p>
  41      * For example, if this is an web appliation running in a servlet
  42      * container "http://myhost/myapp", then this method should return
  43      * this URI.
  44      *
  45      * <p>
  46      * This method follows the convention of the <tt>HttpServletRequest.getContextPath()</tt>,
  47      * and accepts strings like "http://myhost" (for web applications that are deployed
  48      * to the root context path), or "http://myhost/foobar" (for web applications
  49      * that are deployed to context path "/foobar")
  50      *
  51      * <p>
  52      * Notice that this method involves in determining the machine name
  53      * without relying on HTTP "Host" header.
  54      */
  55     public abstract @NotNull String getContextPath();
  56 }


  26 package com.sun.xml.internal.ws.api.server;
  27 
  28 import com.sun.istack.internal.NotNull;
  29 
  30 /**
  31  * {@link Module} that is an HTTP container.
  32  *
  33  * @author Kohsuke Kawaguchi
  34  * @since 2.1 EA3
  35  */
  36 public abstract class WebModule extends Module {
  37     /**
  38      * Gets the host, port, and context path portion of this module.
  39      *
  40      * <p>
  41      * For example, if this is an web appliation running in a servlet
  42      * container "http://myhost/myapp", then this method should return
  43      * this URI.
  44      *
  45      * <p>
  46      * This method follows the convention of the {@code HttpServletRequest.getContextPath()},
  47      * and accepts strings like "http://myhost" (for web applications that are deployed
  48      * to the root context path), or "http://myhost/foobar" (for web applications
  49      * that are deployed to context path "/foobar")
  50      *
  51      * <p>
  52      * Notice that this method involves in determining the machine name
  53      * without relying on HTTP "Host" header.
  54      */
  55     public abstract @NotNull String getContextPath();
  56 }
< prev index next >