|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.adapter.struts.ActionContextWrapper
Wrapper Class for the ActionContext
Field Summary | |
private ActionContext |
nested
The ActionContext |
Constructor Summary | |
ActionContextWrapper(ActionContext ctx)
Constructor |
Method Summary | |
void |
addError(java.lang.String key,
java.lang.Throwable t)
Serves to include an exception in the global error collection. |
void |
addErrors(org.apache.struts.action.ActionMessages errorList)
Adds an error collection |
void |
addGlobalError(java.lang.String key)
Saves a general error (without reference to an input field) and is used to present error messages upon returning from a sub-dialog within the calling dialog. |
void |
addGlobalError(java.lang.String key,
java.lang.Object p1)
Saves a general error (without reference to an input field) |
void |
addGlobalError(java.lang.String key,
java.lang.Object p1,
java.lang.Object p2)
Saves a general error (without reference to an input field) |
void |
addGlobalError(java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
Saves a general error (without reference to an input field) |
void |
addGlobalError(java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3,
java.lang.Object p4)
Saves a general error (without reference to an input field) |
void |
addGlobalMessage(java.lang.String key)
Saves a message without reference to a Property. |
void |
addGlobalMessage(java.lang.String key,
java.lang.Object p1)
Saves a message without reference to a Property. |
void |
addGlobalMessage(java.lang.String key,
java.lang.Object p1,
java.lang.Object p2)
Saves a message without reference to a Property. |
void |
addGlobalMessage(java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
Saves a message without reference to a Property. |
void |
addGlobalMessage(java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3,
java.lang.Object p4)
Saves a message without reference to a Property. |
void |
addMenu(MenuItem menu)
Adds the given Menu to the AJAX response for this action. |
void |
addMessages(org.apache.struts.action.ActionMessages messageList)
Adds an message collection |
void |
addPropertyError(java.lang.String property,
java.lang.String key)
Saves an error to a Property in the error collection |
void |
addPropertyError(java.lang.String property,
java.lang.String key,
java.lang.Object p1)
Saves an error to a Property in the error collection |
void |
addPropertyError(java.lang.String property,
java.lang.String key,
java.lang.Object p1,
java.lang.Object p2)
Saves an error to a Property in the error collection |
void |
addPropertyError(java.lang.String property,
java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
Saves an error to a Property in the error collection |
void |
addPropertyError(java.lang.String property,
java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3,
java.lang.Object p4)
Saves an error to a Property in the error collection |
void |
addPropertyMessage(java.lang.String property,
java.lang.String key)
Saves a message for a Property in the Message collection |
void |
addPropertyMessage(java.lang.String property,
java.lang.String key,
java.lang.Object p1)
Saves a message for a Property in the Message collection |
void |
addPropertyMessage(java.lang.String property,
java.lang.String key,
java.lang.Object p1,
java.lang.Object p2)
Saves a message for a Property in the Message collection |
void |
addPropertyMessage(java.lang.String property,
java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
Saves a message for a Property in the Message collection |
void |
addPropertyMessage(java.lang.String property,
java.lang.String key,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3,
java.lang.Object p4)
Saves a message for a Property in the Message collection |
void |
cancelAjaxRequest()
Cancels the AJAX event processing of the framework. |
void |
consumeStrutsMessages()
This method transfers all existing Struts errors and messages into the frameworks message store. |
org.apache.struts.action.ActionForm |
form()
Returns the action form |
void |
forward(org.apache.struts.action.ActionForward forward)
Sets the forward |
void |
forwardByName(java.lang.String forwardName)
Forwards to the Action specified by the Name |
void |
forwardByName(java.lang.String forwardName,
java.lang.Object p1)
Forwards to the Action specified by the Name |
void |
forwardByName(java.lang.String forwardName,
java.lang.Object[] params)
Forwards to the Action specified by the Name |
void |
forwardByName(java.lang.String forwardName,
java.lang.Object p1,
java.lang.Object p2)
Forwards to the Action specified by the Name |
void |
forwardByName(java.lang.String forwardName,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
Forwards to the Action specified by the Name |
void |
forwardToAction(java.lang.String actionName)
Forwards to the specified Action |
void |
forwardToAction(java.lang.String actionName,
boolean redirect)
Forwards to the specified Action |
void |
forwardToAction(java.lang.String actionName,
java.util.Map params)
Forwards to the specified Action |
void |
forwardToAction(java.lang.String actionName,
java.util.Map params,
boolean redirect)
Forwards to the specified Action |
void |
forwardToInput()
Forwards the Request to the Input, which is specified for the Action in the struts configuration. |
void |
forwardToResponse()
The next Forward should be directly directed to the Response |
java.lang.Object |
getAjaxAttribute(Control control,
java.lang.String attributeName)
Returns the attribute with the given name from the container |
java.util.Iterator |
getAjaxAttributeNames(Control control)
Returns an Iterator that iterates all attribute names |
java.lang.Object |
getAttribute(java.lang.String name,
HttpScope scope)
Returns the attribute with the given name from the specified scope |
java.util.Iterator |
getDirtyControls()
Returns an iterator that iterates all dirty controls that needs to be rendered after an AJAX request. |
org.apache.struts.action.ActionMessages |
getErrors()
Gets the error collection |
org.apache.struts.action.ActionForward |
getForward()
Gets the forward |
java.util.Locale |
getLocale()
Returns the current Locale for this Request |
java.util.Iterator |
getMenus()
Returns an Iterator that iterates all menus |
org.apache.struts.action.ActionMessages |
getMessages()
Returns the message collection |
RequestContext |
getNestedContext()
Gets the nested Action Context |
Principal |
getPrincipal()
Returns the Principal Object in the current User session |
javax.servlet.ServletContext |
getServletContext()
Returns the Servlet Context |
boolean |
hasErrors()
Checks whether there are error messages. |
boolean |
hasMessages()
Checks whether there are messages present. |
void |
invalidDialogContext(java.lang.String messageKey)
Generates a standardized error message if no DialogContext exists. |
boolean |
isAjaxCanceled()
Returns true when this AJAX request has been canceled. |
boolean |
isAjaxRequest()
Returns true when this request was sent by an AJAX function
call from within the clients browser. |
boolean |
isHandeled()
If an element (control, action class) has handled the request it can set this flag, so that the request is not processed a second time by an other element. |
org.apache.struts.action.ActionMapping |
mapping()
Returns the action mapping object |
void |
markDirty(Control control)
Adds the given Control to the dirty list. |
javax.servlet.http.HttpServletRequest |
request()
Returns the HTTP Request |
javax.servlet.http.HttpServletResponse |
response()
Returns the HTTP Response |
javax.servlet.http.HttpSession |
session()
Gets the session object |
void |
setAjaxAttribute(Control control,
java.lang.String attributeName,
java.lang.Object value)
Adds a new Attribute to the container. |
void |
setForm(org.apache.struts.action.ActionForm form)
Associates a new ActionForm with this ActionContext |
java.lang.String |
toString()
|
void |
validateForm()
Validates the action form and adds the error messages to the internal error collection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private ActionContext nested
Constructor Detail |
public ActionContextWrapper(ActionContext ctx)
ctx
- ActionContextMethod Detail |
public RequestContext getNestedContext()
RequestContext
getNestedContext
in interface RequestContext
RequestContext.getNestedContext()
public void consumeStrutsMessages()
ActionContext
consumeStrutsMessages
in interface ActionContext
ActionContext.consumeStrutsMessages()
public void addError(java.lang.String key, java.lang.Throwable t)
ActionContext
addError
in interface ActionContext
key
- Keyt
- ThrowableActionContext.addError(String,
Throwable)
public void addErrors(org.apache.struts.action.ActionMessages errorList)
ActionContext
addErrors
in interface ActionContext
errorList
- ActionErrorsActionContext.addErrors(ActionMessages)
public void addMessages(org.apache.struts.action.ActionMessages messageList)
ActionContext
addMessages
in interface ActionContext
messageList
- ActionMessagesActionContext.addMessages(org.apache.struts.action.ActionMessages)
public void addGlobalError(java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3, java.lang.Object p4)
ActionContext
addGlobalError
in interface ActionContext
key
- Keyp1
- Object1p2
- Object2p3
- Object3p4
- Object4ActionContext.addGlobalError(String,
Object, Object, Object, Object)
public void addGlobalError(java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3)
ActionContext
addGlobalError
in interface ActionContext
key
- Keyp1
- Object1p2
- Object2p3
- Object3ActionContext.addGlobalError(String,
Object, Object, Object)
public void addGlobalError(java.lang.String key, java.lang.Object p1, java.lang.Object p2)
ActionContext
addGlobalError
in interface ActionContext
key
- Keyp1
- Object1p2
- Object2ActionContext.addGlobalError(String,
Object, Object)
public void addGlobalError(java.lang.String key, java.lang.Object p1)
ActionContext
addGlobalError
in interface ActionContext
key
- Keyp1
- Object1ActionContext.addGlobalError(String,
Object)
public void addGlobalError(java.lang.String key)
ActionContext
addGlobalError
in interface ActionContext
key
- KeyActionContext.addGlobalError(String)
public void addGlobalMessage(java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3, java.lang.Object p4)
ActionContext
addGlobalMessage
in interface ActionContext
key
- Message resource Keyp1
- Additional Parameterp2
- Additional Parameterp3
- Additional Parameterp4
- Additional ParameterActionContext.addGlobalMessage(String,
Object, Object, Object, Object)
public void addGlobalMessage(java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3)
ActionContext
addGlobalMessage
in interface ActionContext
key
- Message resource Keyp1
- Additional Parameterp2
- Additional Parameterp3
- Additional ParameterActionContext.addGlobalMessage(String,
Object, Object, Object)
public void addGlobalMessage(java.lang.String key, java.lang.Object p1, java.lang.Object p2)
ActionContext
addGlobalMessage
in interface ActionContext
key
- Message resource Keyp1
- Additional Parameterp2
- Additional ParameterActionContext.addGlobalMessage(String,
Object, Object)
public void addGlobalMessage(java.lang.String key, java.lang.Object p1)
ActionContext
addGlobalMessage
in interface ActionContext
key
- Message resource Keyp1
- Additional ParameterActionContext.addGlobalMessage(String,
Object)
public void addGlobalMessage(java.lang.String key)
ActionContext
addGlobalMessage
in interface ActionContext
key
- Message resource KeyActionContext.addGlobalMessage(String)
public void addPropertyError(java.lang.String property, java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3, java.lang.Object p4)
ActionContext
addPropertyError
in interface ActionContext
property
- The propertykey
- The resource keyp1
- Additional Parameterp2
- Additional Parameterp3
- Additional Parameterp4
- Additional ParameterActionContext.addPropertyError(String,
String, Object, Object, Object, Object)
public void addPropertyError(java.lang.String property, java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3)
ActionContext
addPropertyError
in interface ActionContext
property
- The propertykey
- The keyp1
- Additional Parameterp2
- Additional Parameterp3
- Additional ParameterActionContext.addPropertyError(String,
String, Object, Object, Object)
public void addPropertyError(java.lang.String property, java.lang.String key, java.lang.Object p1, java.lang.Object p2)
ActionContext
addPropertyError
in interface ActionContext
property
- The propertykey
- The keyp1
- Additional Parameterp2
- Additional ParameterActionContext.addPropertyError(String,
String, Object, Object)
public void addPropertyError(java.lang.String property, java.lang.String key, java.lang.Object p1)
ActionContext
addPropertyError
in interface ActionContext
property
- The propertykey
- The keyp1
- Additional ParameterActionContext.addPropertyError(String,
String, Object)
public void addPropertyError(java.lang.String property, java.lang.String key)
ActionContext
addPropertyError
in interface ActionContext
property
- The propertykey
- The keyActionContext.addPropertyError(String,
String)
public void addPropertyMessage(java.lang.String property, java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3, java.lang.Object p4)
ActionContext
addPropertyMessage
in interface ActionContext
property
- The propertykey
- Message resource Keyp1
- Additional Parameterp2
- Additional Parameterp3
- Additional Parameterp4
- Additional ParameterActionContext.addPropertyMessage(String,
String, Object, Object, Object, Object)
public void addPropertyMessage(java.lang.String property, java.lang.String key, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3)
ActionContext
addPropertyMessage
in interface ActionContext
property
- The propertykey
- Message resource Keyp1
- Additional Parameterp2
- Additional Parameterp3
- Additional ParameterActionContext.addPropertyMessage(String,
String, Object, Object, Object)
public void addPropertyMessage(java.lang.String property, java.lang.String key, java.lang.Object p1, java.lang.Object p2)
ActionContext
addPropertyMessage
in interface ActionContext
property
- The propertykey
- Message resource Keyp1
- Additional Parameterp2
- Additional ParameterActionContext.addPropertyMessage(String,
String, Object, Object)
public void addPropertyMessage(java.lang.String property, java.lang.String key, java.lang.Object p1)
ActionContext
addPropertyMessage
in interface ActionContext
property
- The propertykey
- Message resource Keyp1
- Additional ParameterActionContext.addPropertyMessage(String,
String, Object)
public void addPropertyMessage(java.lang.String property, java.lang.String key)
ActionContext
addPropertyMessage
in interface ActionContext
property
- The propertykey
- Message resource KeyActionContext.addPropertyMessage(String,
String)
public org.apache.struts.action.ActionForm form()
ActionContext
form
in interface ActionContext
ActionContext.form()
public void setForm(org.apache.struts.action.ActionForm form)
ActionContext
setForm
in interface ActionContext
form
- ActionContext.setForm(org.apache.struts.action.ActionForm)
public void validateForm()
ActionContext
validateForm
in interface ActionContext
ActionContext.validateForm()
public void forward(org.apache.struts.action.ActionForward forward)
ActionContext
forward
in interface ActionContext
forward
- The forward to setActionContext.forward(ActionForward)
public void forwardByName(java.lang.String forwardName, java.lang.Object[] params)
ActionContext
forwardByName
in interface ActionContext
forwardName
- Action nameparams
- Object array with additional parameterActionContext.forwardByName(java.lang.String,
java.lang.Object[])
public void forwardByName(java.lang.String forwardName, java.lang.Object p1, java.lang.Object p2, java.lang.Object p3)
ActionContext
forwardByName
in interface ActionContext
forwardName
- Action namep1
- Additional Parameterp2
- Additional Parameterp3
- Additional ParameterActionContext.forwardByName(String,
Object, Object, Object)
public void forwardByName(java.lang.String forwardName, java.lang.Object p1, java.lang.Object p2)
ActionContext
forwardByName
in interface ActionContext
forwardName
- Action namep1
- Additional Parameterp2
- Additional ParameterActionContext.forwardByName(String,
Object, Object)
public void forwardByName(java.lang.String forwardName, java.lang.Object p1)
ActionContext
forwardByName
in interface ActionContext
forwardName
- Action namep1
- Additional ParameterActionContext.forwardByName(String,
Object)
public void forwardByName(java.lang.String forwardName)
ActionContext
forwardByName
in interface ActionContext
forwardName
- Action nameActionContext.forwardByName(String)
public void forwardToAction(java.lang.String actionName)
ActionContext
forwardToAction
in interface ActionContext
actionName
- Action nameActionContext.forwardToAction(String)
public void forwardToAction(java.lang.String actionName, boolean redirect)
ActionContext
forwardToAction
in interface ActionContext
actionName
- Action nameredirect
- when set to true
a redirect (HTTP 303) will be
sent to the browserActionContext.forwardToAction(java.lang.String, boolean)
public void forwardToAction(java.lang.String actionName, java.util.Map params)
ActionContext
forwardToAction
in interface ActionContext
actionName
- Action nameparams
- Additional Parameter map (key - value pairs)ActionContext.forwardToAction(java.lang.String, java.util.Map)
public void forwardToAction(java.lang.String actionName, java.util.Map params, boolean redirect)
ActionContext
forwardToAction
in interface ActionContext
actionName
- Action nameparams
- Additional Parameter map (key - value pairs)redirect
- when set to true
a redirect (HTTP 303) will be
sent to the browserActionContext.forwardToAction(java.lang.String, java.util.Map, boolean)
public void forwardToInput()
ActionContext
forwardToInput
in interface ActionContext
ActionContext.forwardToInput()
public void forwardToResponse()
ActionContext
forwardToResponse
in interface ActionContext
ActionContext.forwardToResponse()
public org.apache.struts.action.ActionMessages getErrors()
ActionContext
getErrors
in interface ActionContext
ActionContext.getErrors()
public org.apache.struts.action.ActionForward getForward()
ActionContext
getForward
in interface ActionContext
ActionContext.getForward()
public org.apache.struts.action.ActionMessages getMessages()
ActionContext
getMessages
in interface ActionContext
ActionContext.getMessages()
public boolean hasErrors()
ActionContext
hasErrors
in interface ActionContext
ActionContext.hasErrors()
public boolean hasMessages()
ActionContext
hasMessages
in interface ActionContext
ActionContext.hasMessages()
public void invalidDialogContext(java.lang.String messageKey)
ActionContext
invalidDialogContext
in interface ActionContext
messageKey
- Message KeyActionContext.invalidDialogContext(String)
public boolean isHandeled()
ActionContext
isHandeled
in interface ActionContext
ActionContext.isHandeled()
public org.apache.struts.action.ActionMapping mapping()
ActionContext
mapping
in interface ActionContext
ActionContext.mapping()
public Principal getPrincipal()
RequestContext
getPrincipal
in interface RequestContext
RequestContext.getPrincipal()
public java.util.Locale getLocale()
RequestContext
getLocale
in interface RequestContext
RequestContext.getLocale()
public java.lang.Object getAttribute(java.lang.String name, HttpScope scope)
HttpContext
getAttribute
in interface HttpContext
name
- the attribute namescope
- the scope to search
null
HttpContext.getAttribute(java.lang.String, com.cc.framework.http.HttpScope)
public javax.servlet.ServletContext getServletContext()
HttpContext
getServletContext
in interface HttpContext
HttpContext.getServletContext()
public javax.servlet.http.HttpServletRequest request()
HttpContext
request
in interface HttpContext
HttpContext.request()
public javax.servlet.http.HttpServletResponse response()
HttpContext
response
in interface HttpContext
HttpContext.response()
public javax.servlet.http.HttpSession session()
HttpContext
session
in interface HttpContext
HttpContext.session()
public void cancelAjaxRequest()
AjaxRequest
cancelAjaxRequest
in interface AjaxRequest
AjaxRequest.cancelAjaxRequest()
public boolean isAjaxCanceled()
AjaxRequest
true
when this AJAX request has been canceled.
isAjaxCanceled
in interface AjaxRequest
AjaxRequest.isAjaxCanceled()
public boolean isAjaxRequest()
AjaxRequest
true
when this request was sent by an AJAX function
call from within the clients browser.
isAjaxRequest
in interface AjaxRequest
AjaxRequest.isAjaxRequest()
public java.util.Iterator getDirtyControls()
AjaxRequest
getDirtyControls
in interface AjaxRequest
AjaxRequest.getDirtyControls()
public void markDirty(Control control)
AjaxRequest
markDirty
in interface AjaxRequest
control
- the control that needs to be redrawnAjaxRequest.markDirty(com.cc.framework.ui.control.Control)
public java.lang.Object getAjaxAttribute(Control control, java.lang.String attributeName)
AjaxRequest
getAjaxAttribute
in interface AjaxRequest
control
- the control or null
attributeName
- The attributes name
null
AjaxRequest.getAjaxAttribute(com.cc.framework.ui.control.Control, java.lang.String)
public java.util.Iterator getAjaxAttributeNames(Control control)
AjaxRequest
getAjaxAttributeNames
in interface AjaxRequest
control
- the control or null
AjaxRequest.getAjaxAttributeNames(com.cc.framework.ui.control.Control)
public void setAjaxAttribute(Control control, java.lang.String attributeName, java.lang.Object value)
AjaxRequest
setAjaxAttribute
in interface AjaxRequest
control
- the control or null
attributeName
- The attributes namevalue
- The attribute valueAjaxRequest.setAjaxAttribute(com.cc.framework.ui.control.Control, java.lang.String, java.lang.Object)
public void addMenu(MenuItem menu)
AjaxRequest
addMenu
in interface AjaxRequest
menu
- the menu to add to the responseAjaxRequest.addMenu(com.cc.framework.ui.model.MenuItem)
public java.util.Iterator getMenus()
AjaxRequest
getMenus
in interface AjaxRequest
AjaxRequest.getMenus()
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |