|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.appfuse.webapp.util.BaseUtil
org.appfuse.webapp.util.RequestUtil
RequestUtil utility class Good ol' copy-n-paste from http://www.javaworld.com/javaworld/jw-02-2002/ssl/utilityclass.txt which is referenced in the following article: http://www.javaworld.com/javaworld/jw-02-2002/jw-0215-ssl.html
| Constructor Summary | |
RequestUtil()
|
|
| Method Summary | |
static StringBuffer |
createQueryStringFromMap(Map m,
String ampersand)
Builds a query string from a given map of parameters |
static HttpServletResponse |
deleteCookie(HttpServletResponse response,
Cookie cookie,
String path)
Convenience method for deleting a cookie by name |
static Cookie |
getCookie(HttpServletRequest request,
String name)
Convenience method to get a cookie by name |
static String |
getRequestParameters(HttpServletRequest aRequest)
Creates query String from request body parameters |
static void |
reclaimRequestAttributes(HttpServletRequest aRequest)
Returns request attributes from session to request |
static HttpServletResponse |
setCookie(HttpServletResponse response,
String name,
String value,
String path)
Convenience method to set a cookie |
static void |
stowRequestAttributes(HttpServletRequest aRequest)
Stores request attributes in session |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RequestUtil()
| Method Detail |
public static String getRequestParameters(HttpServletRequest aRequest)
aRequest - DOCUMENT ME!
public static StringBuffer createQueryStringFromMap(Map m,
String ampersand)
m - A map of parametersampersand - String to use for ampersands (e.g. "&" or "&" )
public static void stowRequestAttributes(HttpServletRequest aRequest)
aRequest - DOCUMENT ME!public static void reclaimRequestAttributes(HttpServletRequest aRequest)
aRequest - DOCUMENT ME!
public static HttpServletResponse setCookie(HttpServletResponse response,
String name,
String value,
String path)
response - name - value -
public static Cookie getCookie(HttpServletRequest request,
String name)
request - DOCUMENT ME!name - DOCUMENT ME!
public static HttpServletResponse deleteCookie(HttpServletResponse response,
Cookie cookie,
String path)
response - DOCUMENT ME!cookie - DOCUMENT ME!
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||