public class ViewHandlingStrategyManager extends Object
ViewHandlingStrategy
implementations.| Constructor and Description |
|---|
ViewHandlingStrategyManager()
Be default, if
WebConfiguration.BooleanWebContextInitParameter.DisableFaceletJSFViewHandler
isn't enabled, the strategies available (in order) will be FaceletViewHandlingStrategy
and JspViewHandlingStrategy. |
| Modifier and Type | Method and Description |
|---|---|
ViewHandlingStrategy |
getStrategy(String viewId)
Iterate through the available
ViewHandlingStrategy
implementations. |
ViewHandlingStrategy[] |
getViewHandlingStrategies() |
void |
setViewHandlingStrategies(ViewHandlingStrategy[] stratagies)
Update the
ViewHandlingStrategy implementations
to be applied when processing JSF requests. |
public ViewHandlingStrategyManager()
WebConfiguration.BooleanWebContextInitParameter.DisableFaceletJSFViewHandler
isn't enabled, the strategies available (in order) will be FaceletViewHandlingStrategy
and JspViewHandlingStrategy.
Otherwise, only the JspViewHandlingStrategy will be available.
public ViewHandlingStrategy getStrategy(String viewId)
Iterate through the available ViewHandlingStrategy
implementations. The first one to return true from ViewHandlingStrategy.handlesViewId(String)
will be the ViewHandlingStrategy returned.
viewId - the viewId to match a ViewHandlingStrategy toViewHandlingStrategy for
the specifed viewIdViewHandlingStrategyNotFoundException - if no match is found.public ViewHandlingStrategy[] getViewHandlingStrategies()
ViewHandlingStrategy
implementations.public void setViewHandlingStrategies(ViewHandlingStrategy[] stratagies)
ViewHandlingStrategy implementations
to be applied when processing JSF requests.stratagies - the new view handling strategiesCopyright © 2010–2020 JBoss by Red Hat. All rights reserved.