|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hopto.pentaj.jexin.util.WebUtils
public class WebUtils
Static helper methods for the MVC layer.
| Constructor Summary | |
|---|---|
WebUtils()
|
|
| Method Summary | |
|---|---|
static javax.servlet.http.HttpSession |
getExistingSession(javax.servlet.http.HttpServletRequest request)
Gets the session from the request. |
static java.lang.String |
getRequiredParameter(javax.servlet.http.HttpServletRequest request,
java.lang.String paramName)
Gets the parameter from the request. |
static java.lang.String[] |
getRequiredParameterValues(javax.servlet.http.HttpServletRequest request,
java.lang.String paramName)
Gets the parameter values from the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebUtils()
| Method Detail |
|---|
public static javax.servlet.http.HttpSession getExistingSession(javax.servlet.http.HttpServletRequest request)
RuntimeException is logged and thrown.
request -
HttpSession
public static java.lang.String getRequiredParameter(javax.servlet.http.HttpServletRequest request,
java.lang.String paramName)
RuntimeException is logged and thrown.
request - The request to get the parameter fromparamName - The name of the parameter
public static java.lang.String[] getRequiredParameterValues(javax.servlet.http.HttpServletRequest request,
java.lang.String paramName)
RuntimeException is logged and
thrown. Use this method instead of getRequiredParameter(HttpServletRequest, String) if there may be
multiple values.
request - The request to get the parameter fromparamName - The name of the parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||