public class ServletUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
copyright |
static org.slf4j.Logger |
logger |
static long |
ONE_YEAR_MILLIS |
| Constructor and Description |
|---|
ServletUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
dumpRequestAttributes(HttpServletRequest request) |
static String |
getApplicationBaseUrl(HttpServletRequest req) |
static String |
getPath(HttpServletRequest request)
Returns the requested path, without the context path.
|
static void |
markCacheableForever(HttpServletResponse response)
Marks the resource returned to a web client to be stored in cache for a very long time.
|
static String |
removePathParameters(String originalPath)
|
static String |
removeRedundantTrailingSlashes(String path) |
public static final String copyright
public static final org.slf4j.Logger logger
public static final long ONE_YEAR_MILLIS
public static void dumpRequestAttributes(HttpServletRequest request)
public static String getPath(HttpServletRequest request)
request - the HTTP requestpublic static String getApplicationBaseUrl(HttpServletRequest req)
public static void markCacheableForever(HttpServletResponse response)
response - the HTTP response whose headers are set.