|
|||||||||
| Home >> All >> com >> aendvari >> satyr >> [ servlet overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.aendvari.satyr.servlet
Class ServletModelUtil

java.lang.Objectcom.aendvari.satyr.servlet.ServletModelUtil
- public class ServletModelUtil
- extends java.lang.Object
Utility class for accessing com.aendvari.common.model.ModelTree data within a servlet.
| Nested Class Summary | |
static class |
ServletModelUtil.NoModelException
Thrown when the model tree could not be retrieved. |
| Field Summary | |
static java.lang.String |
ModelTreeKey
Key for model tree instance. |
| Constructor Summary | |
ServletModelUtil()
|
|
| Method Summary | |
static com.aendvari.common.model.ModelTree |
getModelTree(javax.servlet.http.HttpServletRequest request)
Returns the model tree that is stored in the request or session. |
static com.aendvari.common.model.ModelTree |
getModelTree(javax.servlet.http.HttpSession session)
Returns the model tree that is stored in the session. |
static com.aendvari.common.model.ModelTree |
getModelTree(javax.servlet.jsp.PageContext pageContext,
java.lang.String scope)
Uses scope parameter for where to find the model tree instance. |
static com.aendvari.common.model.ModelTree |
getModelTree(javax.servlet.ServletContext context)
Returns the model tree that is stored in the servlet context. |
static void |
setModelTree(javax.servlet.http.HttpServletRequest request,
com.aendvari.common.model.ModelTree modelTree)
Sets the model tree in the request. |
static void |
setModelTree(javax.servlet.http.HttpSession session,
com.aendvari.common.model.ModelTree modelTree)
Sets the model tree in the session. |
static void |
setModelTree(javax.servlet.jsp.PageContext pageContext,
java.lang.String scope,
com.aendvari.common.model.ModelTree modelTree)
Places the supplied object in the scope specified. |
static void |
setModelTree(javax.servlet.ServletContext context,
com.aendvari.common.model.ModelTree modelTree)
Sets the model tree in the servlet context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
ModelTreeKey
public static final java.lang.String ModelTreeKey
- Key for model tree instance.
- See Also:
- Constant Field Values
| Constructor Detail |
ServletModelUtil
public ServletModelUtil()
| Method Detail |
getModelTree
public static com.aendvari.common.model.ModelTree getModelTree(javax.servlet.http.HttpServletRequest request)
- Returns the model tree that is stored in the request or session.
getModelTree
public static com.aendvari.common.model.ModelTree getModelTree(javax.servlet.http.HttpSession session)
- Returns the model tree that is stored in the session.
getModelTree
public static com.aendvari.common.model.ModelTree getModelTree(javax.servlet.ServletContext context)
- Returns the model tree that is stored in the servlet context.
getModelTree
public static com.aendvari.common.model.ModelTree getModelTree(javax.servlet.jsp.PageContext pageContext, java.lang.String scope)
Uses
scopeparameter for where to find the model tree instance. If not found, an attempt to find the scope manually will occur. A JSP exception will be thrown if nothing is found
setModelTree
public static void setModelTree(javax.servlet.http.HttpServletRequest request, com.aendvari.common.model.ModelTree modelTree)
- Sets the model tree in the request.
setModelTree
public static void setModelTree(javax.servlet.http.HttpSession session, com.aendvari.common.model.ModelTree modelTree)
- Sets the model tree in the session.
setModelTree
public static void setModelTree(javax.servlet.ServletContext context, com.aendvari.common.model.ModelTree modelTree)
- Sets the model tree in the servlet context.
setModelTree
public static void setModelTree(javax.servlet.jsp.PageContext pageContext, java.lang.String scope, com.aendvari.common.model.ModelTree modelTree)
Places the supplied object in the
scopespecified.
|
|||||||||
| Home >> All >> com >> aendvari >> satyr >> [ servlet overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.aendvari.satyr.servlet.ServletModelUtil