Class ServletModule
java.lang.Object
com.sun.xml.ws.api.server.Module
com.sun.xml.ws.api.server.WebModule
com.sun.xml.ws.transport.http.servlet.ServletModule
- All Implemented Interfaces:
Component
WebModule that is a servlet container.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContextPath(jakarta.servlet.http.HttpServletRequest req) Gets the host, port, and context path portion of this module usingHttpServletRequestMethods inherited from class com.sun.xml.ws.api.server.WebModule
getContextPathMethods inherited from class com.sun.xml.ws.api.server.Module
getBoundEndpoints, getSPI
-
Constructor Details
-
ServletModule
protected ServletModule()Default constructor.
-
-
Method Details
-
getContextPath
Gets the host, port, and context path portion of this module usingHttpServletRequestThis 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") TODO should we generify WebModule so that we could use TODO WebModule<HttpServletRequest> ??- Parameters:
req- the HTTP request object- Returns:
- the host, port, and context path
-