|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.javaranch.common.ServletData
Constructor Summary | |
ServletData(HttpServletRequest request,
HttpServletResponse response)
|
|
ServletData(HttpServletRequest request,
HttpServletResponse response,
HttpSession session)
|
Method Summary | |
boolean |
exists(java.lang.String key)
Is the key used in the session. |
java.lang.Object |
get(java.lang.String key)
Get an object from the session. |
int |
getInt(java.lang.String key)
The complementary method to "set(key,int)". |
java.lang.String |
getParameter(java.lang.String parameterName)
Same as getRequest.getParameter(). |
java.lang.String[] |
getParameterValues(java.lang.String parameterName)
Same as getRequest.getParameterValues(). |
HttpServletRequest |
getRequest()
Get the j2ee request. |
HttpServletResponse |
getResponse()
Get the j2ee response. |
HttpSession |
getSession()
Get the j2ee session. |
java.lang.String |
getString(java.lang.String key)
Same as get(), only with a "toString()" performed on the returned object. |
void |
remove(java.lang.String key)
Remove an object from the session. |
void |
set(java.lang.String key,
int i)
Store an integer in the session. |
void |
set(java.lang.String key,
java.lang.Object obj)
Store an object in the session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServletData(HttpServletRequest request, HttpServletResponse response, HttpSession session)
public ServletData(HttpServletRequest request, HttpServletResponse response)
Method Detail |
public void set(java.lang.String key, java.lang.Object obj)
public java.lang.Object get(java.lang.String key)
public java.lang.String getString(java.lang.String key)
public void set(java.lang.String key, int i)
public int getInt(java.lang.String key)
public boolean exists(java.lang.String key)
public void remove(java.lang.String key)
public HttpSession getSession()
public HttpServletRequest getRequest()
public HttpServletResponse getResponse()
public java.lang.String getParameter(java.lang.String parameterName)
public java.lang.String[] getParameterValues(java.lang.String parameterName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |