Constructor and Description |
---|
ServletModule() |
Modifier and Type | Method and Description |
---|---|
String |
getContextPath(javax.servlet.http.HttpServletRequest req)
Gets the host, port, and context path portion of this module using
HttpServletRequest |
getContextPath
getBoundEndpoints, getSPI
@NotNull public String getContextPath(javax.servlet.http.HttpServletRequest req)
HttpServletRequest
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")
TODO should we generify WebModule so that we could use
TODO WebModule
Copyright © 2015 Oracle Corporation. All rights reserved.