public class OmniExternalContext
extends javax.faces.context.ExternalContextWrapper
Flash
will be ignored during an unload request.OmniExternalContextFactory
Constructor and Description |
---|
OmniExternalContext(javax.faces.context.ExternalContext wrapped)
Construct a new OmniFaces external context around the given wrapped external context.
|
Modifier and Type | Method and Description |
---|---|
javax.faces.context.Flash |
getFlash()
If the current request is an unload request from
ViewScoped , then return a dummy flash scope which does
not modify the flash state, else return the original flash scope. |
addResponseCookie, addResponseHeader, dispatch, encodeActionURL, encodeBookmarkableURL, encodeNamespace, encodePartialActionURL, encodeRedirectURL, encodeResourceURL, encodeWebsocketURL, getApplicationContextPath, getApplicationMap, getAuthType, getClientWindow, getContext, getContextName, getInitParameter, getInitParameterMap, getMimeType, getRealPath, getRemoteUser, getRequest, getRequestCharacterEncoding, getRequestContentLength, getRequestContentType, getRequestContextPath, getRequestCookieMap, getRequestHeaderMap, getRequestHeaderValuesMap, getRequestLocale, getRequestLocales, getRequestMap, getRequestParameterMap, getRequestParameterNames, getRequestParameterValuesMap, getRequestPathInfo, getRequestScheme, getRequestServerName, getRequestServerPort, getRequestServletPath, getResource, getResourceAsStream, getResourcePaths, getResponse, getResponseBufferSize, getResponseCharacterEncoding, getResponseContentType, getResponseOutputStream, getResponseOutputWriter, getSession, getSessionId, getSessionMap, getSessionMaxInactiveInterval, getUserPrincipal, getWrapped, invalidateSession, isResponseCommitted, isSecure, isUserInRole, log, log, redirect, responseFlushBuffer, responseReset, responseSendError, setClientWindow, setRequest, setRequestCharacterEncoding, setResponse, setResponseBufferSize, setResponseCharacterEncoding, setResponseContentLength, setResponseContentType, setResponseHeader, setResponseStatus, setSessionMaxInactiveInterval
public OmniExternalContext(javax.faces.context.ExternalContext wrapped)
wrapped
- The wrapped external context.public javax.faces.context.Flash getFlash()
ViewScoped
, then return a dummy flash scope which does
not modify the flash state, else return the original flash scope.getFlash
in class javax.faces.context.ExternalContextWrapper
Copyright © 2012–2017 OmniFaces. All rights reserved.