|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.engine.support.ApplicationViewSelector
public class ApplicationViewSelector
Simple view selector that makes an ApplicationView
selection using a view name expression.
This factory will treat all attributes returned from calling RequestContext.getModel()
as the application
model exposed to the view during rendering. This is typically the union of attributes in request, flow, and
conversation scope.
This selector also supports setting a redirect flag that can be used to trigger a redirect to the
ApplicationView
at a bookmarkable URL using an FlowExecutionRedirect
}.
ApplicationView
,
FlowExecutionRedirect
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
ALWAYS_REDIRECT_ON_PAUSE_ATTRIBUTE
Flow execution attribute name that indicates that we should always render an application view via a redirect. |
Constructor Summary | |
---|---|
ApplicationViewSelector(org.springframework.binding.expression.Expression viewName)
Creates a application view selector that will make application view selections requesting that the specified view be rendered. |
|
ApplicationViewSelector(org.springframework.binding.expression.Expression viewName,
boolean redirect)
Creates a application view selector that will make application view selections requesting that the specified view be rendered. |
Method Summary | |
---|---|
protected boolean |
alwaysRedirectOnPause(RequestContext context)
Checks the ALWAYS_REDIRECT_ON_PAUSE_ATTRIBUTE to see if every application view of the flow execution
should be rendered via a redirect. |
protected ApplicationView |
createApplicationView(java.lang.String viewName,
RequestContext context)
Creates the application view selection. |
org.springframework.binding.expression.Expression |
getViewName()
Returns the name of the view that should be rendered. |
boolean |
isEntrySelectionRenderable(RequestContext context)
Will the primary selection returned by 'makeEntrySelection' for the given request context be renderable in this request? |
boolean |
isRedirect()
Returns if a redirect to the view should be done. |
ViewSelection |
makeEntrySelection(RequestContext context)
Make a new "entry" view selection for the given request context. |
ViewSelection |
makeRefreshSelection(RequestContext context)
Reconstitute a renderable view selection for the given request context to support a ViewState 'refresh' operation. |
protected java.lang.String |
resolveViewName(RequestContext context)
Resolves the application view name from the request context. |
protected boolean |
shouldRedirect(RequestContext context)
Determine whether or not a redirect should be used to render the application view. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ALWAYS_REDIRECT_ON_PAUSE_ATTRIBUTE
Constructor Detail |
---|
public ApplicationViewSelector(org.springframework.binding.expression.Expression viewName)
viewName
- the view name expressionpublic ApplicationViewSelector(org.springframework.binding.expression.Expression viewName, boolean redirect)
viewName
- the view name expressionredirect
- indicates if a redirect to the view should be initiatedMethod Detail |
---|
public org.springframework.binding.expression.Expression getViewName()
public boolean isRedirect()
public boolean isEntrySelectionRenderable(RequestContext context)
ViewSelector
"Renderable" view selections typically can have 'render-actions' execute before they are created. An example would be an ApplicationView that forwards to a view template like a JSP. "Non-renderable" view selections are things like a flow execution redirect--no render actually occurs, but only a redirect--rendering happens on the new redirect request.
isEntrySelectionRenderable
in interface ViewSelector
context
- the current request context of the executing flow
public ViewSelection makeEntrySelection(RequestContext context)
ViewSelector
makeEntrySelection
in interface ViewSelector
context
- the current request context of the executing flow
public ViewSelection makeRefreshSelection(RequestContext context)
ViewSelector
makeRefreshSelection
in interface ViewSelector
context
- the current request context of the executing flow
protected java.lang.String resolveViewName(RequestContext context)
context
- the context
protected ApplicationView createApplicationView(java.lang.String viewName, RequestContext context)
viewName
- the resolved view namecontext
- the context
protected boolean shouldRedirect(RequestContext context)
context
- the context
protected boolean alwaysRedirectOnPause(RequestContext context)
ALWAYS_REDIRECT_ON_PAUSE_ATTRIBUTE
to see if every application view of the flow execution
should be rendered via a redirect.
context
- the flow execution request context
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |