public class ServletUtils
extends java.lang.Object
| Constructor and Description |
|---|
ServletUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getApplicationName(javax.servlet.http.HttpServletRequest request)
Will parse the request and return the name of the current web application.
|
static java.lang.String |
getConfigurationSetting(java.lang.String[] settingKeysInPrecedenceOrder,
javax.servlet.ServletConfig config)
Will return the configuration setting requested *in the order of the keys provided*.
|
static java.util.List<NameValuePair> |
listRequestAttributes(javax.servlet.http.HttpServletRequest request)
Will format request attributes as NameValuePairs.
|
static java.util.List<NameValuePair> |
listSessionAttributes(javax.servlet.http.HttpSession session)
Will format session attributes as NavmeValuePairs.
|
static void |
reThrowServletFilterException(java.lang.Throwable t)
Will rethrow a caught Servlet Exception
|
public static void reThrowServletFilterException(java.lang.Throwable t)
throws javax.servlet.ServletException,
java.io.IOException
t - javax.servlet.ServletExceptionjava.io.IOExceptionpublic static java.util.List<NameValuePair> listSessionAttributes(javax.servlet.http.HttpSession session)
session - public static java.util.List<NameValuePair> listRequestAttributes(javax.servlet.http.HttpServletRequest request)
request - public static java.lang.String getApplicationName(javax.servlet.http.HttpServletRequest request)
request - public static java.lang.String getConfigurationSetting(java.lang.String[] settingKeysInPrecedenceOrder,
javax.servlet.ServletConfig config)
settingKeysInPrecedenceOrder - config - Copyright © 2015 The Admin4J Project. All Rights Reserved.