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 |
---|---|
String |
getActionURL(FacesContext facesContext,
String viewId)
Allow the delegate to produce the action URL.
|
String |
getBookmarkableURL(FacesContext context,
String viewId,
Map<String,List<String>> parameters,
boolean includeViewParams) |
String |
getRedirectURL(FacesContext context,
String viewId,
Map<String,List<String>> parameters,
boolean includeViewParams) |
String |
getResourceURL(FacesContext context,
String path) |
ViewHandler |
getWrapped() |
public ConversationAwareViewHandler(ViewHandler delegate)
public String getActionURL(FacesContext facesContext, String viewId)
ViewHandler#getActionURL(FacesContext, String)}
public String getBookmarkableURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
public String getRedirectURL(FacesContext context, String viewId, Map<String,List<String>> parameters, boolean includeViewParams)
public ViewHandler getWrapped()
Copyright © 2013 Seam Framework. All Rights Reserved.