|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.loom.mapping.ParsedAction
public class ParsedAction
The current action and event object, as parsed from the URL
| Constructor Summary | |
|---|---|
ParsedAction(ActionMapping actionMapping,
Action action,
Event event,
Messages messages,
LoomServletRequest request,
LoomServletResponse response)
|
|
| Method Summary | |
|---|---|
void |
afterCreate()
|
void |
beforeExecute()
|
void |
beforePopulate()
|
void |
beforeResolution(Resolution resolution)
|
void |
beforeValidate()
|
void |
doFinally(java.lang.Exception e)
|
Action |
getAction()
|
ActionMapping |
getActionMapping()
|
Event |
getEvent()
|
Messages |
getMessages()
|
java.lang.Object |
getPropertyAsObject(java.lang.String propertyPath)
|
java.lang.String |
getPropertyAsString(java.lang.String propertyPath)
|
LoomServletRequest |
getRequest()
|
LoomServletResponse |
getResponse()
|
boolean |
hasAnyError()
|
boolean |
hasAnyError(java.lang.String name)
|
Resolution |
invokeEvent()
Invokes an event inside an action |
boolean |
matches(ActionMapping candidateAction,
java.lang.String candidateEvent)
A ParsedAction matches the provided params if it has the same action and event that are passed as parameters |
boolean |
matches(UrlBuilder urlBuilder)
A ParsedAction matches a UrlBuilder if it has the same action and event and all the parameters included in the UrlBuilder have the same value. |
void |
onError()
|
void |
populate(java.util.Map<java.lang.String,ParameterValue> values)
Injects the request values into the action. |
void |
setAction(Action action)
|
void |
setEvent(Event event)
|
void |
setMessages(Messages messages)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParsedAction(ActionMapping actionMapping,
Action action,
Event event,
Messages messages,
LoomServletRequest request,
LoomServletResponse response)
| Method Detail |
|---|
public void populate(java.util.Map<java.lang.String,ParameterValue> values)
throws WorkflowInterruption
values - the list of processed values from the LoomServletRequest
WorkflowInterruptionpublic java.lang.String getPropertyAsString(java.lang.String propertyPath)
public java.lang.Object getPropertyAsObject(java.lang.String propertyPath)
public void afterCreate()
throws WorkflowInterruption
WorkflowInterruption
public void beforePopulate()
throws WorkflowInterruption
WorkflowInterruption
public void beforeValidate()
throws WorkflowInterruption
WorkflowInterruption
public void beforeExecute()
throws WorkflowInterruption
WorkflowInterruptionpublic void beforeResolution(Resolution resolution)
public void onError()
throws WorkflowInterruption
WorkflowInterruptionpublic void doFinally(java.lang.Exception e)
public Action getAction()
public Event getEvent()
public void setAction(Action action)
public void setEvent(Event event)
public Messages getMessages()
public void setMessages(Messages messages)
public ActionMapping getActionMapping()
public boolean hasAnyError(java.lang.String name)
name - the name of the input tag (the property path)
public boolean hasAnyError()
public LoomServletRequest getRequest()
public Resolution invokeEvent()
public LoomServletResponse getResponse()
public boolean matches(UrlBuilder urlBuilder)
public boolean matches(ActionMapping candidateAction,
java.lang.String candidateEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||