Class ExternalContextWrapper
- java.lang.Object
-
- javax.faces.context.ExternalContext
-
- javax.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 override
getWrapped()to return the instance being wrapping.- Since:
- 2.0
-
-
Field Summary
-
Fields inherited from class javax.faces.context.ExternalContext
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
-
Constructor Summary
Constructors Constructor Description ExternalContextWrapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddResponseCookie(java.lang.String name, java.lang.String value, java.util.Map<java.lang.String,java.lang.Object> properties)The default behavior of this method is to callExternalContext.addResponseCookie(String, String, Map)on the wrappedExternalContextobject.voidaddResponseHeader(java.lang.String name, java.lang.String value)The default behavior of this method is to callExternalContext.addResponseHeader(String,String)on the wrappedExternalContextobject.voiddispatch(java.lang.String path)The default behavior of this method is to callExternalContext.dispatch(String)on the wrappedExternalContextobject.java.lang.StringencodeActionURL(java.lang.String url)The default behavior of this method is to callExternalContext.encodeActionURL(String)on the wrappedExternalContextobject.java.lang.StringencodeBookmarkableURL(java.lang.String baseUrl, java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters)The default behavior of this method is to callExternalContext.encodeBookmarkableURL(String, java.util.Map)on the wrappedExternalContextobject.java.lang.StringencodeNamespace(java.lang.String name)The default behavior of this method is to callExternalContext.encodeNamespace(String)on the wrappedExternalContextobject.java.lang.StringencodePartialActionURL(java.lang.String url)The default behavior of this method is to callExternalContext.encodePartialActionURL(String)on the wrappedExternalContextobject.java.lang.StringencodeRedirectURL(java.lang.String baseUrl, java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters)The default behavior of this method is to callExternalContext.encodeRedirectURL(String, java.util.Map)on the wrappedExternalContextobject.java.lang.StringencodeResourceURL(java.lang.String url)The default behavior of this method is to callExternalContext.encodeResourceURL(String)on the wrappedExternalContextobject.java.lang.StringgetApplicationContextPath()The default behavior of this method is to callExternalContext.getApplicationContextPath()on the wrappedExternalContextobject.java.util.Map<java.lang.String,java.lang.Object>getApplicationMap()The default behavior of this method is to callExternalContext.getApplicationMap()on the wrappedExternalContextobject.java.lang.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.java.lang.ObjectgetContext()The default behavior of this method is to callExternalContext.getContext()on the wrappedExternalContextobject.java.lang.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.java.lang.StringgetInitParameter(java.lang.String name)The default behavior of this method is to callExternalContext.getInitParameter(String)on the wrappedExternalContextobject.java.util.MapgetInitParameterMap()The default behavior of this method is to callExternalContext.getInitParameterMap()on the wrappedExternalContextobject.java.lang.StringgetMimeType(java.lang.String file)The default behavior of this method is to callExternalContext.getMimeType(String)on the wrappedExternalContextobject.java.lang.StringgetRealPath(java.lang.String path)The default behavior of this method is to callExternalContext.getRealPath(String)on the wrappedExternalContextobject.java.lang.StringgetRemoteUser()The default behavior of this method is to callExternalContext.getRemoteUser()on the wrappedExternalContextobject.java.lang.ObjectgetRequest()The default behavior of this method is to callExternalContext.getRequest()on the wrappedExternalContextobject.java.lang.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.java.lang.StringgetRequestContentType()The default behavior of this method is to callExternalContext.getRequestContentType()on the wrappedExternalContextobject.java.lang.StringgetRequestContextPath()The default behavior of this method is to callExternalContext.getRequestContextPath()on the wrappedExternalContextobject.java.util.Map<java.lang.String,java.lang.Object>getRequestCookieMap()The default behavior of this method is to callExternalContext.getRequestCookieMap()on the wrappedExternalContextobject.java.util.Map<java.lang.String,java.lang.String>getRequestHeaderMap()The default behavior of this method is to callExternalContext.getRequestHeaderMap()on the wrappedExternalContextobject.java.util.Map<java.lang.String,java.lang.String[]>getRequestHeaderValuesMap()The default behavior of this method is to callExternalContext.getRequestHeaderValuesMap()on the wrappedExternalContextobject.java.util.LocalegetRequestLocale()The default behavior of this method is to callExternalContext.getRequestLocale()on the wrappedExternalContextobject.java.util.Iterator<java.util.Locale>getRequestLocales()The default behavior of this method is to callExternalContext.getRequestLocales()on the wrappedExternalContextobject.java.util.Map<java.lang.String,java.lang.Object>getRequestMap()The default behavior of this method is to callExternalContext.getRequestMap()on the wrappedExternalContextobject.java.util.Map<java.lang.String,java.lang.String>getRequestParameterMap()The default behavior of this method is to callExternalContext.getRequestParameterMap()on the wrappedExternalContextobject.java.util.Iterator<java.lang.String>getRequestParameterNames()The default behavior of this method is to callExternalContext.getRequestParameterNames()on the wrappedExternalContextobject.java.util.Map<java.lang.String,java.lang.String[]>getRequestParameterValuesMap()The default behavior of this method is to callExternalContext.getRequestParameterValuesMap()on the wrappedExternalContextobject.java.lang.StringgetRequestPathInfo()The default behavior of this method is to callExternalContext.getRequestPathInfo()on the wrappedExternalContextobject.java.lang.StringgetRequestScheme()The default behavior of this method is to callExternalContext.getRequestScheme()on the wrappedExternalContextobject.java.lang.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.java.lang.StringgetRequestServletPath()The default behavior of this method is to callExternalContext.getRequestServletPath()on the wrappedExternalContextobject.java.net.URLgetResource(java.lang.String path)The default behavior of this method is to callExternalContext.getResource(String)on the wrappedExternalContextobject.java.io.InputStreamgetResourceAsStream(java.lang.String path)The default behavior of this method is to callExternalContext.getResourceAsStream(String)on the wrappedExternalContextobject.java.util.Set<java.lang.String>getResourcePaths(java.lang.String path)The default behavior of this method is to callExternalContext.getResourcePaths(String)on the wrappedExternalContextobject.java.lang.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.java.lang.StringgetResponseCharacterEncoding()The default behavior of this method is to callExternalContext.getResponseCharacterEncoding()on the wrappedExternalContextobject.java.lang.StringgetResponseContentType()The default behavior of this method is to callExternalContext.getResponseContentType()on the wrappedExternalContextobject.java.io.OutputStreamgetResponseOutputStream()The default behavior of this method is to callExternalContext.getResponseOutputStream()on the wrappedExternalContextobject.java.io.WritergetResponseOutputWriter()The default behavior of this method is to callExternalContext.getResponseOutputWriter()on the wrappedExternalContextobject.java.lang.ObjectgetSession(boolean create)The default behavior of this method is to callExternalContext.getSession(boolean)on the wrappedExternalContextobject.java.lang.StringgetSessionId(boolean create)The default behavior of this method is to callExternalContext.getSessionId(boolean)on the wrappedExternalContextobject.java.util.Map<java.lang.String,java.lang.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.java.security.PrincipalgetUserPrincipal()The default behavior of this method is to callExternalContext.getUserPrincipal()on the wrappedExternalContextobject.abstract 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(java.lang.String role)The default behavior of this method is to callExternalContext.isUserInRole(String)on the wrappedExternalContextobject.voidlog(java.lang.String message)The default behavior of this method is to callExternalContext.log(String)on the wrappedExternalContextobject.voidlog(java.lang.String message, java.lang.Throwable exception)The default behavior of this method is to callExternalContext.log(String, Throwable)on the wrappedExternalContextobject.voidredirect(java.lang.String url)The default behavior of this method is to callExternalContext.redirect(String)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, java.lang.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(javax.faces.lifecycle.ClientWindow)on the wrappedExternalContextobject.voidsetRequest(java.lang.Object request)The default behavior of this method is to callExternalContext.setRequest(Object)on the wrappedExternalContextobject.voidsetRequestCharacterEncoding(java.lang.String encoding)The default behavior of this method is to callExternalContext.setRequestCharacterEncoding(String)on the wrappedExternalContextobject.voidsetResponse(java.lang.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(java.lang.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(java.lang.String contentType)The default behavior of this method is to callExternalContext.setResponseContentType(String)on the wrappedExternalContextobject.voidsetResponseHeader(java.lang.String name, java.lang.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.
-
-
-
Method Detail
-
getWrapped
public abstract 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 interfaceFacesWrapper<ExternalContext>- Returns:
- the wrapped
ExternalContextinstance - See Also:
FacesWrapper.getWrapped()
-
dispatch
public void dispatch(java.lang.String path) throws java.io.IOExceptionThe default behavior of this method is to call
ExternalContext.dispatch(String)on the wrappedExternalContextobject.- Specified by:
dispatchin classExternalContext- Parameters:
path- Context relative path to the specified resource, which must start with a slash ("/") character- Throws:
java.io.IOException- if an input/output error occurs- See Also:
ExternalContext.dispatch(String)
-
encodeActionURL
public java.lang.String encodeActionURL(java.lang.String url)
The default behavior of this method is to call
ExternalContext.encodeActionURL(String)on the wrappedExternalContextobject.- Specified by:
encodeActionURLin classExternalContext- Parameters:
url- The input URL to be encoded- See Also:
ExternalContext.encodeActionURL(String)
-
encodeNamespace
public java.lang.String encodeNamespace(java.lang.String name)
The default behavior of this method is to call
ExternalContext.encodeNamespace(String)on the wrappedExternalContextobject.- Specified by:
encodeNamespacein classExternalContext- Parameters:
name- Name to be encoded- See Also:
ExternalContext.encodeNamespace(String)
-
encodePartialActionURL
public java.lang.String encodePartialActionURL(java.lang.String url)
The default behavior of this method is to call
ExternalContext.encodePartialActionURL(String)on the wrappedExternalContextobject.- Overrides:
encodePartialActionURLin classExternalContext- Parameters:
url- The input URL to be encoded- See Also:
ExternalContext.encodePartialActionURL(String)
-
encodeResourceURL
public java.lang.String encodeResourceURL(java.lang.String url)
The default behavior of this method is to call
ExternalContext.encodeResourceURL(String)on the wrappedExternalContextobject.- Specified by:
encodeResourceURLin classExternalContext- Parameters:
url- The input URL to be encoded- See Also:
ExternalContext.encodeResourceURL(String)
-
getApplicationMap
public java.util.Map<java.lang.String,java.lang.Object> getApplicationMap()
The default behavior of this method is to call
ExternalContext.getApplicationMap()on the wrappedExternalContextobject.- Specified by:
getApplicationMapin classExternalContext- See Also:
ExternalContext.getApplicationMap()
-
getApplicationContextPath
public java.lang.String getApplicationContextPath()
The default behavior of this method is to call
ExternalContext.getApplicationContextPath()on the wrappedExternalContextobject.- Overrides:
getApplicationContextPathin classExternalContext- See Also:
ExternalContext.getApplicationContextPath()
-
getAuthType
public java.lang.String getAuthType()
The default behavior of this method is to call
ExternalContext.getAuthType()on the wrappedExternalContextobject.- Specified by:
getAuthTypein classExternalContext- See Also:
ExternalContext.getAuthType()
-
getContext
public java.lang.Object getContext()
The default behavior of this method is to call
ExternalContext.getContext()on the wrappedExternalContextobject.- Specified by:
getContextin classExternalContext- See Also:
ExternalContext.getContext()
-
getInitParameter
public java.lang.String getInitParameter(java.lang.String name)
The default behavior of this method is to call
ExternalContext.getInitParameter(String)on the wrappedExternalContextobject.- Specified by:
getInitParameterin classExternalContext- Parameters:
name- Name of the requested initialization parameter- See Also:
ExternalContext.getInitParameter(String)
-
getInitParameterMap
public java.util.Map getInitParameterMap()
The default behavior of this method is to call
ExternalContext.getInitParameterMap()on the wrappedExternalContextobject.- Specified by:
getInitParameterMapin classExternalContext- See Also:
ExternalContext.getInitParameterMap()
-
getRemoteUser
public java.lang.String getRemoteUser()
The default behavior of this method is to call
ExternalContext.getRemoteUser()on the wrappedExternalContextobject.- Specified by:
getRemoteUserin classExternalContext- See Also:
ExternalContext.getRemoteUser()
-
getRequest
public java.lang.Object getRequest()
The default behavior of this method is to call
ExternalContext.getRequest()on the wrappedExternalContextobject.- Specified by:
getRequestin classExternalContext- See Also:
ExternalContext.getRequest()
-
getRequestContextPath
public java.lang.String getRequestContextPath()
The default behavior of this method is to call
ExternalContext.getRequestContextPath()on the wrappedExternalContextobject.- Specified by:
getRequestContextPathin classExternalContext- See Also:
ExternalContext.getRequestContextPath()
-
getRequestCookieMap
public java.util.Map<java.lang.String,java.lang.Object> getRequestCookieMap()
The default behavior of this method is to call
ExternalContext.getRequestCookieMap()on the wrappedExternalContextobject.- Specified by:
getRequestCookieMapin classExternalContext- See Also:
ExternalContext.getRequestCookieMap()
-
getRequestHeaderMap
public java.util.Map<java.lang.String,java.lang.String> getRequestHeaderMap()
The default behavior of this method is to call
ExternalContext.getRequestHeaderMap()on the wrappedExternalContextobject.- Specified by:
getRequestHeaderMapin classExternalContext- See Also:
ExternalContext.getRequestHeaderMap()
-
getRequestHeaderValuesMap
public java.util.Map<java.lang.String,java.lang.String[]> getRequestHeaderValuesMap()
The default behavior of this method is to call
ExternalContext.getRequestHeaderValuesMap()on the wrappedExternalContextobject.- Specified by:
getRequestHeaderValuesMapin classExternalContext- See Also:
ExternalContext.getRequestHeaderValuesMap()
-
getRequestLocale
public java.util.Locale getRequestLocale()
The default behavior of this method is to call
ExternalContext.getRequestLocale()on the wrappedExternalContextobject.- Specified by:
getRequestLocalein classExternalContext- See Also:
ExternalContext.getRequestLocale()
-
getRequestLocales
public java.util.Iterator<java.util.Locale> getRequestLocales()
The default behavior of this method is to call
ExternalContext.getRequestLocales()on the wrappedExternalContextobject.- Specified by:
getRequestLocalesin classExternalContext- See Also:
ExternalContext.getRequestLocales()
-
getRequestMap
public java.util.Map<java.lang.String,java.lang.Object> getRequestMap()
The default behavior of this method is to call
ExternalContext.getRequestMap()on the wrappedExternalContextobject.- Specified by:
getRequestMapin classExternalContext- See Also:
ExternalContext.getRequestMap()
-
getRequestParameterMap
public java.util.Map<java.lang.String,java.lang.String> getRequestParameterMap()
The default behavior of this method is to call
ExternalContext.getRequestParameterMap()on the wrappedExternalContextobject.- Specified by:
getRequestParameterMapin classExternalContext- See Also:
ExternalContext.getRequestParameterMap()
-
getRequestParameterNames
public java.util.Iterator<java.lang.String> getRequestParameterNames()
The default behavior of this method is to call
ExternalContext.getRequestParameterNames()on the wrappedExternalContextobject.- Specified by:
getRequestParameterNamesin classExternalContext- See Also:
ExternalContext.getRequestParameterNames()
-
getRequestParameterValuesMap
public java.util.Map<java.lang.String,java.lang.String[]> getRequestParameterValuesMap()
The default behavior of this method is to call
ExternalContext.getRequestParameterValuesMap()on the wrappedExternalContextobject.- Specified by:
getRequestParameterValuesMapin classExternalContext- See Also:
ExternalContext.getRequestParameterValuesMap()
-
getRequestPathInfo
public java.lang.String getRequestPathInfo()
The default behavior of this method is to call
ExternalContext.getRequestPathInfo()on the wrappedExternalContextobject.- Specified by:
getRequestPathInfoin classExternalContext- See Also:
ExternalContext.getRequestPathInfo()
-
getRequestServletPath
public java.lang.String getRequestServletPath()
The default behavior of this method is to call
ExternalContext.getRequestServletPath()on the wrappedExternalContextobject.- Specified by:
getRequestServletPathin classExternalContext- See Also:
ExternalContext.getRequestServletPath()
-
getResource
public java.net.URL getResource(java.lang.String path) throws java.net.MalformedURLExceptionThe default behavior of this method is to call
ExternalContext.getResource(String)on the wrappedExternalContextobject.- Specified by:
getResourcein classExternalContext- Parameters:
path- The path to the requested resource, which must start with a slash ("/" character- Throws:
java.net.MalformedURLException- if the specified path is not in the correct form- See Also:
ExternalContext.getResource(String)
-
getResourceAsStream
public java.io.InputStream getResourceAsStream(java.lang.String path)
The default behavior of this method is to call
ExternalContext.getResourceAsStream(String)on the wrappedExternalContextobject.- Specified by:
getResourceAsStreamin classExternalContext- Parameters:
path- The path to the requested resource, which must start with a slash ("/" character- See Also:
ExternalContext.getResourceAsStream(String)
-
getResourcePaths
public java.util.Set<java.lang.String> getResourcePaths(java.lang.String path)
The default behavior of this method is to call
ExternalContext.getResourcePaths(String)on the wrappedExternalContextobject.- Specified by:
getResourcePathsin classExternalContext- Parameters:
path- Partial path used to match resources, which must start with a slash ("/") character- See Also:
ExternalContext.getResourcePaths(String)
-
getResponse
public java.lang.Object getResponse()
The default behavior of this method is to call
ExternalContext.getResponse()on the wrappedExternalContextobject.- Specified by:
getResponsein classExternalContext- See Also:
ExternalContext.getResponse()
-
getSession
public java.lang.Object getSession(boolean create)
The default behavior of this method is to call
ExternalContext.getSession(boolean)on the wrappedExternalContextobject.- Specified by:
getSessionin classExternalContext- Parameters:
create- Flag indicating whether or not a new session should be created if there is no session associated with the current request- See Also:
ExternalContext.getSession(boolean)
-
getSessionId
public java.lang.String getSessionId(boolean create)
The default behavior of this method is to call
ExternalContext.getSessionId(boolean)on the wrappedExternalContextobject.- Overrides:
getSessionIdin classExternalContext- Parameters:
create- Flag indicating whether or not a new session should be created if there is no session associated with the current request- Since:
- 2.2
- See Also:
ExternalContext.getSessionId(boolean)
-
getSessionMap
public java.util.Map<java.lang.String,java.lang.Object> getSessionMap()
The default behavior of this method is to call
ExternalContext.getSessionMap()on the wrappedExternalContextobject.- Specified by:
getSessionMapin classExternalContext- See Also:
ExternalContext.getSessionMap()
-
getSessionMaxInactiveInterval
public int getSessionMaxInactiveInterval()
The default behavior of this method is to call
ExternalContext.getSessionMaxInactiveInterval()on the wrappedExternalContextobject.- Overrides:
getSessionMaxInactiveIntervalin classExternalContext- See Also:
ExternalContext.getSessionMaxInactiveInterval()
-
setSessionMaxInactiveInterval
public void setSessionMaxInactiveInterval(int interval)
The default behavior of this method is to call
ExternalContext.setSessionMaxInactiveInterval(int)on the wrappedExternalContextobject.- Overrides:
setSessionMaxInactiveIntervalin classExternalContext- See Also:
ExternalContext.setSessionMaxInactiveInterval(int)
-
setClientWindow
public void setClientWindow(ClientWindow window)
The default behavior of this method is to call
ExternalContext.setClientWindow(javax.faces.lifecycle.ClientWindow)on the wrappedExternalContextobject.- Overrides:
setClientWindowin classExternalContext- Parameters:
window- the window associated with this request.- Since:
- 2.2
-
getUserPrincipal
public java.security.Principal getUserPrincipal()
The default behavior of this method is to call
ExternalContext.getUserPrincipal()on the wrappedExternalContextobject.- Specified by:
getUserPrincipalin classExternalContext- See Also:
ExternalContext.getUserPrincipal()
-
getClientWindow
public ClientWindow getClientWindow()
The default behavior of this method is to call
ExternalContext.getClientWindow()on the wrappedExternalContextobject.- Overrides:
getClientWindowin classExternalContext- Since:
- 2.2
- See Also:
ExternalContext.getClientWindow()
-
isUserInRole
public boolean isUserInRole(java.lang.String role)
The default behavior of this method is to call
ExternalContext.isUserInRole(String)on the wrappedExternalContextobject.- Specified by:
isUserInRolein classExternalContext- Parameters:
role- Logical role name to be checked- See Also:
ExternalContext.isUserInRole(String)
-
log
public void log(java.lang.String message)
The default behavior of this method is to call
ExternalContext.log(String)on the wrappedExternalContextobject.- Specified by:
login classExternalContext- Parameters:
message- Message to be logged- See Also:
ExternalContext.log(String)
-
log
public void log(java.lang.String message, java.lang.Throwable exception)The default behavior of this method is to call
ExternalContext.log(String, Throwable)on the wrappedExternalContextobject.- Specified by:
login classExternalContext- Parameters:
message- Message to be loggedexception- Exception to be logged- See Also:
ExternalContext.log(String, Throwable)
-
redirect
public void redirect(java.lang.String url) throws java.io.IOExceptionThe default behavior of this method is to call
ExternalContext.redirect(String)on the wrappedExternalContextobject.- Specified by:
redirectin classExternalContext- Parameters:
url- Absolute URL to which the client should be redirected- Throws:
java.io.IOException- if an input/output error occurs- See Also:
ExternalContext.redirect(String)
-
addResponseCookie
public void addResponseCookie(java.lang.String name, java.lang.String value, java.util.Map<java.lang.String,java.lang.Object> properties)The default behavior of this method is to call
ExternalContext.addResponseCookie(String, String, Map)on the wrappedExternalContextobject.- Overrides:
addResponseCookiein classExternalContext- Parameters:
name- To be passed as the first argument to theCookieconstructor.value- To be passed as the second argument to theCookieconstructor.properties- AMapcontaing key/value pairs to be passed as arguments to the setter methods as described above.- See Also:
ExternalContext.addResponseCookie(String, String, Map)
-
getMimeType
public java.lang.String getMimeType(java.lang.String file)
The default behavior of this method is to call
ExternalContext.getMimeType(String)on the wrappedExternalContextobject.- Overrides:
getMimeTypein classExternalContext- Parameters:
file- The file for which the mime type should be obtained.- See Also:
ExternalContext.getMimeType(String)
-
getContextName
public java.lang.String getContextName()
The default behavior of this method is to call
ExternalContext.getContextName()on the wrappedExternalContextobject.- Overrides:
getContextNamein classExternalContext- See Also:
ExternalContext.getContextName()
-
setRequest
public void setRequest(java.lang.Object request)
The default behavior of this method is to call
ExternalContext.setRequest(Object)on the wrappedExternalContextobject.- Overrides:
setRequestin classExternalContext- See Also:
ExternalContext.setRequest(Object)
-
getRequestScheme
public java.lang.String getRequestScheme()
The default behavior of this method is to call
ExternalContext.getRequestScheme()on the wrappedExternalContextobject.- Overrides:
getRequestSchemein classExternalContext- See Also:
ExternalContext.getRequestScheme()
-
getRequestServerName
public java.lang.String getRequestServerName()
The default behavior of this method is to call
ExternalContext.getRequestServerName()on the wrappedExternalContextobject.- Overrides:
getRequestServerNamein classExternalContext- See Also:
ExternalContext.getRequestServerName()
-
getRequestServerPort
public int getRequestServerPort()
The default behavior of this method is to call
ExternalContext.getRequestServerPort()on the wrappedExternalContextobject.- Overrides:
getRequestServerPortin classExternalContext- See Also:
ExternalContext.getRequestServerPort()
-
setRequestCharacterEncoding
public void setRequestCharacterEncoding(java.lang.String encoding) throws java.io.UnsupportedEncodingExceptionThe default behavior of this method is to call
ExternalContext.setRequestCharacterEncoding(String)on the wrappedExternalContextobject.- Overrides:
setRequestCharacterEncodingin classExternalContext- Throws:
java.io.UnsupportedEncodingException- if this is not a valid encoding- See Also:
ExternalContext.setRequestCharacterEncoding(String)
-
getRealPath
public java.lang.String getRealPath(java.lang.String path)
The default behavior of this method is to call
ExternalContext.getRealPath(String)on the wrappedExternalContextobject.- Overrides:
getRealPathin classExternalContext- Parameters:
path- The context of the requested initialization parameter- See Also:
ExternalContext.getRealPath(String)
-
getRequestCharacterEncoding
public java.lang.String getRequestCharacterEncoding()
The default behavior of this method is to call
ExternalContext.getRequestCharacterEncoding()on the wrappedExternalContextobject.- Overrides:
getRequestCharacterEncodingin classExternalContext- See Also:
ExternalContext.getRequestCharacterEncoding()
-
getRequestContentType
public java.lang.String getRequestContentType()
The default behavior of this method is to call
ExternalContext.getRequestContentType()on the wrappedExternalContextobject.- Overrides:
getRequestContentTypein classExternalContext- See Also:
ExternalContext.getRequestContentType()
-
getRequestContentLength
public int getRequestContentLength()
The default behavior of this method is to call
ExternalContext.getRequestContentLength()on the wrappedExternalContextobject.- Overrides:
getRequestContentLengthin classExternalContext- See Also:
ExternalContext.getRequestContentLength()
-
getResponseCharacterEncoding
public java.lang.String getResponseCharacterEncoding()
The default behavior of this method is to call
ExternalContext.getResponseCharacterEncoding()on the wrappedExternalContextobject.- Overrides:
getResponseCharacterEncodingin classExternalContext- See Also:
ExternalContext.getResponseCharacterEncoding()
-
getResponseContentType
public java.lang.String getResponseContentType()
The default behavior of this method is to call
ExternalContext.getResponseContentType()on the wrappedExternalContextobject.- Overrides:
getResponseContentTypein classExternalContext- See Also:
ExternalContext.getResponseContentType()
-
setResponse
public void setResponse(java.lang.Object response)
The default behavior of this method is to call
ExternalContext.setResponse(Object)on the wrappedExternalContextobject.- Overrides:
setResponsein classExternalContext- See Also:
ExternalContext.setResponse(Object)
-
getResponseOutputStream
public java.io.OutputStream getResponseOutputStream() throws java.io.IOExceptionThe default behavior of this method is to call
ExternalContext.getResponseOutputStream()on the wrappedExternalContextobject.- Overrides:
getResponseOutputStreamin classExternalContext- Throws:
java.io.IOException- See Also:
ExternalContext.getResponseOutputStream()
-
getResponseOutputWriter
public java.io.Writer getResponseOutputWriter() throws java.io.IOExceptionThe default behavior of this method is to call
ExternalContext.getResponseOutputWriter()on the wrappedExternalContextobject.- Overrides:
getResponseOutputWriterin classExternalContext- Throws:
java.io.IOException- See Also:
ExternalContext.getResponseOutputWriter()
-
setResponseCharacterEncoding
public void setResponseCharacterEncoding(java.lang.String encoding)
The default behavior of this method is to call
ExternalContext.getResponseCharacterEncoding()on the wrappedExternalContextobject.- Overrides:
setResponseCharacterEncodingin classExternalContext- See Also:
ExternalContext.getResponseCharacterEncoding()
-
setResponseContentType
public void setResponseContentType(java.lang.String contentType)
The default behavior of this method is to call
ExternalContext.setResponseContentType(String)on the wrappedExternalContextobject.- Overrides:
setResponseContentTypein classExternalContext- Parameters:
contentType- The content type to be set as the contentType of the response.- See Also:
ExternalContext.setResponseContentType(String)
-
invalidateSession
public void invalidateSession()
The default behavior of this method is to call
ExternalContext.invalidateSession()on the wrappedExternalContextobject.- Overrides:
invalidateSessionin classExternalContext- See Also:
ExternalContext.invalidateSession()
-
setResponseHeader
public void setResponseHeader(java.lang.String name, java.lang.String value)The default behavior of this method is to call
ExternalContext.setResponseHeader(String,String)on the wrappedExternalContextobject.- Overrides:
setResponseHeaderin classExternalContext- Parameters:
name- The name of the response header.value- The value of the response header.- See Also:
ExternalContext.setResponseHeader(String,String)
-
addResponseHeader
public void addResponseHeader(java.lang.String name, java.lang.String value)The default behavior of this method is to call
ExternalContext.addResponseHeader(String,String)on the wrappedExternalContextobject.- Overrides:
addResponseHeaderin classExternalContext- Parameters:
name- The name of the response header.value- The value of the response header.- See Also:
ExternalContext.addResponseHeader(String,String)
-
setResponseBufferSize
public void setResponseBufferSize(int size)
The default behavior of this method is to call
ExternalContext.setResponseBufferSize(int)on the wrappedExternalContextobject.- Overrides:
setResponseBufferSizein classExternalContext- Parameters:
size- the new buffer size- See Also:
ExternalContext.setResponseBufferSize(int)
-
getResponseBufferSize
public int getResponseBufferSize()
The default behavior of this method is to call
ExternalContext.getResponseBufferSize()on the wrappedExternalContextobject.- Overrides:
getResponseBufferSizein classExternalContext- See Also:
ExternalContext.getResponseBufferSize()
-
isResponseCommitted
public boolean isResponseCommitted()
The default behavior of this method is to call
ExternalContext.isResponseCommitted()on the wrappedExternalContextobject.- Overrides:
isResponseCommittedin classExternalContext- See Also:
ExternalContext.isResponseCommitted()
-
isSecure
public boolean isSecure()
The default behavior of this method is to call
ExternalContext.isSecure()on the wrappedExternalContextobject.- Overrides:
isSecurein classExternalContext
-
responseReset
public void responseReset()
The default behavior of this method is to call
ExternalContext.responseReset()on the wrappedExternalContextobject.- Overrides:
responseResetin classExternalContext- See Also:
ExternalContext.responseReset()
-
responseSendError
public void responseSendError(int statusCode, java.lang.String message) throws java.io.IOExceptionThe default behavior of this method is to call
ExternalContext.responseSendError(int,String)on the wrappedExternalContextobject.- Overrides:
responseSendErrorin classExternalContext- Parameters:
statusCode- an HTTP status codemessage- an option message to detail the cause of the code- Throws:
java.io.IOException- See Also:
ExternalContext.responseSendError(int,String)
-
setResponseStatus
public void setResponseStatus(int statusCode)
The default behavior of this method is to call
ExternalContext.setResponseStatus(int)on the wrappedExternalContextobject.- Overrides:
setResponseStatusin classExternalContext- Parameters:
statusCode- an HTTP status code- See Also:
ExternalContext.setResponseStatus(int)
-
responseFlushBuffer
public void responseFlushBuffer() throws java.io.IOExceptionThe default behavior of this method is to call
ExternalContext.responseFlushBuffer()on the wrappedExternalContextobject.- Overrides:
responseFlushBufferin classExternalContext- Throws:
java.io.IOException- See Also:
ExternalContext.responseFlushBuffer()
-
setResponseContentLength
public void setResponseContentLength(int length)
The default behavior of this method is to call
ExternalContext.setResponseContentLength(int)on the wrappedExternalContextobject.- Overrides:
setResponseContentLengthin classExternalContext- See Also:
ExternalContext.setResponseContentLength(int)
-
encodeBookmarkableURL
public java.lang.String encodeBookmarkableURL(java.lang.String baseUrl, java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters)The default behavior of this method is to call
ExternalContext.encodeBookmarkableURL(String, java.util.Map)on the wrappedExternalContextobject.- Overrides:
encodeBookmarkableURLin classExternalContext- 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- See Also:
ExternalContext.encodeBookmarkableURL(String, java.util.Map)
-
encodeRedirectURL
public java.lang.String encodeRedirectURL(java.lang.String baseUrl, java.util.Map<java.lang.String,java.util.List<java.lang.String>> parameters)The default behavior of this method is to call
ExternalContext.encodeRedirectURL(String, java.util.Map)on the wrappedExternalContextobject.- Overrides:
encodeRedirectURLin classExternalContext- 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- See Also:
ExternalContext.encodeRedirectURL(String, java.util.Map)
-
getFlash
public Flash getFlash()
The default behavior of this method is to call
ExternalContext.getFlash()on the wrappedExternalContextobject.- Overrides:
getFlashin classExternalContext- See Also:
ExternalContext.getFlash()
-
-