|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.loom.action.ActionContext
public class ActionContext
Encapsulates the objects associated to this request: request, response, current action mapping, etc.
Constructor Summary | |
---|---|
ActionContext()
|
Method Summary | |
---|---|
ActionMapping |
getActionMapping()
|
java.lang.Object |
getAttribute(java.lang.String name,
Scope scope)
Gets the value of the requested attribute for the given scope |
Event |
getEvent()
|
Messages |
getMessages()
|
LoomServletRequest |
getRequest()
|
ResolutionFactory |
getResolutionFactory()
|
LoomServletResponse |
getResponse()
|
javax.servlet.ServletContext |
getServletContext()
|
javax.servlet.http.HttpSession |
getSession()
|
javax.servlet.http.HttpSession |
getSession(boolean create)
|
boolean |
hasError()
|
void |
setAttribute(java.lang.String name,
java.lang.Object value,
Scope scope)
Sets an attribute for the given scope |
void |
setEvent(Event event)
|
void |
setRequest(LoomServletRequest request)
|
void |
setResolutionFactory(ResolutionFactory resolutionFactory)
|
void |
setResponse(LoomServletResponse response)
|
void |
setSelectedMenuItem(java.lang.String menuId,
java.lang.Class<? extends Action> actionClass,
java.lang.String event)
Sets the currently selected menu item |
void |
setSelectedMenuItem(java.lang.String menuId,
java.lang.String menuItemId)
Sets the currently selected menu item |
void |
setServletContext(javax.servlet.ServletContext servletContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionContext()
Method Detail |
---|
public LoomServletRequest getRequest()
public void setAttribute(java.lang.String name, java.lang.Object value, Scope scope)
name
- the name of the attributevalue
- the value of the attributescope
- the scope where the attribute should be stored. PAGE is not allowed here.public java.lang.Object getAttribute(java.lang.String name, Scope scope)
name
- the name of the attributescope
- the scope where the attribute should be stored. PAGE is not allowed here.public void setSelectedMenuItem(java.lang.String menuId, java.lang.String menuItemId)
public void setSelectedMenuItem(java.lang.String menuId, java.lang.Class<? extends Action> actionClass, java.lang.String event)
public Event getEvent()
public ActionMapping getActionMapping()
public javax.servlet.http.HttpSession getSession()
public javax.servlet.http.HttpSession getSession(boolean create)
public void setRequest(LoomServletRequest request)
public LoomServletResponse getResponse()
public void setResponse(LoomServletResponse response)
public ResolutionFactory getResolutionFactory()
public void setResolutionFactory(ResolutionFactory resolutionFactory)
public javax.servlet.ServletContext getServletContext()
public void setServletContext(javax.servlet.ServletContext servletContext)
public Messages getMessages()
public boolean hasError()
public void setEvent(Event event)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |