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 current request servlet path.
|
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)
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–2020 Apache Software Foundation. All rights reserved.