public class OmniExternalContext extends ExternalContextWrapper
Flash
will be ignored during an unload request.OmniExternalContextFactory
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
OmniExternalContext(ExternalContext wrapped)
Construct a new OmniFaces external context around the given wrapped external context.
|
Modifier and Type | Method and Description |
---|---|
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. |
ExternalContext |
getWrapped() |
addResponseCookie, addResponseHeader, dispatch, encodeActionURL, encodeBookmarkableURL, encodeNamespace, encodePartialActionURL, encodeRedirectURL, encodeResourceURL, 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, invalidateSession, isResponseCommitted, isSecure, isUserInRole, log, log, redirect, responseFlushBuffer, responseReset, responseSendError, setClientWindow, setRequest, setRequestCharacterEncoding, setResponse, setResponseBufferSize, setResponseCharacterEncoding, setResponseContentLength, setResponseContentType, setResponseHeader, setResponseStatus, setSessionMaxInactiveInterval
public OmniExternalContext(ExternalContext wrapped)
wrapped
- The wrapped external context.public 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 ExternalContextWrapper
public ExternalContext getWrapped()
getWrapped
in interface FacesWrapper<ExternalContext>
getWrapped
in class ExternalContextWrapper
Copyright © 2012–2019 OmniFaces. All rights reserved.