public class ConversationAwareViewHandler
extends javax.faces.application.ViewHandlerWrapper
A forwarding JSF ViewHandler implementation that produces URLs containing the conversation id query string parameter. All methods except those which produce a URL that need to be enhanced are forwarded to the ViewHandler delegate.
A request parameter was chosen to propagate the conversation because it's the most technology agnostic approach for passing data between requests and allows for the ensuing request to use whatever means necessary (a servlet filter, phase listener, etc) to capture the conversation id and restore the long-running conversation.
DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, DISABLE_FACELET_JSF_VIEWHANDLER_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, CHARACTER_ENCODING_KEY| Constructor and Description |
|---|
ConversationAwareViewHandler(javax.faces.application.ViewHandler delegate) |
| Modifier and Type | Method and Description |
|---|---|
String |
getActionURL(javax.faces.context.FacesContext facesContext,
String viewId)
Allow the delegate to produce the action URL.
|
String |
getBookmarkableURL(javax.faces.context.FacesContext context,
String viewId,
Map<String,List<String>> parameters,
boolean includeViewParams) |
String |
getRedirectURL(javax.faces.context.FacesContext context,
String viewId,
Map<String,List<String>> parameters,
boolean includeViewParams) |
String |
getResourceURL(javax.faces.context.FacesContext context,
String path) |
javax.faces.application.ViewHandler |
getWrapped() |
addProtectedView, calculateCharacterEncoding, calculateLocale, calculateRenderKitId, createView, deriveLogicalViewId, deriveViewId, getProtectedViewsUnmodifiable, getViewDeclarationLanguage, initView, removeProtectedView, renderView, restoreView, writeStatepublic ConversationAwareViewHandler(javax.faces.application.ViewHandler delegate)
public String getActionURL(javax.faces.context.FacesContext facesContext, String viewId)
getActionURL in class javax.faces.application.ViewHandlerWrapperViewHandler#getActionURL(FacesContext, String)}public String getBookmarkableURL(javax.faces.context.FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
getBookmarkableURL in class javax.faces.application.ViewHandlerWrapperpublic String getRedirectURL(javax.faces.context.FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
getRedirectURL in class javax.faces.application.ViewHandlerWrapperpublic String getResourceURL(javax.faces.context.FacesContext context, String path)
getResourceURL in class javax.faces.application.ViewHandlerWrapperpublic javax.faces.application.ViewHandler getWrapped()
getWrapped in interface javax.faces.FacesWrapper<javax.faces.application.ViewHandler>getWrapped in class javax.faces.application.ViewHandlerWrapperCopyright © 2017. All rights reserved.