|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.loom.action.AbstractAction
public abstract class AbstractAction
Abstract superclass that provides some methods for the most common use.
| Constructor Summary | |
|---|---|
AbstractAction()
|
|
| Method Summary | |
|---|---|
void |
addError(Message message)
|
Message |
addError(java.lang.String messageKey)
|
Message |
addError(java.lang.String normalizedPropertyPath,
java.lang.String messageKey)
|
protected ForwardResolution |
forward()
Forwards to a page name with the same name of the current event |
protected ForwardResolution |
forward(java.lang.String pageName)
Forwards to the provided JSP page name. |
protected ForwardResolution |
forwardWithLocale(java.lang.String pageName)
|
ActionContext |
getContext()
|
MessagesRepository |
getMessagesRepository()
|
protected java.lang.String |
getParam(java.lang.String propertyPath)
Returns the value of the given property as a UrlParameter to be added to a Resolution |
LoomServletRequest |
getRequest()
|
LoomServletResponse |
getResponse()
|
boolean |
hasAnyError()
|
boolean |
hasAnyError(java.lang.String propertyPath)
|
protected RedirectResolution |
redirect(java.lang.Class<? extends Action> actionClass)
Redirects to the provided action, default event |
protected RedirectResolution |
redirect(java.lang.Class<? extends Action> actionClass,
java.lang.String event)
Redirects to the provided action and event. |
protected RedirectResolution |
redirect(java.lang.String uri)
Redirects to the provided url |
protected RedirectResolution |
redirect(java.lang.String action,
java.lang.String event)
Redirects to the provided action and event. |
protected PersistentFileResolution |
send(PersistentFile file)
Send a file to the browser. |
protected StringResolution |
send(java.lang.String results)
Return a simple text as the response. |
void |
setContext(ActionContext context)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractAction()
| Method Detail |
|---|
public void setContext(ActionContext context)
setContext in interface Actionpublic MessagesRepository getMessagesRepository()
public boolean hasAnyError()
public boolean hasAnyError(java.lang.String propertyPath)
propertyPath - the property path to search error for
protected ForwardResolution forward(java.lang.String pageName)
protected ForwardResolution forwardWithLocale(java.lang.String pageName)
ResolutionFactory.forwardWithLocale(String)protected ForwardResolution forward()
protected RedirectResolution redirect(java.lang.String uri)
protected RedirectResolution redirect(java.lang.Class<? extends Action> actionClass,
java.lang.String event)
protected RedirectResolution redirect(java.lang.Class<? extends Action> actionClass)
protected RedirectResolution redirect(java.lang.String action,
java.lang.String event)
protected PersistentFileResolution send(PersistentFile file)
protected StringResolution send(java.lang.String results)
results - the result to be handled to the browser as is.protected java.lang.String getParam(java.lang.String propertyPath)
public ActionContext getContext()
getContext in interface Actionpublic LoomServletRequest getRequest()
public LoomServletResponse getResponse()
public Message addError(java.lang.String normalizedPropertyPath,
java.lang.String messageKey)
public Message addError(java.lang.String messageKey)
public void addError(Message message)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||