javax.faces.context.ExternalContextWrapper Maven / Gradle / Ivy
Show all versions of jakarta.faces-api Show documentation
/*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package javax.faces.context;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.io.Writer;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.Principal;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import javax.faces.FacesWrapper;
import javax.faces.lifecycle.ClientWindow;
/**
* Provides
* a simple implementation of {@link ExternalContext} that can
* be subclassed by developers wishing to provide specialized behavior
* to an existing {@link ExternalContext} instance. The default
* implementation of all methods is to call through to the wrapped
* {@link ExternalContext} instance.
*
* Usage: extend this class and push the implementation being wrapped to the
* constructor and use {@link #getWrapped} to access the instance being wrapped.
*
* @since 2.0
*/
public abstract class ExternalContextWrapper extends ExternalContext implements FacesWrapper {
private ExternalContext wrapped;
/**
* @deprecated Use the other constructor taking the implementation being wrapped.
*/
@Deprecated
public ExternalContextWrapper() {
}
/**
* If this external context has been decorated,
* the implementation doing the decorating should push the implementation being wrapped to this constructor.
* The {@link #getWrapped()} will then return the implementation being wrapped.
*
* @param wrapped The implementation being wrapped.
* @since 2.3
*/
public ExternalContextWrapper(ExternalContext wrapped) {
this.wrapped = wrapped;
}
@Override
public ExternalContext getWrapped() {
return wrapped;
}
// -------------------------------------------- Methods from ExternalContext
/**
* The default behavior of this method is to
* call {@link ExternalContext#dispatch(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#dispatch(String)
*/
@Override
public void dispatch(String path) throws IOException {
getWrapped().dispatch(path);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#encodeActionURL(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#encodeActionURL(String)
*/
@Override
public String encodeActionURL(String url) {
return getWrapped().encodeActionURL(url);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#encodeNamespace(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#encodeNamespace(String)
*/
@Override
public String encodeNamespace(String name) {
return getWrapped().encodeNamespace(name);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#encodePartialActionURL(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#encodePartialActionURL(String)
*/
@Override
public String encodePartialActionURL(String url) {
return getWrapped().encodePartialActionURL(url);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#encodeResourceURL(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#encodeResourceURL(String)
*/
@Override
public String encodeResourceURL(String url) {
return getWrapped().encodeResourceURL(url);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#encodeWebsocketURL(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#encodeWebsocketURL(String)
*/
@Override
public String encodeWebsocketURL(String url) {
return getWrapped().encodeWebsocketURL(url);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getApplicationMap}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getApplicationMap()
*/
@Override
public Map getApplicationMap() {
return getWrapped().getApplicationMap();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getApplicationContextPath}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getApplicationContextPath()
*/
@Override
public String getApplicationContextPath() {
return getWrapped().getApplicationContextPath();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getAuthType}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getAuthType()
*/
@Override
public String getAuthType() {
return getWrapped().getAuthType();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getContext}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getContext()
*/
@Override
public Object getContext() {
return getWrapped().getContext();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getInitParameter(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getInitParameter(String)
*/
@Override
public String getInitParameter(String name) {
return getWrapped().getInitParameter(name);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getInitParameterMap}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getInitParameterMap()
*/
@Override
public Map getInitParameterMap() {
return getWrapped().getInitParameterMap();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRemoteUser}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRemoteUser()
*/
@Override
public String getRemoteUser() {
return getWrapped().getRemoteUser();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequest}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequest()
*/
@Override
public Object getRequest() {
return getWrapped().getRequest();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestContextPath}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestContextPath()
*/
@Override
public String getRequestContextPath() {
return getWrapped().getRequestContextPath();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestCookieMap}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestCookieMap()
*/
@Override
public Map getRequestCookieMap() {
return getWrapped().getRequestCookieMap();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestHeaderMap}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestHeaderMap()
*/
@Override
public Map getRequestHeaderMap() {
return getWrapped().getRequestHeaderMap();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestHeaderValuesMap}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestHeaderValuesMap()
*/
@Override
public Map getRequestHeaderValuesMap() {
return getWrapped().getRequestHeaderValuesMap();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestLocale}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestLocale()
*/
@Override
public Locale getRequestLocale() {
return getWrapped().getRequestLocale();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestLocales}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestLocales()
*/
@Override
public Iterator getRequestLocales() {
return getWrapped().getRequestLocales();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestMap}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestMap()
*/
@Override
public Map getRequestMap() {
return getWrapped().getRequestMap();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestParameterMap}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestParameterMap()
*/
@Override
public Map getRequestParameterMap() {
return getWrapped().getRequestParameterMap();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestParameterNames}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestParameterNames()
*/
@Override
public Iterator getRequestParameterNames() {
return getWrapped().getRequestParameterNames();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestParameterValuesMap}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestParameterValuesMap()
*/
@Override
public Map getRequestParameterValuesMap() {
return getWrapped().getRequestParameterValuesMap();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestPathInfo}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestPathInfo()
*/
@Override
public String getRequestPathInfo() {
return getWrapped().getRequestPathInfo();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestServletPath}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestServletPath()
*/
@Override
public String getRequestServletPath() {
return getWrapped().getRequestServletPath();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getResource(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getResource(String)
*/
@Override
public URL getResource(String path) throws MalformedURLException {
return getWrapped().getResource(path);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getResourceAsStream(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getResourceAsStream(String)
*/
@Override
public InputStream getResourceAsStream(String path) {
return getWrapped().getResourceAsStream(path);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getResourcePaths(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getResourcePaths(String)
*/
@Override
public Set getResourcePaths(String path) {
return getWrapped().getResourcePaths(path);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getResponse}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getResponse()
*/
@Override
public Object getResponse() {
return getWrapped().getResponse();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getSession(boolean)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getSession(boolean)
*/
@Override
public Object getSession(boolean create) {
return getWrapped().getSession(create);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getSessionId(boolean)}
* on the wrapped {@link ExternalContext} object.
*
* @since 2.2
*
* @see javax.faces.context.ExternalContext#getSessionId(boolean)
*/
@Override
public String getSessionId(boolean create) {
return getWrapped().getSessionId(create);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getSessionMap()}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getSessionMap()
*/
@Override
public Map getSessionMap() {
return getWrapped().getSessionMap();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getSessionMaxInactiveInterval()}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getSessionMaxInactiveInterval()
*/
@Override
public int getSessionMaxInactiveInterval() {
return getWrapped().getSessionMaxInactiveInterval();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#setSessionMaxInactiveInterval(int)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#setSessionMaxInactiveInterval(int)
*/
@Override
public void setSessionMaxInactiveInterval(int interval) {
getWrapped().setSessionMaxInactiveInterval(interval);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#setClientWindow}
* on the wrapped {@link ExternalContext} object.
*
* @since 2.2
*
* @param window the window associated with this request.
*/
@Override
public void setClientWindow(ClientWindow window) {
getWrapped().setClientWindow(window);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getUserPrincipal}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getUserPrincipal()
*/
@Override
public Principal getUserPrincipal() {
return getWrapped().getUserPrincipal();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getClientWindow}
* on the wrapped {@link ExternalContext} object.
*
* @since 2.2
*
* @see javax.faces.context.ExternalContext#getClientWindow()
*/
@Override
public ClientWindow getClientWindow() {
return getWrapped().getClientWindow();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#isUserInRole(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#isUserInRole(String)
*/
@Override
public boolean isUserInRole(String role) {
return getWrapped().isUserInRole(role);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#log(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#log(String)
*/
@Override
public void log(String message) {
getWrapped().log(message);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#log(String, Throwable)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#log(String, Throwable)
*/
@Override
public void log(String message, Throwable exception) {
getWrapped().log(message, exception);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#redirect(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#redirect(String)
*/
@Override
public void redirect(String url) throws IOException {
getWrapped().redirect(url);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#addResponseCookie(String, String, Map)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#addResponseCookie(String, String, Map)
*/
@Override
public void addResponseCookie(String name,
String value,
Map properties) {
getWrapped().addResponseCookie(name, value, properties);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getMimeType(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getMimeType(String)
*/
@Override
public String getMimeType(String file) {
return getWrapped().getMimeType(file);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getContextName}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getContextName()
*/
@Override
public String getContextName() {
return getWrapped().getContextName();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#setRequest(Object)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#setRequest(Object)
*/
@Override
public void setRequest(Object request) {
getWrapped().setRequest(request);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestScheme}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestScheme()
*/
@Override
public String getRequestScheme() {
return getWrapped().getRequestScheme();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestServerName}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestServerName()
*/
@Override
public String getRequestServerName() {
return getWrapped().getRequestServerName();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestServerPort}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestServerPort()
*/
@Override
public int getRequestServerPort() {
return getWrapped().getRequestServerPort();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#setRequestCharacterEncoding(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#setRequestCharacterEncoding(String)
*/
@Override
public void setRequestCharacterEncoding(String encoding)
throws UnsupportedEncodingException {
getWrapped().setRequestCharacterEncoding(encoding);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRealPath(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRealPath(String)
*/
@Override
public String getRealPath(String path) {
return getWrapped().getRealPath(path);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestCharacterEncoding}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestCharacterEncoding()
*/
@Override
public String getRequestCharacterEncoding() {
return getWrapped().getRequestCharacterEncoding();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestContentType}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestContentType()
*/
@Override
public String getRequestContentType() {
return getWrapped().getRequestContentType();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getRequestContentLength}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getRequestContentLength()
*/
@Override
public int getRequestContentLength() {
return getWrapped().getRequestContentLength();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getResponseCharacterEncoding}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getResponseCharacterEncoding()
*/
@Override
public String getResponseCharacterEncoding() {
return getWrapped().getResponseCharacterEncoding();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getResponseContentType}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getResponseContentType()
*/
@Override
public String getResponseContentType() {
return getWrapped().getResponseContentType();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#setResponse(Object)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#setResponse(Object)
*/
@Override
public void setResponse(Object response) {
getWrapped().setResponse(response);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getResponseOutputStream}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getResponseOutputStream()
*/
@Override
public OutputStream getResponseOutputStream() throws IOException {
return getWrapped().getResponseOutputStream();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getResponseOutputWriter}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getResponseOutputWriter()
*/
@Override
public Writer getResponseOutputWriter() throws IOException {
return getWrapped().getResponseOutputWriter();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getResponseCharacterEncoding}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getResponseCharacterEncoding()
*/
@Override
public void setResponseCharacterEncoding(String encoding) {
getWrapped().setResponseCharacterEncoding(encoding);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#setResponseContentType(String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#setResponseContentType(String)
*/
@Override
public void setResponseContentType(String contentType) {
getWrapped().setResponseContentType(contentType);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#invalidateSession}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#invalidateSession()
*/
@Override
public void invalidateSession() {
getWrapped().invalidateSession();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#setResponseHeader(String,String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#setResponseHeader(String,String)
*/
@Override
public void setResponseHeader(String name, String value) {
getWrapped().setResponseHeader(name, value);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#addResponseHeader(String,String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#addResponseHeader(String,String)
*/
@Override
public void addResponseHeader(String name, String value) {
getWrapped().addResponseHeader(name, value);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#setResponseBufferSize(int)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#setResponseBufferSize(int)
*/
@Override
public void setResponseBufferSize(int size) {
getWrapped().setResponseBufferSize(size);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getResponseBufferSize()}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#getResponseBufferSize()
*/
@Override
public int getResponseBufferSize() {
return getWrapped().getResponseBufferSize();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#isResponseCommitted()}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#isResponseCommitted()
*/
@Override
public boolean isResponseCommitted() {
return getWrapped().isResponseCommitted();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#isSecure}
* on the wrapped {@link ExternalContext} object.
*
*/
@Override
public boolean isSecure() {
return getWrapped().isSecure();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#responseReset()}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#responseReset()
*/
@Override
public void responseReset() {
getWrapped().responseReset();
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#responseSendError(int,String)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#responseSendError(int,String)
*/
@Override
public void responseSendError(int statusCode, String message) throws IOException {
getWrapped().responseSendError(statusCode, message);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#setResponseStatus(int)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#setResponseStatus(int)
*/
@Override
public void setResponseStatus(int statusCode) {
getWrapped().setResponseStatus(statusCode);
}
/**
* The default behavior of this method is to
* call {@link javax.faces.context.ExternalContext#responseFlushBuffer()}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#responseFlushBuffer()
*/
@Override
public void responseFlushBuffer() throws IOException {
getWrapped().responseFlushBuffer();
}
/**
* The default behavior of this method is to
* call {@link javax.faces.context.ExternalContext#setResponseContentLength(int)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#setResponseContentLength(int)
*/
@Override
public void setResponseContentLength(int length) {
getWrapped().setResponseContentLength(length);
}
/**
* The default behavior of this method is to
* call {@link javax.faces.context.ExternalContext#encodeBookmarkableURL(String, java.util.Map)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#encodeBookmarkableURL(String, java.util.Map)
*/
@Override
public String encodeBookmarkableURL(String baseUrl, Map> parameters) {
return getWrapped().encodeBookmarkableURL(baseUrl, parameters);
}
/**
* The default behavior of this method is to
* call {@link javax.faces.context.ExternalContext#encodeRedirectURL(String, java.util.Map)}
* on the wrapped {@link ExternalContext} object.
*
* @see javax.faces.context.ExternalContext#encodeRedirectURL(String, java.util.Map)
*/
@Override
public String encodeRedirectURL(String baseUrl, Map> parameters) {
return getWrapped().encodeRedirectURL(baseUrl, parameters);
}
/**
* The default behavior of this method is to
* call {@link ExternalContext#getFlash()} on the wrapped {@link ExternalContext}
* object.
*
* @see javax.faces.context.ExternalContext#getFlash()
*/
@Override
public Flash getFlash() {
return getWrapped().getFlash();
}
}