Class ExternalContextWrapper
- All Implemented Interfaces:
FacesWrapper<ExternalContext>
Provides
a simple implementation of ExternalContext
that can
be subclassed by developers wishing to provide specialized behavior
to an existing ExternalContext
instance. The default
implementation of all methods is to call through to the wrapped
ExternalContext
instance.
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
The default behavior of this method is to callExternalContext.addResponseCookie(String, String, Map)
on the wrappedExternalContext
object.void
addResponseHeader
(String name, String value) The default behavior of this method is to callExternalContext.addResponseHeader(String,String)
on the wrappedExternalContext
object.void
The default behavior of this method is to callExternalContext.dispatch(String)
on the wrappedExternalContext
object.encodeActionURL
(String url) The default behavior of this method is to callExternalContext.encodeActionURL(String)
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.encodeBookmarkableURL(String, java.util.Map)
on the wrappedExternalContext
object.encodeNamespace
(String name) The default behavior of this method is to callExternalContext.encodeNamespace(String)
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.encodePartialActionURL(String)
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.encodeRedirectURL(String, java.util.Map)
on the wrappedExternalContext
object.encodeResourceURL
(String url) The default behavior of this method is to callExternalContext.encodeResourceURL(String)
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getApplicationContextPath()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getApplicationMap()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getAuthType()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getClientWindow()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getContext()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getContextName()
on the wrappedExternalContext
object.getFlash()
The default behavior of this method is to callExternalContext.getFlash()
on the wrappedExternalContext
object.</p?getInitParameter
(String name) The default behavior of this method is to callExternalContext.getInitParameter(String)
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getInitParameterMap()
on the wrappedExternalContext
object.getMimeType
(String file) The default behavior of this method is to callExternalContext.getMimeType(String)
on the wrappedExternalContext
object.getRealPath
(String path) The default behavior of this method is to callExternalContext.getRealPath(String)
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRemoteUser()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequest()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestCharacterEncoding()
on the wrappedExternalContext
object.int
The default behavior of this method is to callExternalContext.getRequestContentLength()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestContentType()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestContextPath()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestCookieMap()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestHeaderMap()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestHeaderValuesMap()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestLocale()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestLocales()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestMap()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestParameterMap()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestParameterNames()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestParameterValuesMap()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestPathInfo()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestScheme()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestServerName()
on the wrappedExternalContext
object.int
The default behavior of this method is to callExternalContext.getRequestServerPort()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getRequestServletPath()
on the wrappedExternalContext
object.getResource
(String path) The default behavior of this method is to callExternalContext.getResource(String)
on the wrappedExternalContext
object.getResourceAsStream
(String path) The default behavior of this method is to callExternalContext.getResourceAsStream(String)
on the wrappedExternalContext
object.getResourcePaths
(String path) The default behavior of this method is to callExternalContext.getResourcePaths(String)
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getResponse()
on the wrappedExternalContext
object.int
The default behavior of this method is to callExternalContext.getResponseBufferSize()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getResponseCharacterEncoding()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getResponseContentType()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getResponseOutputStream()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getResponseOutputWriter()
on the wrappedExternalContext
object.getSession
(boolean create) The default behavior of this method is to callExternalContext.getSession(boolean)
on the wrappedExternalContext
object.getSessionId
(boolean create) The default behavior of this method is to callExternalContext.getSessionId(boolean)
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getSessionMap()
on the wrappedExternalContext
object.int
The default behavior of this method is to callExternalContext.getSessionMaxInactiveInterval()
on the wrappedExternalContext
object.The default behavior of this method is to callExternalContext.getUserPrincipal()
on the wrappedExternalContext
object.abstract ExternalContext
A class that implements this interface uses this method to return an instance of the class being wrapped.void
The default behavior of this method is to callExternalContext.invalidateSession()
on the wrappedExternalContext
object.boolean
The default behavior of this method is to callExternalContext.isResponseCommitted()
on the wrappedExternalContext
object.boolean
isSecure()
The default behavior of this method is to callExternalContext.isSecure()
on the wrappedExternalContext
object.boolean
isUserInRole
(String role) The default behavior of this method is to callExternalContext.isUserInRole(String)
on the wrappedExternalContext
object.void
The default behavior of this method is to callExternalContext.log(String)
on the wrappedExternalContext
object.void
The default behavior of this method is to callExternalContext.log(String, Throwable)
on the wrappedExternalContext
object.void
The default behavior of this method is to callExternalContext.redirect(String)
on the wrappedExternalContext
object.void
The default behavior of this method is to callExternalContext.responseFlushBuffer()
on the wrappedExternalContext
object.void
The default behavior of this method is to callExternalContext.responseReset()
on the wrappedExternalContext
object.void
responseSendError
(int statusCode, String message) The default behavior of this method is to callExternalContext.responseSendError(int,String)
on the wrappedExternalContext
object.void
setClientWindow
(ClientWindow window) The default behavior of this method is to callExternalContext.setClientWindow(javax.faces.lifecycle.ClientWindow)
on the wrappedExternalContext
object.void
setRequest
(Object request) The default behavior of this method is to callExternalContext.setRequest(Object)
on the wrappedExternalContext
object.void
setRequestCharacterEncoding
(String encoding) The default behavior of this method is to callExternalContext.setRequestCharacterEncoding(String)
on the wrappedExternalContext
object.void
setResponse
(Object response) The default behavior of this method is to callExternalContext.setResponse(Object)
on the wrappedExternalContext
object.void
setResponseBufferSize
(int size) The default behavior of this method is to callExternalContext.setResponseBufferSize(int)
on the wrappedExternalContext
object.void
setResponseCharacterEncoding
(String encoding) The default behavior of this method is to callExternalContext.getResponseCharacterEncoding()
on the wrappedExternalContext
object.void
setResponseContentLength
(int length) The default behavior of this method is to callExternalContext.setResponseContentLength(int)
on the wrappedExternalContext
object.void
setResponseContentType
(String contentType) The default behavior of this method is to callExternalContext.setResponseContentType(String)
on the wrappedExternalContext
object.void
setResponseHeader
(String name, String value) The default behavior of this method is to callExternalContext.setResponseHeader(String,String)
on the wrappedExternalContext
object.void
setResponseStatus
(int statusCode) The default behavior of this method is to callExternalContext.setResponseStatus(int)
on the wrappedExternalContext
object.void
setSessionMaxInactiveInterval
(int interval) The default behavior of this method is to callExternalContext.setSessionMaxInactiveInterval(int)
on the wrappedExternalContext
object.
-
Constructor Details
-
ExternalContextWrapper
public ExternalContextWrapper()
-
-
Method Details
-
getWrapped
Description copied from interface:FacesWrapper
A class that implements this interface uses this method to return an instance of the class being wrapped.
- Specified by:
getWrapped
in interfaceFacesWrapper<ExternalContext>
- Returns:
- the wrapped
ExternalContext
instance - See Also:
-
dispatch
The default behavior of this method is to call
ExternalContext.dispatch(String)
on the wrappedExternalContext
object.- Specified by:
dispatch
in classExternalContext
- 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:
-
encodeActionURL
The default behavior of this method is to call
ExternalContext.encodeActionURL(String)
on the wrappedExternalContext
object.- Specified by:
encodeActionURL
in classExternalContext
- Parameters:
url
- The input URL to be encoded- See Also:
-
encodeNamespace
The default behavior of this method is to call
ExternalContext.encodeNamespace(String)
on the wrappedExternalContext
object.- Specified by:
encodeNamespace
in classExternalContext
- Parameters:
name
- Name to be encoded- See Also:
-
encodePartialActionURL
The default behavior of this method is to call
ExternalContext.encodePartialActionURL(String)
on the wrappedExternalContext
object.- Overrides:
encodePartialActionURL
in classExternalContext
- Parameters:
url
- The input URL to be encoded- See Also:
-
encodeResourceURL
The default behavior of this method is to call
ExternalContext.encodeResourceURL(String)
on the wrappedExternalContext
object.- Specified by:
encodeResourceURL
in classExternalContext
- Parameters:
url
- The input URL to be encoded- See Also:
-
getApplicationMap
The default behavior of this method is to call
ExternalContext.getApplicationMap()
on the wrappedExternalContext
object.- Specified by:
getApplicationMap
in classExternalContext
- See Also:
-
getApplicationContextPath
The default behavior of this method is to call
ExternalContext.getApplicationContextPath()
on the wrappedExternalContext
object.- Overrides:
getApplicationContextPath
in classExternalContext
- See Also:
-
getAuthType
The default behavior of this method is to call
ExternalContext.getAuthType()
on the wrappedExternalContext
object.- Specified by:
getAuthType
in classExternalContext
- See Also:
-
getContext
The default behavior of this method is to call
ExternalContext.getContext()
on the wrappedExternalContext
object.- Specified by:
getContext
in classExternalContext
- See Also:
-
getInitParameter
The default behavior of this method is to call
ExternalContext.getInitParameter(String)
on the wrappedExternalContext
object.- Specified by:
getInitParameter
in classExternalContext
- Parameters:
name
- Name of the requested initialization parameter- See Also:
-
getInitParameterMap
The default behavior of this method is to call
ExternalContext.getInitParameterMap()
on the wrappedExternalContext
object.- Specified by:
getInitParameterMap
in classExternalContext
- See Also:
-
getRemoteUser
The default behavior of this method is to call
ExternalContext.getRemoteUser()
on the wrappedExternalContext
object.- Specified by:
getRemoteUser
in classExternalContext
- See Also:
-
getRequest
The default behavior of this method is to call
ExternalContext.getRequest()
on the wrappedExternalContext
object.- Specified by:
getRequest
in classExternalContext
- See Also:
-
getRequestContextPath
The default behavior of this method is to call
ExternalContext.getRequestContextPath()
on the wrappedExternalContext
object.- Specified by:
getRequestContextPath
in classExternalContext
- See Also:
-
getRequestCookieMap
The default behavior of this method is to call
ExternalContext.getRequestCookieMap()
on the wrappedExternalContext
object.- Specified by:
getRequestCookieMap
in classExternalContext
- See Also:
-
getRequestHeaderMap
The default behavior of this method is to call
ExternalContext.getRequestHeaderMap()
on the wrappedExternalContext
object.- Specified by:
getRequestHeaderMap
in classExternalContext
- See Also:
-
getRequestHeaderValuesMap
The default behavior of this method is to call
ExternalContext.getRequestHeaderValuesMap()
on the wrappedExternalContext
object.- Specified by:
getRequestHeaderValuesMap
in classExternalContext
- See Also:
-
getRequestLocale
The default behavior of this method is to call
ExternalContext.getRequestLocale()
on the wrappedExternalContext
object.- Specified by:
getRequestLocale
in classExternalContext
- See Also:
-
getRequestLocales
The default behavior of this method is to call
ExternalContext.getRequestLocales()
on the wrappedExternalContext
object.- Specified by:
getRequestLocales
in classExternalContext
- See Also:
-
getRequestMap
The default behavior of this method is to call
ExternalContext.getRequestMap()
on the wrappedExternalContext
object.- Specified by:
getRequestMap
in classExternalContext
- See Also:
-
getRequestParameterMap
The default behavior of this method is to call
ExternalContext.getRequestParameterMap()
on the wrappedExternalContext
object.- Specified by:
getRequestParameterMap
in classExternalContext
- See Also:
-
getRequestParameterNames
The default behavior of this method is to call
ExternalContext.getRequestParameterNames()
on the wrappedExternalContext
object.- Specified by:
getRequestParameterNames
in classExternalContext
- See Also:
-
getRequestParameterValuesMap
The default behavior of this method is to call
ExternalContext.getRequestParameterValuesMap()
on the wrappedExternalContext
object.- Specified by:
getRequestParameterValuesMap
in classExternalContext
- See Also:
-
getRequestPathInfo
The default behavior of this method is to call
ExternalContext.getRequestPathInfo()
on the wrappedExternalContext
object.- Specified by:
getRequestPathInfo
in classExternalContext
- See Also:
-
getRequestServletPath
The default behavior of this method is to call
ExternalContext.getRequestServletPath()
on the wrappedExternalContext
object.- Specified by:
getRequestServletPath
in classExternalContext
- See Also:
-
getResource
The default behavior of this method is to call
ExternalContext.getResource(String)
on the wrappedExternalContext
object.- Specified by:
getResource
in classExternalContext
- Parameters:
path
- The path to the requested resource, which must start with a slash ("/" character- Throws:
MalformedURLException
- if the specified path is not in the correct form- See Also:
-
getResourceAsStream
The default behavior of this method is to call
ExternalContext.getResourceAsStream(String)
on the wrappedExternalContext
object.- Specified by:
getResourceAsStream
in classExternalContext
- Parameters:
path
- The path to the requested resource, which must start with a slash ("/" character- See Also:
-
getResourcePaths
The default behavior of this method is to call
ExternalContext.getResourcePaths(String)
on the wrappedExternalContext
object.- Specified by:
getResourcePaths
in classExternalContext
- Parameters:
path
- Partial path used to match resources, which must start with a slash ("/") character- See Also:
-
getResponse
The default behavior of this method is to call
ExternalContext.getResponse()
on the wrappedExternalContext
object.- Specified by:
getResponse
in classExternalContext
- See Also:
-
getSession
The default behavior of this method is to call
ExternalContext.getSession(boolean)
on the wrappedExternalContext
object.- Specified by:
getSession
in 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:
-
getSessionId
The default behavior of this method is to call
ExternalContext.getSessionId(boolean)
on the wrappedExternalContext
object.- Overrides:
getSessionId
in 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:
-
getSessionMap
The default behavior of this method is to call
ExternalContext.getSessionMap()
on the wrappedExternalContext
object.- Specified by:
getSessionMap
in classExternalContext
- See Also:
-
getSessionMaxInactiveInterval
public int getSessionMaxInactiveInterval()The default behavior of this method is to call
ExternalContext.getSessionMaxInactiveInterval()
on the wrappedExternalContext
object.- Overrides:
getSessionMaxInactiveInterval
in classExternalContext
- See Also:
-
setSessionMaxInactiveInterval
public void setSessionMaxInactiveInterval(int interval) The default behavior of this method is to call
ExternalContext.setSessionMaxInactiveInterval(int)
on the wrappedExternalContext
object.- Overrides:
setSessionMaxInactiveInterval
in classExternalContext
- See Also:
-
setClientWindow
The default behavior of this method is to call
ExternalContext.setClientWindow(javax.faces.lifecycle.ClientWindow)
on the wrappedExternalContext
object.- Overrides:
setClientWindow
in classExternalContext
- Parameters:
window
- the window associated with this request.- Since:
- 2.2
-
getUserPrincipal
The default behavior of this method is to call
ExternalContext.getUserPrincipal()
on the wrappedExternalContext
object.- Specified by:
getUserPrincipal
in classExternalContext
- See Also:
-
getClientWindow
The default behavior of this method is to call
ExternalContext.getClientWindow()
on the wrappedExternalContext
object.- Overrides:
getClientWindow
in classExternalContext
- Since:
- 2.2
- See Also:
-
isUserInRole
The default behavior of this method is to call
ExternalContext.isUserInRole(String)
on the wrappedExternalContext
object.- Specified by:
isUserInRole
in classExternalContext
- Parameters:
role
- Logical role name to be checked- See Also:
-
log
The default behavior of this method is to call
ExternalContext.log(String)
on the wrappedExternalContext
object.- Specified by:
log
in classExternalContext
- Parameters:
message
- Message to be logged- See Also:
-
log
The default behavior of this method is to call
ExternalContext.log(String, Throwable)
on the wrappedExternalContext
object.- Specified by:
log
in classExternalContext
- Parameters:
message
- Message to be loggedexception
- Exception to be logged- See Also:
-
redirect
The default behavior of this method is to call
ExternalContext.redirect(String)
on the wrappedExternalContext
object.- Specified by:
redirect
in classExternalContext
- Parameters:
url
- Absolute URL to which the client should be redirected- Throws:
IOException
- if an input/output error occurs- See Also:
-
addResponseCookie
The default behavior of this method is to call
ExternalContext.addResponseCookie(String, String, Map)
on the wrappedExternalContext
object.- Overrides:
addResponseCookie
in classExternalContext
- Parameters:
name
- To be passed as the first argument to theCookie
constructor.value
- To be passed as the second argument to theCookie
constructor.properties
- AMap
containg key/value pairs to be passed as arguments to the setter methods as described above.- See Also:
-
getMimeType
The default behavior of this method is to call
ExternalContext.getMimeType(String)
on the wrappedExternalContext
object.- Overrides:
getMimeType
in classExternalContext
- Parameters:
file
- The file for which the mime type should be obtained.- See Also:
-
getContextName
The default behavior of this method is to call
ExternalContext.getContextName()
on the wrappedExternalContext
object.- Overrides:
getContextName
in classExternalContext
- See Also:
-
setRequest
The default behavior of this method is to call
ExternalContext.setRequest(Object)
on the wrappedExternalContext
object.- Overrides:
setRequest
in classExternalContext
- See Also:
-
getRequestScheme
The default behavior of this method is to call
ExternalContext.getRequestScheme()
on the wrappedExternalContext
object.- Overrides:
getRequestScheme
in classExternalContext
- See Also:
-
getRequestServerName
The default behavior of this method is to call
ExternalContext.getRequestServerName()
on the wrappedExternalContext
object.- Overrides:
getRequestServerName
in classExternalContext
- See Also:
-
getRequestServerPort
public int getRequestServerPort()The default behavior of this method is to call
ExternalContext.getRequestServerPort()
on the wrappedExternalContext
object.- Overrides:
getRequestServerPort
in classExternalContext
- See Also:
-
setRequestCharacterEncoding
The default behavior of this method is to call
ExternalContext.setRequestCharacterEncoding(String)
on the wrappedExternalContext
object.- Overrides:
setRequestCharacterEncoding
in classExternalContext
- Throws:
UnsupportedEncodingException
- if this is not a valid encoding- See Also:
-
getRealPath
The default behavior of this method is to call
ExternalContext.getRealPath(String)
on the wrappedExternalContext
object.- Overrides:
getRealPath
in classExternalContext
- Parameters:
path
- The context of the requested initialization parameter- See Also:
-
getRequestCharacterEncoding
The default behavior of this method is to call
ExternalContext.getRequestCharacterEncoding()
on the wrappedExternalContext
object.- Overrides:
getRequestCharacterEncoding
in classExternalContext
- See Also:
-
getRequestContentType
The default behavior of this method is to call
ExternalContext.getRequestContentType()
on the wrappedExternalContext
object.- Overrides:
getRequestContentType
in classExternalContext
- See Also:
-
getRequestContentLength
public int getRequestContentLength()The default behavior of this method is to call
ExternalContext.getRequestContentLength()
on the wrappedExternalContext
object.- Overrides:
getRequestContentLength
in classExternalContext
- See Also:
-
getResponseCharacterEncoding
The default behavior of this method is to call
ExternalContext.getResponseCharacterEncoding()
on the wrappedExternalContext
object.- Overrides:
getResponseCharacterEncoding
in classExternalContext
- See Also:
-
getResponseContentType
The default behavior of this method is to call
ExternalContext.getResponseContentType()
on the wrappedExternalContext
object.- Overrides:
getResponseContentType
in classExternalContext
- See Also:
-
setResponse
The default behavior of this method is to call
ExternalContext.setResponse(Object)
on the wrappedExternalContext
object.- Overrides:
setResponse
in classExternalContext
- See Also:
-
getResponseOutputStream
The default behavior of this method is to call
ExternalContext.getResponseOutputStream()
on the wrappedExternalContext
object.- Overrides:
getResponseOutputStream
in classExternalContext
- Throws:
IOException
- See Also:
-
getResponseOutputWriter
The default behavior of this method is to call
ExternalContext.getResponseOutputWriter()
on the wrappedExternalContext
object.- Overrides:
getResponseOutputWriter
in classExternalContext
- Throws:
IOException
- See Also:
-
setResponseCharacterEncoding
The default behavior of this method is to call
ExternalContext.getResponseCharacterEncoding()
on the wrappedExternalContext
object.- Overrides:
setResponseCharacterEncoding
in classExternalContext
- See Also:
-
setResponseContentType
The default behavior of this method is to call
ExternalContext.setResponseContentType(String)
on the wrappedExternalContext
object.- Overrides:
setResponseContentType
in classExternalContext
- Parameters:
contentType
- The content type to be set as the contentType of the response.- See Also:
-
invalidateSession
public void invalidateSession()The default behavior of this method is to call
ExternalContext.invalidateSession()
on the wrappedExternalContext
object.- Overrides:
invalidateSession
in classExternalContext
- See Also:
-
setResponseHeader
The default behavior of this method is to call
ExternalContext.setResponseHeader(String,String)
on the wrappedExternalContext
object.- Overrides:
setResponseHeader
in classExternalContext
- Parameters:
name
- The name of the response header.value
- The value of the response header.- See Also:
-
addResponseHeader
The default behavior of this method is to call
ExternalContext.addResponseHeader(String,String)
on the wrappedExternalContext
object.- Overrides:
addResponseHeader
in classExternalContext
- Parameters:
name
- The name of the response header.value
- The value of the response header.- See Also:
-
setResponseBufferSize
public void setResponseBufferSize(int size) The default behavior of this method is to call
ExternalContext.setResponseBufferSize(int)
on the wrappedExternalContext
object.- Overrides:
setResponseBufferSize
in classExternalContext
- Parameters:
size
- the new buffer size- See Also:
-
getResponseBufferSize
public int getResponseBufferSize()The default behavior of this method is to call
ExternalContext.getResponseBufferSize()
on the wrappedExternalContext
object.- Overrides:
getResponseBufferSize
in classExternalContext
- See Also:
-
isResponseCommitted
public boolean isResponseCommitted()The default behavior of this method is to call
ExternalContext.isResponseCommitted()
on the wrappedExternalContext
object.- Overrides:
isResponseCommitted
in classExternalContext
- See Also:
-
isSecure
public boolean isSecure()The default behavior of this method is to call
ExternalContext.isSecure()
on the wrappedExternalContext
object.- Overrides:
isSecure
in classExternalContext
-
responseReset
public void responseReset()The default behavior of this method is to call
ExternalContext.responseReset()
on the wrappedExternalContext
object.- Overrides:
responseReset
in classExternalContext
- See Also:
-
responseSendError
The default behavior of this method is to call
ExternalContext.responseSendError(int,String)
on the wrappedExternalContext
object.- Overrides:
responseSendError
in classExternalContext
- Parameters:
statusCode
- an HTTP status codemessage
- an option message to detail the cause of the code- Throws:
IOException
- See Also:
-
setResponseStatus
public void setResponseStatus(int statusCode) The default behavior of this method is to call
ExternalContext.setResponseStatus(int)
on the wrappedExternalContext
object.- Overrides:
setResponseStatus
in classExternalContext
- Parameters:
statusCode
- an HTTP status code- See Also:
-
responseFlushBuffer
The default behavior of this method is to call
ExternalContext.responseFlushBuffer()
on the wrappedExternalContext
object.- Overrides:
responseFlushBuffer
in classExternalContext
- Throws:
IOException
- See Also:
-
setResponseContentLength
public void setResponseContentLength(int length) The default behavior of this method is to call
ExternalContext.setResponseContentLength(int)
on the wrappedExternalContext
object.- Overrides:
setResponseContentLength
in classExternalContext
- See Also:
-
encodeBookmarkableURL
The default behavior of this method is to call
ExternalContext.encodeBookmarkableURL(String, java.util.Map)
on the wrappedExternalContext
object.- Overrides:
encodeBookmarkableURL
in 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:
-
encodeRedirectURL
The default behavior of this method is to call
ExternalContext.encodeRedirectURL(String, java.util.Map)
on the wrappedExternalContext
object.- Overrides:
encodeRedirectURL
in 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:
-
getFlash
The default behavior of this method is to call
ExternalContext.getFlash()
on the wrappedExternalContext
object.</p?- Overrides:
getFlash
in classExternalContext
- See Also:
-