public class RequestUtils extends Object
| Constructor and Description |
|---|
RequestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getServletPath(javax.servlet.http.HttpServletRequest request)
Retrieves the path of the current request below the context path, as the servlet container
reports it: the servlet path followed by the path info.
|
static String |
getUri(javax.servlet.http.HttpServletRequest request)
Gets the uri from the request
|
static Date |
parseIfModifiedSince(String headerValue)
Parse input string as date in formats defined for If-Modified-Since header,
see:
https://issues.apache.org/jira/browse/WW-4263
https://web.archive.org/web/20081014021349/http://rfc.net/rfc2616.html#p20
|
public static String getServletPath(javax.servlet.http.HttpServletRequest request)
;jsessionid=... never appear in it, the container strips them before computing both values.request - the requestpublic static String getUri(javax.servlet.http.HttpServletRequest request)
request - The requestpublic static Date parseIfModifiedSince(String headerValue)
headerValue - value of If-Modified-Since headerCopyright © 2000–2026 Apache Software Foundation. All rights reserved.