|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.common.util.ServletUtils
public class ServletUtils
A collection of useful tools for servlet handling.
Constructor Summary | |
---|---|
ServletUtils()
|
Method Summary | |
---|---|
static String |
buildContextLocation(javax.servlet.http.HttpServletRequest request,
String... contextRelativePath)
|
static String |
getContextLocation(javax.servlet.http.HttpServletRequest request)
|
static String |
getParameterValueEqualIgnoreCase(javax.servlet.http.HttpServletRequest request,
String paramname)
Method gets an parameter value by it's name ignoring the case. |
static String |
getRequestLocation(javax.servlet.http.HttpServletRequest request)
|
static String |
getRequestLocationIncludingParameter(javax.servlet.http.HttpServletRequest request)
this methods appends all parameters from the request (also post parameters) to the request location. |
static String |
getRequestLocationIncludingQueryParameter(javax.servlet.http.HttpServletRequest request)
this method only appends the query parameters to the request location. |
static String |
getServletLocation(javax.servlet.http.HttpServletRequest request)
Method gets the servlets url from the request. |
static void |
sendFormPostRedirect(String redirectUrl,
javax.servlet.http.HttpServletResponse response)
Methods sends a html form redirect. |
static void |
sendFormPostRedirect(String redirectUrl,
javax.servlet.http.HttpServletResponse response,
Map<String,Iterable<String>> params)
|
static void |
sendLocationHeaderRedirect(String redirectUrl,
javax.servlet.http.HttpServletResponse response)
Sends a redirect not using the response.sendRedirect method to allow send Set-Cookie headers. |
static void |
sendRedirect(String redirectUrl,
javax.servlet.http.HttpServletResponse response)
This methods decides based on the length of the redirect url if it uses a location header redirect or form post redirect. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletUtils()
Method Detail |
---|
public static String getParameterValueEqualIgnoreCase(javax.servlet.http.HttpServletRequest request, String paramname)
request
- the request.paramname
- the paramname.
public static String buildContextLocation(javax.servlet.http.HttpServletRequest request, String... contextRelativePath)
public static String getContextLocation(javax.servlet.http.HttpServletRequest request)
public static String getServletLocation(javax.servlet.http.HttpServletRequest request)
request
- the request.
public static String getRequestLocation(javax.servlet.http.HttpServletRequest request)
public static String getRequestLocationIncludingParameter(javax.servlet.http.HttpServletRequest request)
public static String getRequestLocationIncludingQueryParameter(javax.servlet.http.HttpServletRequest request)
public static void sendLocationHeaderRedirect(String redirectUrl, javax.servlet.http.HttpServletResponse response)
public static void sendRedirect(String redirectUrl, javax.servlet.http.HttpServletResponse response)
public static void sendFormPostRedirect(String redirectUrl, javax.servlet.http.HttpServletResponse response)
public static void sendFormPostRedirect(String redirectUrl, javax.servlet.http.HttpServletResponse response, Map<String,Iterable<String>> params)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |