|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.zeevbelkin.commons.ServletUtils
public class ServletUtils
this class contains utilities those help to wrire servlets and JSP's
Constructor Summary | |
---|---|
ServletUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getContextRoot(javax.servlet.http.HttpServletRequest request)
returns an absolute URL of the running web-application |
static javax.servlet.http.Cookie |
getCookie(java.lang.String name,
javax.servlet.http.HttpServletRequest request)
obtains the cookie by the name |
static java.lang.String |
getCookieValue(java.lang.String name,
javax.servlet.http.HttpServletRequest request)
obtains the cookie value by the name |
static java.lang.String |
getParameterWithReferer(java.lang.String name,
javax.servlet.http.HttpServletRequest request)
This method tries to extract a parameter from the request. |
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 java.lang.String getContextRoot(javax.servlet.http.HttpServletRequest request)
public static javax.servlet.http.Cookie getCookie(java.lang.String name, javax.servlet.http.HttpServletRequest request)
name
- the cookie name
public static java.lang.String getCookieValue(java.lang.String name, javax.servlet.http.HttpServletRequest request)
name
- the cookie name
public static java.lang.String getParameterWithReferer(java.lang.String name, javax.servlet.http.HttpServletRequest request)
name
- the parameter name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |