public abstract class BaseViewHandler extends ViewHandlerWrapper
Modifier and Type | Field and Description |
---|---|
static String |
FILTER_KEY |
static String |
INIT_PARAM_CACHE |
static String |
INIT_PARAM_FILTER |
static String |
INJECT_STATE |
protected Map<String,ViewBuilder> |
m_builders |
protected Pattern |
m_filter |
protected ViewHandler |
m_parent |
protected Boolean |
m_useCache |
protected static int |
MAX_VIEWS |
static String |
NO_RENDER |
static String |
VIEW_FRAGMENT |
static String |
VIEW_FRAGMENT_CLIENT_ID
Deprecated.
|
CHARACTER_ENCODING_KEY, 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
Constructor and Description |
---|
BaseViewHandler(ViewHandler parent)
Standard ViewHandler constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearBuilderCache()
Clears entire ViewBuilder cache.
|
void |
clearBuilderFromCache(String viewId)
Removes cached ViewBuilder for view ID.
|
abstract ViewBuilder |
createBuilder(FacesContext ctx,
String viewId) |
UIViewRoot |
createView(FacesContext ctx,
String viewId) |
ViewBuilder |
getBuilderFromCache(String viewId) |
protected Pattern |
getFilter(FacesContext ctx) |
String |
getResourceURL(FacesContext ctx,
String path) |
ViewHandler |
getWrapped() |
boolean |
matchesFilter(FacesContext ctx,
String viewId) |
void |
putBuilderIntoCache(String viewId,
ViewBuilder builder)
Caches ViewBuilder for view ID.
|
boolean |
useCache()
True to use ViewBuilder cache.
|
addProtectedView, calculateCharacterEncoding, calculateLocale, calculateRenderKitId, deriveLogicalViewId, deriveViewId, getActionURL, getBookmarkableURL, getProtectedViewsUnmodifiable, getRedirectURL, getViewDeclarationLanguage, initView, removeProtectedView, renderView, restoreView, writeState
public static final String INIT_PARAM_FILTER
public static final String INIT_PARAM_CACHE
public static final String VIEW_FRAGMENT
@Deprecated public static final String VIEW_FRAGMENT_CLIENT_ID
public static final String INJECT_STATE
public static final String NO_RENDER
protected static final int MAX_VIEWS
public static final String FILTER_KEY
protected ViewHandler m_parent
protected Map<String,ViewBuilder> m_builders
protected Pattern m_filter
protected Boolean m_useCache
public BaseViewHandler(ViewHandler parent)
public ViewHandler getWrapped()
getWrapped
in interface FacesWrapper<ViewHandler>
getWrapped
in class ViewHandlerWrapper
public UIViewRoot createView(FacesContext ctx, String viewId)
createView
in class ViewHandlerWrapper
public String getResourceURL(FacesContext ctx, String path)
getResourceURL
in class ViewHandlerWrapper
public ViewBuilder getBuilderFromCache(String viewId)
public void putBuilderIntoCache(String viewId, ViewBuilder builder)
public void clearBuilderFromCache(String viewId)
public void clearBuilderCache()
public boolean useCache()
public abstract ViewBuilder createBuilder(FacesContext ctx, String viewId)
public boolean matchesFilter(FacesContext ctx, String viewId)
protected Pattern getFilter(FacesContext ctx)