public class ConversationAwareViewHandler
extends 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.
| Constructor and Description |
|---|
ConversationAwareViewHandler(ViewHandler delegate) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getActionURL(FacesContext facesContext,
java.lang.String viewId)
Allow the delegate to produce the action URL.
|
java.lang.String |
getBookmarkableURL(FacesContext context,
java.lang.String viewId,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters,
boolean includeViewParams) |
java.lang.String |
getRedirectURL(FacesContext context,
java.lang.String viewId,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters,
boolean includeViewParams) |
java.lang.String |
getResourceURL(FacesContext context,
java.lang.String path) |
ViewHandler |
getWrapped() |
public ConversationAwareViewHandler(ViewHandler delegate)
public java.lang.String getActionURL(FacesContext facesContext,
java.lang.String viewId)
ViewHandler#getActionURL(FacesContext, String)}public java.lang.String getBookmarkableURL(FacesContext context,
java.lang.String viewId,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters,
boolean includeViewParams)
public java.lang.String getRedirectURL(FacesContext context,
java.lang.String viewId,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters,
boolean includeViewParams)
public java.lang.String getResourceURL(FacesContext context,
java.lang.String path)
public ViewHandler getWrapped()
Copyright © 2014. All Rights Reserved.