Class ExternalContextWrapper
- java.lang.Object
- 
- jakarta.faces.context.ExternalContext
- 
- jakarta.faces.context.ExternalContextWrapper
 
 
- 
- All Implemented Interfaces:
- FacesWrapper<ExternalContext>
 
 public abstract class ExternalContextWrapper extends ExternalContext implements FacesWrapper<ExternalContext> Provides a simple implementation of ExternalContextthat can be subclassed by developers wishing to provide specialized behavior to an existingExternalContextinstance. The default implementation of all methods is to call through to the wrappedExternalContextinstance.Usage: extend this class and push the implementation being wrapped to the constructor and use getWrapped()to access the instance being wrapped.- Since:
- 2.0
 
- 
- 
Field Summary- 
Fields inherited from class jakarta.faces.context.ExternalContextBASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
- 
 - 
Constructor SummaryConstructors Constructor Description ExternalContextWrapper()Deprecated.Use the other constructor taking the implementation being wrapped.ExternalContextWrapper(ExternalContext wrapped)If this external context has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResponseCookie(String name, String value, Map<String,Object> properties)The default behavior of this method is to callExternalContext.addResponseCookie(String, String, Map)on the wrappedExternalContextobject.voidaddResponseHeader(String name, String value)The default behavior of this method is to callExternalContext.addResponseHeader(String,String)on the wrappedExternalContextobject.voiddispatch(String path)The default behavior of this method is to callExternalContext.dispatch(String)on the wrappedExternalContextobject.StringencodeActionURL(String url)The default behavior of this method is to callExternalContext.encodeActionURL(String)on the wrappedExternalContextobject.StringencodeBookmarkableURL(String baseUrl, Map<String,List<String>> parameters)The default behavior of this method is to callExternalContext.encodeBookmarkableURL(String, java.util.Map)on the wrappedExternalContextobject.StringencodeNamespace(String name)The default behavior of this method is to callExternalContext.encodeNamespace(String)on the wrappedExternalContextobject.StringencodePartialActionURL(String url)The default behavior of this method is to callExternalContext.encodePartialActionURL(String)on the wrappedExternalContextobject.StringencodeRedirectURL(String baseUrl, Map<String,List<String>> parameters)The default behavior of this method is to callExternalContext.encodeRedirectURL(String, java.util.Map)on the wrappedExternalContextobject.StringencodeResourceURL(String url)The default behavior of this method is to callExternalContext.encodeResourceURL(String)on the wrappedExternalContextobject.StringencodeWebsocketURL(String url)The default behavior of this method is to callExternalContext.encodeWebsocketURL(String)on the wrappedExternalContextobject.StringgetApplicationContextPath()The default behavior of this method is to callExternalContext.getApplicationContextPath()on the wrappedExternalContextobject.Map<String,Object>getApplicationMap()The default behavior of this method is to callExternalContext.getApplicationMap()on the wrappedExternalContextobject.StringgetAuthType()The default behavior of this method is to callExternalContext.getAuthType()on the wrappedExternalContextobject.ClientWindowgetClientWindow()The default behavior of this method is to callExternalContext.getClientWindow()on the wrappedExternalContextobject.ObjectgetContext()The default behavior of this method is to callExternalContext.getContext()on the wrappedExternalContextobject.StringgetContextName()The default behavior of this method is to callExternalContext.getContextName()on the wrappedExternalContextobject.FlashgetFlash()The default behavior of this method is to callExternalContext.getFlash()on the wrappedExternalContextobject.StringgetInitParameter(String name)The default behavior of this method is to callExternalContext.getInitParameter(String)on the wrappedExternalContextobject.MapgetInitParameterMap()The default behavior of this method is to callExternalContext.getInitParameterMap()on the wrappedExternalContextobject.StringgetMimeType(String file)The default behavior of this method is to callExternalContext.getMimeType(String)on the wrappedExternalContextobject.StringgetRealPath(String path)The default behavior of this method is to callExternalContext.getRealPath(String)on the wrappedExternalContextobject.StringgetRemoteUser()The default behavior of this method is to callExternalContext.getRemoteUser()on the wrappedExternalContextobject.ObjectgetRequest()The default behavior of this method is to callExternalContext.getRequest()on the wrappedExternalContextobject.StringgetRequestCharacterEncoding()The default behavior of this method is to callExternalContext.getRequestCharacterEncoding()on the wrappedExternalContextobject.intgetRequestContentLength()The default behavior of this method is to callExternalContext.getRequestContentLength()on the wrappedExternalContextobject.StringgetRequestContentType()The default behavior of this method is to callExternalContext.getRequestContentType()on the wrappedExternalContextobject.StringgetRequestContextPath()The default behavior of this method is to callExternalContext.getRequestContextPath()on the wrappedExternalContextobject.Map<String,Object>getRequestCookieMap()The default behavior of this method is to callExternalContext.getRequestCookieMap()on the wrappedExternalContextobject.Map<String,String>getRequestHeaderMap()The default behavior of this method is to callExternalContext.getRequestHeaderMap()on the wrappedExternalContextobject.Map<String,String[]>getRequestHeaderValuesMap()The default behavior of this method is to callExternalContext.getRequestHeaderValuesMap()on the wrappedExternalContextobject.LocalegetRequestLocale()The default behavior of this method is to callExternalContext.getRequestLocale()on the wrappedExternalContextobject.Iterator<Locale>getRequestLocales()The default behavior of this method is to callExternalContext.getRequestLocales()on the wrappedExternalContextobject.Map<String,Object>getRequestMap()The default behavior of this method is to callExternalContext.getRequestMap()on the wrappedExternalContextobject.Map<String,String>getRequestParameterMap()The default behavior of this method is to callExternalContext.getRequestParameterMap()on the wrappedExternalContextobject.Iterator<String>getRequestParameterNames()The default behavior of this method is to callExternalContext.getRequestParameterNames()on the wrappedExternalContextobject.Map<String,String[]>getRequestParameterValuesMap()The default behavior of this method is to callExternalContext.getRequestParameterValuesMap()on the wrappedExternalContextobject.StringgetRequestPathInfo()The default behavior of this method is to callExternalContext.getRequestPathInfo()on the wrappedExternalContextobject.StringgetRequestScheme()The default behavior of this method is to callExternalContext.getRequestScheme()on the wrappedExternalContextobject.StringgetRequestServerName()The default behavior of this method is to callExternalContext.getRequestServerName()on the wrappedExternalContextobject.intgetRequestServerPort()The default behavior of this method is to callExternalContext.getRequestServerPort()on the wrappedExternalContextobject.StringgetRequestServletPath()The default behavior of this method is to callExternalContext.getRequestServletPath()on the wrappedExternalContextobject.URLgetResource(String path)The default behavior of this method is to callExternalContext.getResource(String)on the wrappedExternalContextobject.InputStreamgetResourceAsStream(String path)The default behavior of this method is to callExternalContext.getResourceAsStream(String)on the wrappedExternalContextobject.Set<String>getResourcePaths(String path)The default behavior of this method is to callExternalContext.getResourcePaths(String)on the wrappedExternalContextobject.ObjectgetResponse()The default behavior of this method is to callExternalContext.getResponse()on the wrappedExternalContextobject.intgetResponseBufferSize()The default behavior of this method is to callExternalContext.getResponseBufferSize()on the wrappedExternalContextobject.StringgetResponseCharacterEncoding()The default behavior of this method is to callExternalContext.getResponseCharacterEncoding()on the wrappedExternalContextobject.StringgetResponseContentType()The default behavior of this method is to callExternalContext.getResponseContentType()on the wrappedExternalContextobject.OutputStreamgetResponseOutputStream()The default behavior of this method is to callExternalContext.getResponseOutputStream()on the wrappedExternalContextobject.WritergetResponseOutputWriter()The default behavior of this method is to callExternalContext.getResponseOutputWriter()on the wrappedExternalContextobject.ObjectgetSession(boolean create)The default behavior of this method is to callExternalContext.getSession(boolean)on the wrappedExternalContextobject.StringgetSessionId(boolean create)The default behavior of this method is to callExternalContext.getSessionId(boolean)on the wrappedExternalContextobject.Map<String,Object>getSessionMap()The default behavior of this method is to callExternalContext.getSessionMap()on the wrappedExternalContextobject.intgetSessionMaxInactiveInterval()The default behavior of this method is to callExternalContext.getSessionMaxInactiveInterval()on the wrappedExternalContextobject.PrincipalgetUserPrincipal()The default behavior of this method is to callExternalContext.getUserPrincipal()on the wrappedExternalContextobject.ExternalContextgetWrapped()A class that implements this interface uses this method to return an instance of the class being wrapped.voidinvalidateSession()The default behavior of this method is to callExternalContext.invalidateSession()on the wrappedExternalContextobject.booleanisResponseCommitted()The default behavior of this method is to callExternalContext.isResponseCommitted()on the wrappedExternalContextobject.booleanisSecure()The default behavior of this method is to callExternalContext.isSecure()on the wrappedExternalContextobject.booleanisUserInRole(String role)The default behavior of this method is to callExternalContext.isUserInRole(String)on the wrappedExternalContextobject.voidlog(String message)The default behavior of this method is to callExternalContext.log(String)on the wrappedExternalContextobject.voidlog(String message, Throwable exception)The default behavior of this method is to callExternalContext.log(String, Throwable)on the wrappedExternalContextobject.voidredirect(String url)The default behavior of this method is to callExternalContext.redirect(String)on the wrappedExternalContextobject.voidrelease()The default behavior of this method is to callExternalContext.release()on the wrappedExternalContextobject.voidresponseFlushBuffer()The default behavior of this method is to callExternalContext.responseFlushBuffer()on the wrappedExternalContextobject.voidresponseReset()The default behavior of this method is to callExternalContext.responseReset()on the wrappedExternalContextobject.voidresponseSendError(int statusCode, String message)The default behavior of this method is to callExternalContext.responseSendError(int,String)on the wrappedExternalContextobject.voidsetClientWindow(ClientWindow window)The default behavior of this method is to callExternalContext.setClientWindow(jakarta.faces.lifecycle.ClientWindow)on the wrappedExternalContextobject.voidsetRequest(Object request)The default behavior of this method is to callExternalContext.setRequest(Object)on the wrappedExternalContextobject.voidsetRequestCharacterEncoding(String encoding)The default behavior of this method is to callExternalContext.setRequestCharacterEncoding(String)on the wrappedExternalContextobject.voidsetResponse(Object response)The default behavior of this method is to callExternalContext.setResponse(Object)on the wrappedExternalContextobject.voidsetResponseBufferSize(int size)The default behavior of this method is to callExternalContext.setResponseBufferSize(int)on the wrappedExternalContextobject.voidsetResponseCharacterEncoding(String encoding)The default behavior of this method is to callExternalContext.getResponseCharacterEncoding()on the wrappedExternalContextobject.voidsetResponseContentLength(int length)The default behavior of this method is to callExternalContext.setResponseContentLength(int)on the wrappedExternalContextobject.voidsetResponseContentType(String contentType)The default behavior of this method is to callExternalContext.setResponseContentType(String)on the wrappedExternalContextobject.voidsetResponseHeader(String name, String value)The default behavior of this method is to callExternalContext.setResponseHeader(String,String)on the wrappedExternalContextobject.voidsetResponseStatus(int statusCode)The default behavior of this method is to callExternalContext.setResponseStatus(int)on the wrappedExternalContextobject.voidsetSessionMaxInactiveInterval(int interval)The default behavior of this method is to callExternalContext.setSessionMaxInactiveInterval(int)on the wrappedExternalContextobject.
 
- 
- 
- 
Constructor Detail- 
ExternalContextWrapper@Deprecated public ExternalContextWrapper() Deprecated.Use the other constructor taking the implementation being wrapped.
 - 
ExternalContextWrapperpublic ExternalContextWrapper(ExternalContext wrapped) If this external context has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The getWrapped()will then return the implementation being wrapped.- Parameters:
- wrapped- The implementation being wrapped.
- Since:
- 2.3
 
 
- 
 - 
Method Detail- 
getWrappedpublic ExternalContext getWrapped() Description copied from interface:FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped. - Specified by:
- getWrappedin interface- FacesWrapper<ExternalContext>
- Returns:
- the wrapped instance.
 
 - 
dispatchpublic void dispatch(String path) throws IOException The default behavior of this method is to call ExternalContext.dispatch(String)on the wrappedExternalContextobject.- Specified by:
- dispatchin class- ExternalContext
- Parameters:
- path- Context relative path to the specified resource, which must start with a slash ("/") character
- Throws:
- IOException- if an input/output error occurs
- See Also:
- ExternalContext.dispatch(String)
 
 - 
encodeActionURLpublic String encodeActionURL(String url) The default behavior of this method is to call ExternalContext.encodeActionURL(String)on the wrappedExternalContextobject.- Specified by:
- encodeActionURLin class- ExternalContext
- Parameters:
- url- The input URL to be encoded
- Returns:
- the encoded URL.
- See Also:
- ExternalContext.encodeActionURL(String)
 
 - 
encodeNamespacepublic String encodeNamespace(String name) The default behavior of this method is to call ExternalContext.encodeNamespace(String)on the wrappedExternalContextobject.- Specified by:
- encodeNamespacein class- ExternalContext
- Parameters:
- name- Name to be encoded
- Returns:
- the unique name prefixed with namespace.
- See Also:
- ExternalContext.encodeNamespace(String)
 
 - 
encodePartialActionURLpublic String encodePartialActionURL(String url) The default behavior of this method is to call ExternalContext.encodePartialActionURL(String)on the wrappedExternalContextobject.- Overrides:
- encodePartialActionURLin class- ExternalContext
- Parameters:
- url- The input URL to be encoded
- Returns:
- the encoded URL.
- See Also:
- ExternalContext.encodePartialActionURL(String)
 
 - 
encodeResourceURLpublic String encodeResourceURL(String url) The default behavior of this method is to call ExternalContext.encodeResourceURL(String)on the wrappedExternalContextobject.- Specified by:
- encodeResourceURLin class- ExternalContext
- Parameters:
- url- The input URL to be encoded
- Returns:
- the encoded resource URL.
- See Also:
- ExternalContext.encodeResourceURL(String)
 
 - 
encodeWebsocketURLpublic String encodeWebsocketURL(String url) The default behavior of this method is to call ExternalContext.encodeWebsocketURL(String)on the wrappedExternalContextobject.- Specified by:
- encodeWebsocketURLin class- ExternalContext
- Parameters:
- url- The input URL to be encoded.
- Returns:
- the encoded websocket URL.
- See Also:
- ExternalContext.encodeWebsocketURL(String)
 
 - 
getApplicationMappublic Map<String,Object> getApplicationMap() The default behavior of this method is to call ExternalContext.getApplicationMap()on the wrappedExternalContextobject.- Specified by:
- getApplicationMapin class- ExternalContext
- Returns:
- the map associated with the backed ServletContext.
- See Also:
- ExternalContext.getApplicationMap()
 
 - 
getApplicationContextPathpublic String getApplicationContextPath() The default behavior of this method is to call ExternalContext.getApplicationContextPath()on the wrappedExternalContextobject.- Overrides:
- getApplicationContextPathin class- ExternalContext
- Returns:
- the context path of this application.
- See Also:
- ExternalContext.getApplicationContextPath()
 
 - 
getAuthTypepublic String getAuthType() The default behavior of this method is to call ExternalContext.getAuthType()on the wrappedExternalContextobject.- Specified by:
- getAuthTypein class- ExternalContext
- Returns:
- the authentication type.
- See Also:
- ExternalContext.getAuthType()
 
 - 
getContextpublic Object getContext() The default behavior of this method is to call ExternalContext.getContext()on the wrappedExternalContextobject.- Specified by:
- getContextin class- ExternalContext
- Returns:
- the object of the ServletContext.
- See Also:
- ExternalContext.getContext()
 
 - 
getInitParameterpublic String getInitParameter(String name) The default behavior of this method is to call ExternalContext.getInitParameter(String)on the wrappedExternalContextobject.- Specified by:
- getInitParameterin class- ExternalContext
- Parameters:
- name- Name of the requested initialization parameter
- Returns:
- the value of the specified parameter.
- See Also:
- ExternalContext.getInitParameter(String)
 
 - 
getInitParameterMappublic Map getInitParameterMap() The default behavior of this method is to call ExternalContext.getInitParameterMap()on the wrappedExternalContextobject.- Specified by:
- getInitParameterMapin class- ExternalContext
- Returns:
- the init parameter map for this application.
- See Also:
- ExternalContext.getInitParameterMap()
 
 - 
getRemoteUserpublic String getRemoteUser() The default behavior of this method is to call ExternalContext.getRemoteUser()on the wrappedExternalContextobject.- Specified by:
- getRemoteUserin class- ExternalContext
- Returns:
- the user name of the current request.
- See Also:
- ExternalContext.getRemoteUser()
 
 - 
getRequestpublic Object getRequest() The default behavior of this method is to call ExternalContext.getRequest()on the wrappedExternalContextobject.- Specified by:
- getRequestin class- ExternalContext
- Returns:
- the instance of the current request.
- See Also:
- ExternalContext.getRequest()
 
 - 
getRequestContextPathpublic String getRequestContextPath() The default behavior of this method is to call ExternalContext.getRequestContextPath()on the wrappedExternalContextobject.- Specified by:
- getRequestContextPathin class- ExternalContext
- Returns:
- the context path for this request.
- See Also:
- ExternalContext.getRequestContextPath()
 
 - 
getRequestCookieMappublic Map<String,Object> getRequestCookieMap() The default behavior of this method is to call ExternalContext.getRequestCookieMap()on the wrappedExternalContextobject.- Specified by:
- getRequestCookieMapin class- ExternalContext
- Returns:
- the cookie map in the current request.
- See Also:
- ExternalContext.getRequestCookieMap()
 
 - 
getRequestHeaderMappublic Map<String,String> getRequestHeaderMap() The default behavior of this method is to call ExternalContext.getRequestHeaderMap()on the wrappedExternalContextobject.- Specified by:
- getRequestHeaderMapin class- ExternalContext
- Returns:
- the header map in the current request.
- See Also:
- ExternalContext.getRequestHeaderMap()
 
 - 
getRequestHeaderValuesMappublic Map<String,String[]> getRequestHeaderValuesMap() The default behavior of this method is to call ExternalContext.getRequestHeaderValuesMap()on the wrappedExternalContextobject.- Specified by:
- getRequestHeaderValuesMapin class- ExternalContext
- Returns:
- the header values map in the current request.
- See Also:
- ExternalContext.getRequestHeaderValuesMap()
 
 - 
getRequestLocalepublic Locale getRequestLocale() The default behavior of this method is to call ExternalContext.getRequestLocale()on the wrappedExternalContextobject.- Specified by:
- getRequestLocalein class- ExternalContext
- Returns:
- the Localeof the current request.
- See Also:
- ExternalContext.getRequestLocale()
 
 - 
getRequestLocalespublic Iterator<Locale> getRequestLocales() The default behavior of this method is to call ExternalContext.getRequestLocales()on the wrappedExternalContextobject.- Specified by:
- getRequestLocalesin class- ExternalContext
- Returns:
- the IteratorofLocales of the current request.
- See Also:
- ExternalContext.getRequestLocales()
 
 - 
getRequestMappublic Map<String,Object> getRequestMap() The default behavior of this method is to call ExternalContext.getRequestMap()on the wrappedExternalContextobject.- Specified by:
- getRequestMapin class- ExternalContext
- Returns:
- the map including the attributes of the current request.
- See Also:
- ExternalContext.getRequestMap()
 
 - 
getRequestParameterMappublic Map<String,String> getRequestParameterMap() The default behavior of this method is to call ExternalContext.getRequestParameterMap()on the wrappedExternalContextobject.- Specified by:
- getRequestParameterMapin class- ExternalContext
- Returns:
- the map for the current request parameters.
- See Also:
- ExternalContext.getRequestParameterMap()
 
 - 
getRequestParameterNamespublic Iterator<String> getRequestParameterNames() The default behavior of this method is to call ExternalContext.getRequestParameterNames()on the wrappedExternalContextobject.- Specified by:
- getRequestParameterNamesin class- ExternalContext
- Returns:
- the Iteratorfor the names of the current request parameters.
- See Also:
- ExternalContext.getRequestParameterNames()
 
 - 
getRequestParameterValuesMappublic Map<String,String[]> getRequestParameterValuesMap() The default behavior of this method is to call ExternalContext.getRequestParameterValuesMap()on the wrappedExternalContextobject.- Specified by:
- getRequestParameterValuesMapin class- ExternalContext
- Returns:
- the map for the parameter values of the current request.
- See Also:
- ExternalContext.getRequestParameterValuesMap()
 
 - 
getRequestPathInfopublic String getRequestPathInfo() The default behavior of this method is to call ExternalContext.getRequestPathInfo()on the wrappedExternalContextobject.- Specified by:
- getRequestPathInfoin class- ExternalContext
- Returns:
- the path information of the current request.
- See Also:
- ExternalContext.getRequestPathInfo()
 
 - 
getRequestServletPathpublic String getRequestServletPath() The default behavior of this method is to call ExternalContext.getRequestServletPath()on the wrappedExternalContextobject.- Specified by:
- getRequestServletPathin class- ExternalContext
- Returns:
- the Jakarta Servlet path information of the current request.
- See Also:
- ExternalContext.getRequestServletPath()
 
 - 
getResourcepublic URL getResource(String path) throws MalformedURLException The default behavior of this method is to call ExternalContext.getResource(String)on the wrappedExternalContextobject.- Specified by:
- getResourcein class- ExternalContext
- Parameters:
- path- The path to the requested resource, which must start with a slash ("/" character
- Returns:
- the URL of the resource.
- Throws:
- MalformedURLException- if the specified path is not in the correct form
- See Also:
- ExternalContext.getResource(String)
 
 - 
getResourceAsStreampublic InputStream getResourceAsStream(String path) The default behavior of this method is to call ExternalContext.getResourceAsStream(String)on the wrappedExternalContextobject.- Specified by:
- getResourceAsStreamin class- ExternalContext
- Parameters:
- path- The path to the requested resource, which must start with a slash ("/" character
- Returns:
- the InputStreamfor the application resource.
- See Also:
- ExternalContext.getResourceAsStream(String)
 
 - 
getResourcePathspublic Set<String> getResourcePaths(String path) The default behavior of this method is to call ExternalContext.getResourcePaths(String)on the wrappedExternalContextobject.- Specified by:
- getResourcePathsin class- ExternalContext
- Parameters:
- path- Partial path used to match resources, which must start with a slash ("/") character
- Returns:
- the Setof resource paths for the application resources.
- See Also:
- ExternalContext.getResourcePaths(String)
 
 - 
getResponsepublic Object getResponse() The default behavior of this method is to call ExternalContext.getResponse()on the wrappedExternalContextobject.- Specified by:
- getResponsein class- ExternalContext
- Returns:
- the instance of the current jakarta.servlet.http.HttpServletResponse.
- See Also:
- ExternalContext.getResponse()
 
 - 
getSessionpublic Object getSession(boolean create) The default behavior of this method is to call ExternalContext.getSession(boolean)on the wrappedExternalContextobject.- Specified by:
- getSessionin class- ExternalContext
- Parameters:
- create- Flag indicating whether or not a new session should be created if there is no session associated with the current request
- Returns:
- the session object of the current request.
- See Also:
- ExternalContext.getSession(boolean)
 
 - 
getSessionIdpublic String getSessionId(boolean create) The default behavior of this method is to call ExternalContext.getSessionId(boolean)on the wrappedExternalContextobject.- Overrides:
- getSessionIdin class- ExternalContext
- Parameters:
- create- Flag indicating whether or not a new session should be created if there is no session associated with the current request
- Returns:
- the session id for the current request.
- Since:
- 2.2
- See Also:
- ExternalContext.getSessionId(boolean)
 
 - 
getSessionMappublic Map<String,Object> getSessionMap() The default behavior of this method is to call ExternalContext.getSessionMap()on the wrappedExternalContextobject.- Specified by:
- getSessionMapin class- ExternalContext
- Returns:
- the session map for the current application.
- See Also:
- ExternalContext.getSessionMap()
 
 - 
getSessionMaxInactiveIntervalpublic int getSessionMaxInactiveInterval() The default behavior of this method is to call ExternalContext.getSessionMaxInactiveInterval()on the wrappedExternalContextobject.- Overrides:
- getSessionMaxInactiveIntervalin class- ExternalContext
- Returns:
- the session maximum inactive interval.
- See Also:
- ExternalContext.getSessionMaxInactiveInterval()
 
 - 
setSessionMaxInactiveIntervalpublic void setSessionMaxInactiveInterval(int interval) The default behavior of this method is to call ExternalContext.setSessionMaxInactiveInterval(int)on the wrappedExternalContextobject.- Overrides:
- setSessionMaxInactiveIntervalin class- ExternalContext
- Parameters:
- interval- the value to be set.
- See Also:
- ExternalContext.setSessionMaxInactiveInterval(int)
 
 - 
setClientWindowpublic void setClientWindow(ClientWindow window) The default behavior of this method is to call ExternalContext.setClientWindow(jakarta.faces.lifecycle.ClientWindow)on the wrappedExternalContextobject.- Overrides:
- setClientWindowin class- ExternalContext
- Parameters:
- window- the window associated with this request.
- Since:
- 2.2
 
 - 
getUserPrincipalpublic Principal getUserPrincipal() The default behavior of this method is to call ExternalContext.getUserPrincipal()on the wrappedExternalContextobject.- Specified by:
- getUserPrincipalin class- ExternalContext
- Returns:
- the Principalobject.
- See Also:
- ExternalContext.getUserPrincipal()
 
 - 
getClientWindowpublic ClientWindow getClientWindow() The default behavior of this method is to call ExternalContext.getClientWindow()on the wrappedExternalContextobject.- Overrides:
- getClientWindowin class- ExternalContext
- Returns:
- the instance of the ClientWindow.
- Since:
- 2.2
- See Also:
- ExternalContext.getClientWindow()
 
 - 
isUserInRolepublic boolean isUserInRole(String role) The default behavior of this method is to call ExternalContext.isUserInRole(String)on the wrappedExternalContextobject.- Specified by:
- isUserInRolein class- ExternalContext
- Parameters:
- role- Logical role name to be checked
- Returns:
- the flag indicating whether the current user is in the specified role.
- See Also:
- ExternalContext.isUserInRole(String)
 
 - 
logpublic void log(String message) The default behavior of this method is to call ExternalContext.log(String)on the wrappedExternalContextobject.- Specified by:
- login class- ExternalContext
- Parameters:
- message- Message to be logged
- See Also:
- ExternalContext.log(String)
 
 - 
logpublic void log(String message, Throwable exception) The default behavior of this method is to call ExternalContext.log(String, Throwable)on the wrappedExternalContextobject.- Specified by:
- login class- ExternalContext
- Parameters:
- message- Message to be logged
- exception- Exception to be logged
- See Also:
- ExternalContext.log(String, Throwable)
 
 - 
redirectpublic void redirect(String url) throws IOException The default behavior of this method is to call ExternalContext.redirect(String)on the wrappedExternalContextobject.- Specified by:
- redirectin class- ExternalContext
- Parameters:
- url- Absolute URL to which the client should be redirected
- Throws:
- IOException- if an input/output error occurs
- See Also:
- ExternalContext.redirect(String)
 
 - 
addResponseCookiepublic void addResponseCookie(String name, String value, Map<String,Object> properties) The default behavior of this method is to call ExternalContext.addResponseCookie(String, String, Map)on the wrappedExternalContextobject.- Overrides:
- addResponseCookiein class- ExternalContext
- Parameters:
- name- To be passed as the first argument to the- Cookieconstructor.
- value- To be passed as the second argument to the- Cookieconstructor.
- properties- A- Mapcontaing key/value pairs to be passed as arguments to the setter methods as described above.
- See Also:
- ExternalContext.addResponseCookie(String, String, Map)
 
 - 
getMimeTypepublic String getMimeType(String file) The default behavior of this method is to call ExternalContext.getMimeType(String)on the wrappedExternalContextobject.- Overrides:
- getMimeTypein class- ExternalContext
- Parameters:
- file- The file for which the mime type should be obtained.
- Returns:
- the MIME type of the file.
- See Also:
- ExternalContext.getMimeType(String)
 
 - 
getContextNamepublic String getContextName() The default behavior of this method is to call ExternalContext.getContextName()on the wrappedExternalContextobject.- Overrides:
- getContextNamein class- ExternalContext
- Returns:
- the name the ServletContext.
- See Also:
- ExternalContext.getContextName()
 
 - 
setRequestpublic void setRequest(Object request) The default behavior of this method is to call ExternalContext.setRequest(Object)on the wrappedExternalContextobject.- Overrides:
- setRequestin class- ExternalContext
- Parameters:
- request- the request object to be set.
- See Also:
- ExternalContext.setRequest(Object)
 
 - 
getRequestSchemepublic String getRequestScheme() The default behavior of this method is to call ExternalContext.getRequestScheme()on the wrappedExternalContextobject.- Overrides:
- getRequestSchemein class- ExternalContext
- Returns:
- the name of the scheme.
- See Also:
- ExternalContext.getRequestScheme()
 
 - 
getRequestServerNamepublic String getRequestServerName() The default behavior of this method is to call ExternalContext.getRequestServerName()on the wrappedExternalContextobject.- Overrides:
- getRequestServerNamein class- ExternalContext
- Returns:
- the host name of the server.
- See Also:
- ExternalContext.getRequestServerName()
 
 - 
getRequestServerPortpublic int getRequestServerPort() The default behavior of this method is to call ExternalContext.getRequestServerPort()on the wrappedExternalContextobject.- Overrides:
- getRequestServerPortin class- ExternalContext
- Returns:
- the port number to which the request was sent.
- See Also:
- ExternalContext.getRequestServerPort()
 
 - 
setRequestCharacterEncodingpublic void setRequestCharacterEncoding(String encoding) throws UnsupportedEncodingException The default behavior of this method is to call ExternalContext.setRequestCharacterEncoding(String)on the wrappedExternalContextobject.- Overrides:
- setRequestCharacterEncodingin class- ExternalContext
- Parameters:
- encoding- the encoding name to be set.
- Throws:
- UnsupportedEncodingException- if this is not a valid encoding
- See Also:
- ExternalContext.setRequestCharacterEncoding(String)
 
 - 
getRealPathpublic String getRealPath(String path) The default behavior of this method is to call ExternalContext.getRealPath(String)on the wrappedExternalContextobject.- Overrides:
- getRealPathin class- ExternalContext
- Parameters:
- path- The context of the requested initialization parameter
- Returns:
- the real path for the specified virtual path.
- See Also:
- ExternalContext.getRealPath(String)
 
 - 
getRequestCharacterEncodingpublic String getRequestCharacterEncoding() The default behavior of this method is to call ExternalContext.getRequestCharacterEncoding()on the wrappedExternalContextobject.- Overrides:
- getRequestCharacterEncodingin class- ExternalContext
- Returns:
- the character encoding currently being used.
- See Also:
- ExternalContext.getRequestCharacterEncoding()
 
 - 
getRequestContentTypepublic String getRequestContentType() The default behavior of this method is to call ExternalContext.getRequestContentType()on the wrappedExternalContextobject.- Overrides:
- getRequestContentTypein class- ExternalContext
- Returns:
- the Content-Type for this request.
- See Also:
- ExternalContext.getRequestContentType()
 
 - 
getRequestContentLengthpublic int getRequestContentLength() The default behavior of this method is to call ExternalContext.getRequestContentLength()on the wrappedExternalContextobject.- Overrides:
- getRequestContentLengthin class- ExternalContext
- Returns:
- the content length of the current request.
- See Also:
- ExternalContext.getRequestContentLength()
 
 - 
getResponseCharacterEncodingpublic String getResponseCharacterEncoding() The default behavior of this method is to call ExternalContext.getResponseCharacterEncoding()on the wrappedExternalContextobject.- Overrides:
- getResponseCharacterEncodingin class- ExternalContext
- Returns:
- the name of the character encoding.
- See Also:
- ExternalContext.getResponseCharacterEncoding()
 
 - 
getResponseContentTypepublic String getResponseContentType() The default behavior of this method is to call ExternalContext.getResponseContentType()on the wrappedExternalContextobject.- Overrides:
- getResponseContentTypein class- ExternalContext
- Returns:
- the MIME Content-Type for this response.
- See Also:
- ExternalContext.getResponseContentType()
 
 - 
setResponsepublic void setResponse(Object response) The default behavior of this method is to call ExternalContext.setResponse(Object)on the wrappedExternalContextobject.- Overrides:
- setResponsein class- ExternalContext
- Parameters:
- response- the response instance to be set.
- See Also:
- ExternalContext.setResponse(Object)
 
 - 
getResponseOutputStreampublic OutputStream getResponseOutputStream() throws IOException The default behavior of this method is to call ExternalContext.getResponseOutputStream()on the wrappedExternalContextobject.- Overrides:
- getResponseOutputStreamin class- ExternalContext
- Returns:
- the OutputStreamfor the current response.
- Throws:
- IOException- any IO related exception.
- See Also:
- ExternalContext.getResponseOutputStream()
 
 - 
getResponseOutputWriterpublic Writer getResponseOutputWriter() throws IOException The default behavior of this method is to call ExternalContext.getResponseOutputWriter()on the wrappedExternalContextobject.- Overrides:
- getResponseOutputWriterin class- ExternalContext
- Returns:
- the Writerfor the current response.
- Throws:
- IOException- any IO related exception.
- See Also:
- ExternalContext.getResponseOutputWriter()
 
 - 
setResponseCharacterEncodingpublic void setResponseCharacterEncoding(String encoding) The default behavior of this method is to call ExternalContext.getResponseCharacterEncoding()on the wrappedExternalContextobject.- Overrides:
- setResponseCharacterEncodingin class- ExternalContext
- Parameters:
- encoding- the character encoding to be sent by the current response.
- See Also:
- ExternalContext.getResponseCharacterEncoding()
 
 - 
setResponseContentTypepublic void setResponseContentType(String contentType) The default behavior of this method is to call ExternalContext.setResponseContentType(String)on the wrappedExternalContextobject.- Overrides:
- setResponseContentTypein class- ExternalContext
- Parameters:
- contentType- The content type to be set as the contentType of the response.
- See Also:
- ExternalContext.setResponseContentType(String)
 
 - 
invalidateSessionpublic void invalidateSession() The default behavior of this method is to call ExternalContext.invalidateSession()on the wrappedExternalContextobject.- Overrides:
- invalidateSessionin class- ExternalContext
- See Also:
- ExternalContext.invalidateSession()
 
 - 
setResponseHeaderpublic void setResponseHeader(String name, String value) The default behavior of this method is to call ExternalContext.setResponseHeader(String,String)on the wrappedExternalContextobject.- Overrides:
- setResponseHeaderin class- ExternalContext
- Parameters:
- name- The name of the response header.
- value- The value of the response header.
- See Also:
- ExternalContext.setResponseHeader(String,String)
 
 - 
addResponseHeaderpublic void addResponseHeader(String name, String value) The default behavior of this method is to call ExternalContext.addResponseHeader(String,String)on the wrappedExternalContextobject.- Overrides:
- addResponseHeaderin class- ExternalContext
- Parameters:
- name- The name of the response header.
- value- The value of the response header.
- See Also:
- ExternalContext.addResponseHeader(String,String)
 
 - 
setResponseBufferSizepublic void setResponseBufferSize(int size) The default behavior of this method is to call ExternalContext.setResponseBufferSize(int)on the wrappedExternalContextobject.- Overrides:
- setResponseBufferSizein class- ExternalContext
- Parameters:
- size- the new buffer size
- See Also:
- ExternalContext.setResponseBufferSize(int)
 
 - 
getResponseBufferSizepublic int getResponseBufferSize() The default behavior of this method is to call ExternalContext.getResponseBufferSize()on the wrappedExternalContextobject.- Overrides:
- getResponseBufferSizein class- ExternalContext
- Returns:
- the buffer size of the response.
- See Also:
- ExternalContext.getResponseBufferSize()
 
 - 
isResponseCommittedpublic boolean isResponseCommitted() The default behavior of this method is to call ExternalContext.isResponseCommitted()on the wrappedExternalContextobject.- Overrides:
- isResponseCommittedin class- ExternalContext
- Returns:
- the flag indicating whether the current response has been committed.
- See Also:
- ExternalContext.isResponseCommitted()
 
 - 
isSecurepublic boolean isSecure() The default behavior of this method is to call ExternalContext.isSecure()on the wrappedExternalContextobject.- Overrides:
- isSecurein class- ExternalContext
- Returns:
- the boolean indicating whether this request is secured.
 
 - 
responseResetpublic void responseReset() The default behavior of this method is to call ExternalContext.responseReset()on the wrappedExternalContextobject.- Overrides:
- responseResetin class- ExternalContext
- See Also:
- ExternalContext.responseReset()
 
 - 
responseSendErrorpublic void responseSendError(int statusCode, String message) throws IOExceptionThe default behavior of this method is to call ExternalContext.responseSendError(int,String)on the wrappedExternalContextobject.- Overrides:
- responseSendErrorin class- ExternalContext
- Parameters:
- statusCode- an HTTP status code
- message- an option message to detail the cause of the code
- Throws:
- IOException- any IO related exceptions.
- See Also:
- ExternalContext.responseSendError(int,String)
 
 - 
setResponseStatuspublic void setResponseStatus(int statusCode) The default behavior of this method is to call ExternalContext.setResponseStatus(int)on the wrappedExternalContextobject.- Overrides:
- setResponseStatusin class- ExternalContext
- Parameters:
- statusCode- an HTTP status code
- See Also:
- ExternalContext.setResponseStatus(int)
 
 - 
responseFlushBufferpublic void responseFlushBuffer() throws IOExceptionThe default behavior of this method is to call ExternalContext.responseFlushBuffer()on the wrappedExternalContextobject.- Overrides:
- responseFlushBufferin class- ExternalContext
- Throws:
- IOException- any IO related exception.
- See Also:
- ExternalContext.responseFlushBuffer()
 
 - 
setResponseContentLengthpublic void setResponseContentLength(int length) The default behavior of this method is to call ExternalContext.setResponseContentLength(int)on the wrappedExternalContextobject.- Overrides:
- setResponseContentLengthin class- ExternalContext
- Parameters:
- length- the value to be set.
- See Also:
- ExternalContext.setResponseContentLength(int)
 
 - 
encodeBookmarkableURLpublic String encodeBookmarkableURL(String baseUrl, Map<String,List<String>> parameters) The default behavior of this method is to call ExternalContext.encodeBookmarkableURL(String, java.util.Map)on the wrappedExternalContextobject.- Overrides:
- encodeBookmarkableURLin class- ExternalContext
- Parameters:
- baseUrl- The base URL onto which the query string generated by this method will be appended. The URL may contain query parameters.
- parameters- The collection of Parameter objects, representing name=value pairs that are used to produce a query string
- Returns:
- the result of encoding.
- See Also:
- ExternalContext.encodeBookmarkableURL(String, java.util.Map)
 
 - 
encodeRedirectURLpublic String encodeRedirectURL(String baseUrl, Map<String,List<String>> parameters) The default behavior of this method is to call ExternalContext.encodeRedirectURL(String, java.util.Map)on the wrappedExternalContextobject.- Overrides:
- encodeRedirectURLin class- ExternalContext
- Parameters:
- baseUrl- The base URL onto which the query string generated by this method will be appended. The URL may contain query parameters.
- parameters- The collection of Parameter objects, representing name=value pairs that are used to produce a query string
- Returns:
- the result of encoding.
- See Also:
- ExternalContext.encodeRedirectURL(String, java.util.Map)
 
 - 
getFlashpublic Flash getFlash() The default behavior of this method is to call ExternalContext.getFlash()on the wrappedExternalContextobject.- Overrides:
- getFlashin class- ExternalContext
- Returns:
- the Flashfor this application.
- See Also:
- ExternalContext.getFlash()
 
 - 
releasepublic void release() The default behavior of this method is to call ExternalContext.release()on the wrappedExternalContextobject.- Specified by:
- releasein class- ExternalContext
- See Also:
- ExternalContext.release()
 
 
- 
 
-