Package org.apache.myfaces.application
Class ViewHandlerImpl
- java.lang.Object
- 
- jakarta.faces.application.ViewHandler
- 
- org.apache.myfaces.application.ViewHandlerImpl
 
 
- 
 public class ViewHandlerImpl extends ViewHandler Faces 2.0 ViewHandler implementation- Since:
- 2.0
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringFORM_STATE_MARKER- 
Fields inherited from class jakarta.faces.application.ViewHandlerCHARACTER_ENCODING_KEY, DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, FACELETS_BUFFER_SIZE_PARAM_NAME, FACELETS_DECORATORS_PARAM_NAME, FACELETS_LIBRARIES_PARAM_NAME, FACELETS_REFRESH_PERIOD_PARAM_NAME, FACELETS_SKIP_COMMENTS_PARAM_NAME, FACELETS_SUFFIX_PARAM_NAME, FACELETS_VIEW_MAPPINGS_PARAM_NAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description ViewHandlerImpl()
 - 
Method Summary- 
Methods inherited from class jakarta.faces.application.ViewHandlercalculateCharacterEncoding, getViews
 
- 
 
- 
- 
- 
Field Detail- 
FORM_STATE_MARKERpublic static final String FORM_STATE_MARKER - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getViewHandlerpublic static ViewHandler getViewHandler(FacesContext facesContext) Gets the current ViewHandler via FacesContext.getApplication().getViewHandler(). We have to use this method to invoke any other specified ViewHandler-method in the code, because direct access (this.method()) will cause problems if the ViewHandler is wrapped.- Parameters:
- facesContext-
- Returns:
 
 - 
deriveViewIdpublic String deriveViewId(FacesContext context, String rawViewId) - Overrides:
- deriveViewIdin class- ViewHandler
 
 - 
deriveLogicalViewIdpublic String deriveLogicalViewId(FacesContext context, String rawViewId) - Overrides:
- deriveLogicalViewIdin class- ViewHandler
 
 - 
getBookmarkableURLpublic String getBookmarkableURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams) - Overrides:
- getBookmarkableURLin class- ViewHandler
 
 - 
getRedirectURLpublic String getRedirectURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams) - Overrides:
- getRedirectURLin class- ViewHandler
 
 - 
getViewDeclarationLanguagepublic ViewDeclarationLanguage getViewDeclarationLanguage(FacesContext context, String viewId) - Overrides:
- getViewDeclarationLanguagein class- ViewHandler
 
 - 
initViewpublic void initView(FacesContext context) throws FacesException - Overrides:
- initViewin class- ViewHandler
- Throws:
- FacesException
 
 - 
calculateLocalepublic Locale calculateLocale(FacesContext facesContext) Get the locales specified as acceptable by the original request, compare them to the locales supported by this Application and return the best match.- Specified by:
- calculateLocalein class- ViewHandler
- Parameters:
- facesContext-
 
 - 
calculateRenderKitIdpublic String calculateRenderKitId(FacesContext facesContext) - Specified by:
- calculateRenderKitIdin class- ViewHandler
 
 - 
createViewpublic UIViewRoot createView(FacesContext context, String viewId) - Specified by:
- createViewin class- ViewHandler
 
 - 
getActionURLpublic String getActionURL(FacesContext context, String viewId) - Specified by:
- getActionURLin class- ViewHandler
 
 - 
getResourceURLpublic String getResourceURL(FacesContext facesContext, String path) - Specified by:
- getResourceURLin class- ViewHandler
 
 - 
renderViewpublic void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException - Specified by:
- renderViewin class- ViewHandler
- Throws:
- IOException
- FacesException
 
 - 
restoreViewpublic UIViewRoot restoreView(FacesContext context, String viewId) - Specified by:
- restoreViewin class- ViewHandler
 
 - 
writeStatepublic void writeState(FacesContext context) throws IOException - Specified by:
- writeStatein class- ViewHandler
- Throws:
- IOException
 
 - 
addProtectedViewpublic void addProtectedView(String urlPattern) - Overrides:
- addProtectedViewin class- ViewHandler
 
 - 
removeProtectedViewpublic boolean removeProtectedView(String urlPattern) - Overrides:
- removeProtectedViewin class- ViewHandler
 
 - 
getProtectedViewsUnmodifiablepublic Set<String> getProtectedViewsUnmodifiable() - Overrides:
- getProtectedViewsUnmodifiablein class- ViewHandler
 
 - 
setViewIdSupportpublic void setViewIdSupport(ViewIdSupport viewIdSupport) 
 - 
getViewIdSupportprotected ViewIdSupport getViewIdSupport(FacesContext context) 
 - 
getViewspublic Stream<String> getViews(FacesContext facesContext, String path, int maxDepth, ViewVisitOption... options) - Overrides:
- getViewsin class- ViewHandler
 
 - 
getWebsocketURLpublic String getWebsocketURL(FacesContext context, String channelAndToken) - Specified by:
- getWebsocketURLin class- ViewHandler
 
 
- 
 
-