Package com.webmethods.caf.faces.view
Class CafViewDeclarationLanguage
java.lang.Object
javax.faces.view.ViewDeclarationLanguage
com.webmethods.caf.faces.view.CafViewDeclarationLanguage
View handler for legacy CAF .view files
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
static final String
protected Map<String,
ViewBuilder> protected SAXParserFactory
protected Boolean
protected static final int
protected com.sun.faces.config.WebConfiguration
Fields inherited from class javax.faces.view.ViewDeclarationLanguage
FACELETS_VIEW_DECLARATION_LANGUAGE_ID, JSP_VIEW_DECLARATION_LANGUAGE_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildView
(FacesContext ctx, UIViewRoot root) void
Clears entire ViewBuilder cache.void
clearBuilderFromCache
(String viewId) Removes cached ViewBuilder for view ID.createBuilder
(FacesContext ctx, String viewId) createView
(FacesContext ctx, String viewId) getBuilderFromCache
(String viewId) getComponentMetadata
(FacesContext facesContext, Resource resource) protected InputSource
getInputSource
(FacesContext ctx, String viewId) protected SAXParser
getParser
(FacesContext ctx) getScriptComponentResource
(FacesContext facesContext, Resource resource) getStateManagementStrategy
(FacesContext facesContext, String viewId) getViewMetadata
(FacesContext facesContext, String viewId) protected ResponseWriter
initResponse
(FacesContext ctx, UIViewRoot root) Initialize response output stream.void
putBuilderIntoCache
(String viewId, ViewBuilder builder) Caches ViewBuilder for view ID.void
renderView
(FacesContext ctx, UIViewRoot viewToRender) restoreView
(FacesContext ctx, String viewId) boolean
useCache()
True to use ViewBuilder cache.Methods inherited from class javax.faces.view.ViewDeclarationLanguage
calculateResourceLibraryContracts, createComponent, getId, getViews, getViews, retargetAttachedObjects, retargetMethodExpressions, viewExists
-
Field Details
-
INIT_PARAM_CACHE
- See Also:
-
MAX_VIEWS
protected static final int MAX_VIEWS- See Also:
-
m_builders
-
m_useCache
-
DEFAULT_CHARACTER_ENCODING
- See Also:
-
m_parserFactory
-
webConfig
protected com.sun.faces.config.WebConfiguration webConfig
-
-
Constructor Details
-
CafViewDeclarationLanguage
public CafViewDeclarationLanguage()
-
-
Method Details
-
buildView
- Specified by:
buildView
in classViewDeclarationLanguage
- Throws:
IOException
-
createView
- Specified by:
createView
in classViewDeclarationLanguage
-
renderView
- Specified by:
renderView
in classViewDeclarationLanguage
- Throws:
IOException
-
restoreView
- Specified by:
restoreView
in classViewDeclarationLanguage
-
initResponse
protected ResponseWriter initResponse(FacesContext ctx, UIViewRoot root) throws IOException, FacesException Initialize response output stream.- Throws:
IOException
FacesException
-
getComponentMetadata
- Specified by:
getComponentMetadata
in classViewDeclarationLanguage
-
getScriptComponentResource
- Specified by:
getScriptComponentResource
in classViewDeclarationLanguage
-
getStateManagementStrategy
- Specified by:
getStateManagementStrategy
in classViewDeclarationLanguage
-
getViewMetadata
- Specified by:
getViewMetadata
in classViewDeclarationLanguage
-
getBuilderFromCache
- Returns:
- Cached ViewBuilder for view ID or null.
-
putBuilderIntoCache
Caches ViewBuilder for view ID. -
clearBuilderFromCache
Removes cached ViewBuilder for view ID. Does nothing if not cached. -
clearBuilderCache
public void clearBuilderCache()Clears entire ViewBuilder cache. -
useCache
public boolean useCache()True to use ViewBuilder cache. -
createBuilder
- Returns:
- ViewBuilder for view ID.
-
getParser
-
getInputSource
-