Package com.sun.faces.application.view
Class ViewHandlingStrategyManager
java.lang.Object
com.sun.faces.application.view.ViewHandlingStrategyManager
public class ViewHandlingStrategyManager extends Object
Interface for working with multiple
ViewHandlingStrategy
implementations.-
Constructor Summary
Constructors Constructor Description ViewHandlingStrategyManager()
Be default, ifWebConfiguration.BooleanWebContextInitParameter.DisableFaceletJSFViewHandler
isn't enabled, the strategies available (in order) will beFaceletViewHandlingStrategy
andJspViewHandlingStrategy
. -
Method Summary
Modifier and Type Method Description ViewHandlingStrategy
getStrategy(String viewId)
Iterate through the availableViewHandlingStrategy
implementations.ViewHandlingStrategy[]
getViewHandlingStrategies()
void
setViewHandlingStrategies(ViewHandlingStrategy[] stratagies)
Update theViewHandlingStrategy
implementations to be applied when processing JSF requests.
-
Constructor Details
-
ViewHandlingStrategyManager
public ViewHandlingStrategyManager()Be default, ifWebConfiguration.BooleanWebContextInitParameter.DisableFaceletJSFViewHandler
isn't enabled, the strategies available (in order) will beFaceletViewHandlingStrategy
andJspViewHandlingStrategy
.Otherwise, only the
JspViewHandlingStrategy
will be available.
-
-
Method Details
-
getStrategy
Iterate through the available
ViewHandlingStrategy
implementations. The first one to return true fromViewHandlingStrategy.handlesViewId(String)
will be theViewHandlingStrategy
returned.- Parameters:
viewId
- the viewId to match aViewHandlingStrategy
to- Returns:
- a
ViewHandlingStrategy
for the specifedviewId
- Throws:
ViewHandlingStrategyNotFoundException
- if no match is found.
-
getViewHandlingStrategies
- Returns:
- the currently registered
ViewHandlingStrategy
implementations.
-
setViewHandlingStrategies
Update theViewHandlingStrategy
implementations to be applied when processing JSF requests.- Parameters:
stratagies
- the new view handling strategies
-