|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResolutionFactory
A factory for Resolution classes. TODO This class may be redesigned in the future
Method Summary | |
---|---|
ForwardResolution |
forward(java.lang.String pageName)
Create a ForwardResolution |
ForwardResolution |
forwardWithLocale(java.lang.String pageName)
Forward to a page, with preference for a localized page if possible. |
JacksonResolution |
json(java.lang.Object contents)
Sends a JSON serialization of the contents object. |
RedirectResolution |
redirect(java.lang.Class<? extends Action> actionClass,
java.lang.String event)
Redirects the browser to a different Action and Event |
RedirectResolution |
redirect(java.lang.String url)
Redirects the browser to a different URL |
RedirectResolution |
redirect(java.lang.String action,
java.lang.String event)
Redirects the browser to a different Action and Event |
PersistentFileResolution |
send(PersistentFile file)
Sends a persistent file to the browser. |
Method Detail |
---|
ForwardResolution forward(java.lang.String pageName)
pageName
- the name of the forward destination
ForwardResolution forwardWithLocale(java.lang.String pageName)
pageName
- the name of the resource to forward to
LocaleForwardResolution
PersistentFileResolution send(PersistentFile file)
RedirectResolution redirect(java.lang.String url)
url
- the url for the browser redirection
RedirectResolution
pointing to the provided URLRedirectResolution redirect(java.lang.String action, java.lang.String event)
action
- the action short or long nameevent
- the event to be invoked, null for default event
RedirectResolution
pointing to the provided URLRedirectResolution redirect(java.lang.Class<? extends Action> actionClass, java.lang.String event)
actionClass
- the action classevent
- the event to be called, null for default event
RedirectResolution
pointing to the provided URLJacksonResolution json(java.lang.Object contents)
contents
- the contents object to serialize as a JSON object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |