|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.scooterframework.web.controller.ActionContext
com.scooterframework.web.controller.WebActionContext
public class WebActionContext
WebActionContext class holds context data for current web request.
| Field Summary | |
|---|---|
protected javax.servlet.ServletContext |
servletContext
|
protected javax.servlet.http.HttpServletRequest |
servletRequest
|
protected javax.servlet.http.HttpServletResponse |
servletResponse
|
| Fields inherited from class com.scooterframework.web.controller.ActionContext |
|---|
errors, KEY_FLASH_MESSAGE, SCOPE_CONTEXT, SCOPE_GLOBAL, SCOPE_PARAMETER, SCOPE_REQUEST, SCOPE_SESSION, SCOPE_THREAD |
| Constructor Summary | |
|---|---|
WebActionContext(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getContextDataAsMap()
Gets data in context scope as a map. |
protected java.lang.Object |
getCycleFromCycleMap(java.lang.String name)
Returns a named cycle from cycle map. |
java.lang.Object |
getFromContextData(java.lang.String key)
Gets data represented by the key from the context scope. |
java.lang.Object |
getFromParameterData(java.lang.String key)
Gets data represented by the key from the parameter scope. |
java.lang.Object |
getFromRequestData(java.lang.String key)
Gets data represented by the key from the request scope. |
java.lang.Object |
getFromSessionData(java.lang.String key)
Gets data represented by the key from the session scope. |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Retrieves the underlying Servlet Request. |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
Retrieves the underlying Servlet Response. |
java.util.Map<java.lang.String,java.lang.Object> |
getParameterDataAsMap()
Gets data in parameter scope as a map. |
java.util.Map<java.lang.String,java.lang.Object> |
getRequestDataAsMap()
Gets data in request scope as a map. |
java.util.Map<java.lang.String,java.lang.Object> |
getSessionDataAsMap()
Gets data in session scope as a map. |
void |
removeAllSessionData()
Removes all data represented by the key from session scope. |
void |
removeFromContextData(java.lang.String key)
Removes data represented by the key from context scope. |
void |
removeFromRequestData(java.lang.String key)
Removes data represented by the key from request scope. |
void |
removeFromSessionData(java.lang.String key)
Removes data represented by the key from session scope. |
protected void |
setCycleToCycleMap(java.lang.String name,
java.lang.Object cycle)
Sets a named cycle in cycle map. |
void |
setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
Sets the underlying Servlet Request. |
void |
setHttpServletResponse(javax.servlet.http.HttpServletResponse response)
Sets the underlying Servlet Response. |
void |
storeToContext(java.lang.String key,
java.lang.Object object)
Stores the object represented by the key to context scope. |
void |
storeToRequest(java.lang.String key,
java.lang.Object object)
Stores the object represented by the key to request scope. |
void |
storeToSession(java.lang.String key,
java.lang.Object object)
Stores the object represented by the key to session scope. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.servlet.ServletContext servletContext
protected javax.servlet.http.HttpServletRequest servletRequest
protected javax.servlet.http.HttpServletResponse servletResponse
| Constructor Detail |
|---|
public WebActionContext(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
| Method Detail |
|---|
public void setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public void setHttpServletResponse(javax.servlet.http.HttpServletResponse response)
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
public java.util.Map<java.lang.String,java.lang.Object> getParameterDataAsMap()
getParameterDataAsMap in class ActionContextpublic java.util.Map<java.lang.String,java.lang.Object> getRequestDataAsMap()
getRequestDataAsMap in class ActionContextpublic java.util.Map<java.lang.String,java.lang.Object> getSessionDataAsMap()
getSessionDataAsMap in class ActionContextpublic java.util.Map<java.lang.String,java.lang.Object> getContextDataAsMap()
getContextDataAsMap in class ActionContextpublic java.lang.Object getFromParameterData(java.lang.String key)
getFromParameterData in class ActionContextkey -
public java.lang.Object getFromRequestData(java.lang.String key)
getFromRequestData in class ActionContextkey -
public java.lang.Object getFromSessionData(java.lang.String key)
getFromSessionData in class ActionContextkey -
public java.lang.Object getFromContextData(java.lang.String key)
getFromContextData in class ActionContextkey -
public void removeFromRequestData(java.lang.String key)
removeFromRequestData in class ActionContextkey - public void removeFromSessionData(java.lang.String key)
removeFromSessionData in class ActionContextkey - public void removeAllSessionData()
removeAllSessionData in class ActionContextpublic void removeFromContextData(java.lang.String key)
removeFromContextData in class ActionContextkey -
public void storeToRequest(java.lang.String key,
java.lang.Object object)
storeToRequest in class ActionContextkey - Stringobject - Object
public void storeToSession(java.lang.String key,
java.lang.Object object)
storeToSession in class ActionContextkey - Stringobject - Object
public void storeToContext(java.lang.String key,
java.lang.Object object)
storeToContext in class ActionContextkey - Stringobject - Objectprotected java.lang.Object getCycleFromCycleMap(java.lang.String name)
getCycleFromCycleMap in class ActionContextname -
protected void setCycleToCycleMap(java.lang.String name,
java.lang.Object cycle)
setCycleToCycleMap in class ActionContextname - cycle -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||