org.apache.catalina.ssi
public class SSIServletRequestUtil extends Object
Method Summary | |
---|---|
static String | getRelativePath(HttpServletRequest request)
Return the relative path associated with this servlet. |
static String | normalize(String path)
Return a context-relative path, beginning with a "/", that represents
the canonical version of the specified path after ".." and "." elements
are resolved out. |
Parameters: request The servlet request we are processing
Deprecated:
Return a context-relative path, beginning with a "/", that represents the canonical version of the specified path after ".." and "." elements are resolved out. If the specified path attempts to go outside the boundaries of the current context (i.e. too many ".." path elements are present), returnnull
instead. This normalize should be
the same as DefaultServlet.normalize, which is almost the same ( see
source code below ) as RequestUtil.normalize. Do we need all this
duplication?
Parameters: path Path to be normalized