| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.faces.context.ExternalContext
javax.faces.context.ExternalContextWrapper
public abstract class ExternalContextWrapper
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.
| Field Summary | 
|---|
| Fields inherited from class javax.faces.context.ExternalContext | 
|---|
| BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH | 
| Constructor Summary | |
|---|---|
| ExternalContextWrapper() | |
| Method Summary | |
|---|---|
|  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. | 
|  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. | 
|  void | dispatch(java.lang.String path)The default behavior of this method is to call ExternalContext#dispatch(String)on the wrappedExternalContextobject. | 
|  java.lang.String | encodeActionURL(java.lang.String url)The default behavior of this method is to call ExternalContext#encodeActionURL(String)on the wrappedExternalContextobject. | 
|  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. | 
|  java.lang.String | encodeNamespace(java.lang.String name)The default behavior of this method is to call ExternalContext#encodeNamespace(String)on the wrappedExternalContextobject. | 
|  java.lang.String | encodePartialActionURL(java.lang.String url)Return the input URL, after performing any rewriting needed to ensure that it can be used in a partial page submission (ajax request) to correctly identify an addressable action in the current application. | 
|  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. | 
|  java.lang.String | encodeResourceURL(java.lang.String url)The default behavior of this method is to call ExternalContext#encodeResourceURL(String)on the wrappedExternalContextobject. | 
|  java.util.Map<java.lang.String,java.lang.Object> | getApplicationMap()The default behavior of this method is to call ExternalContext#getApplicationMapon the wrappedExternalContextobject. | 
|  java.lang.String | getAuthType()The default behavior of this method is to call ExternalContext#getAuthTypeon the wrappedExternalContextobject. | 
|  java.lang.Object | getContext()The default behavior of this method is to call ExternalContext#getContexton the wrappedExternalContextobject. | 
|  java.lang.String | getContextName()The default behavior of this method is to call ExternalContext#getContextNameon the wrappedExternalContextobject. | 
|  Flash | getFlash()The default behavior of this method is to call ExternalContext#getFlash()on the wrappedExternalContextobject. | 
|  java.lang.String | getInitParameter(java.lang.String name)The default behavior of this method is to call ExternalContext#getInitParameter(String)on the wrappedExternalContextobject. | 
|  java.util.Map | getInitParameterMap()The default behavior of this method is to call ExternalContext#getInitParameterMapon the wrappedExternalContextobject. | 
|  java.lang.String | getMimeType(java.lang.String file)The default behavior of this method is to call ExternalContext#getMimeType(String)on the wrappedExternalContextobject. | 
|  java.lang.String | getRealPath(java.lang.String path)The default behavior of this method is to call ExternalContext#getRealPath(String)on the wrappedExternalContextobject. | 
|  java.lang.String | getRemoteUser()The default behavior of this method is to call ExternalContext#getRemoteUseron the wrappedExternalContextobject. | 
|  java.lang.Object | getRequest()The default behavior of this method is to call ExternalContext#getRequeston the wrappedExternalContextobject. | 
|  java.lang.String | getRequestCharacterEncoding()The default behavior of this method is to call ExternalContext#getRequestCharacterEncodingon the wrappedExternalContextobject. | 
|  int | getRequestContentLength()The default behavior of this method is to call ExternalContext#getRequestContentLengthon the wrappedExternalContextobject. | 
|  java.lang.String | getRequestContentType()The default behavior of this method is to call ExternalContext#getRequestContentTypeon the wrappedExternalContextobject. | 
|  java.lang.String | getRequestContextPath()The default behavior of this method is to call ExternalContext#getRequestContextPathon the wrappedExternalContextobject. | 
|  java.util.Map<java.lang.String,java.lang.Object> | getRequestCookieMap()The default behavior of this method is to call ExternalContext#getRequestCookieMapon the wrappedExternalContextobject. | 
|  java.util.Map<java.lang.String,java.lang.String> | getRequestHeaderMap()The default behavior of this method is to call ExternalContext#getRequestHeaderMapon the wrappedExternalContextobject. | 
|  java.util.Map<java.lang.String,java.lang.String[]> | getRequestHeaderValuesMap()The default behavior of this method is to call ExternalContext#getRequestHeaderValuesMapon the wrappedExternalContextobject. | 
|  java.util.Locale | getRequestLocale()The default behavior of this method is to call ExternalContext#getRequestLocaleon the wrappedExternalContextobject. | 
|  java.util.Iterator<java.util.Locale> | getRequestLocales()The default behavior of this method is to call ExternalContext#getRequestLocaleson the wrappedExternalContextobject. | 
|  java.util.Map<java.lang.String,java.lang.Object> | getRequestMap()The default behavior of this method is to call ExternalContext#getRequestMapon the wrappedExternalContextobject. | 
|  java.util.Map<java.lang.String,java.lang.String> | getRequestParameterMap()The default behavior of this method is to call ExternalContext#getRequestParameterMapon the wrappedExternalContextobject. | 
|  java.util.Iterator<java.lang.String> | getRequestParameterNames()The default behavior of this method is to call ExternalContext#getRequestParameterNameson the wrappedExternalContextobject. | 
|  java.util.Map<java.lang.String,java.lang.String[]> | getRequestParameterValuesMap()The default behavior of this method is to call ExternalContext#getRequestParameterValuesMapon the wrappedExternalContextobject. | 
|  java.lang.String | getRequestPathInfo()The default behavior of this method is to call ExternalContext#getRequestPathInfoon the wrappedExternalContextobject. | 
|  java.lang.String | getRequestScheme()The default behavior of this method is to call ExternalContext#getRequestSchemeon the wrappedExternalContextobject. | 
|  java.lang.String | getRequestServerName()The default behavior of this method is to call ExternalContext#getRequestServerNameon the wrappedExternalContextobject. | 
|  int | getRequestServerPort()The default behavior of this method is to call ExternalContext#getRequestServerPorton the wrappedExternalContextobject. | 
|  java.lang.String | getRequestServletPath()The default behavior of this method is to call ExternalContext#getRequestServletPathon the wrappedExternalContextobject. | 
|  java.net.URL | getResource(java.lang.String path)The default behavior of this method is to call ExternalContext#getResource(String)on the wrappedExternalContextobject. | 
|  java.io.InputStream | getResourceAsStream(java.lang.String path)The default behavior of this method is to call ExternalContext#getResourceAsStream(String)on the wrappedExternalContextobject. | 
|  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. | 
|  java.lang.Object | getResponse()The default behavior of this method is to call ExternalContext#getResponseon the wrappedExternalContextobject. | 
|  int | getResponseBufferSize()The default behavior of this method is to call ExternalContext#getResponseBufferSize()on the wrappedExternalContextobject. | 
|  java.lang.String | getResponseCharacterEncoding()The default behavior of this method is to call ExternalContext#getResponseCharacterEncodingon the wrappedExternalContextobject. | 
|  java.lang.String | getResponseContentType()The default behavior of this method is to call ExternalContext#getResponseContentTypeon the wrappedExternalContextobject. | 
|  java.io.OutputStream | getResponseOutputStream()The default behavior of this method is to call ExternalContext#getResponseOutputStreamon the wrappedExternalContextobject. | 
|  java.io.Writer | getResponseOutputWriter()The default behavior of this method is to call ExternalContext#getResponseOutputWriteron the wrappedExternalContextobject. | 
|  java.lang.Object | getSession(boolean create)The default behavior of this method is to call ExternalContext#getSession(boolean)on the wrappedExternalContextobject. | 
|  java.util.Map<java.lang.String,java.lang.Object> | getSessionMap()The default behavior of this method is to call ExternalContext#getAuthTypeon the wrappedExternalContextobject. | 
|  java.security.Principal | getUserPrincipal()The default behavior of this method is to call ExternalContext#getUserPrincipalon the wrappedExternalContextobject. | 
| abstract  ExternalContext | getWrapped()A class that implements this interface uses this method to return an instance of the class being wrapped. | 
|  void | invalidateSession()The default behavior of this method is to call ExternalContext#invalidateSessionon the wrappedExternalContextobject. | 
|  boolean | isResponseCommitted()The default behavior of this method is to call ExternalContext#isResponseCommitted()on the wrappedExternalContextobject. | 
|  boolean | isUserInRole(java.lang.String role)The default behavior of this method is to call ExternalContext#isUserInRole(String)on the wrappedExternalContextobject. | 
|  void | log(java.lang.String message)The default behavior of this method is to call ExternalContext#log(String)on the wrappedExternalContextobject. | 
|  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. | 
|  void | redirect(java.lang.String url)The default behavior of this method is to call ExternalContext#redirect(String)on the wrappedExternalContextobject. | 
|  void | responseFlushBuffer()The default behavior of this method is to call ExternalContext.responseFlushBuffer()on the wrappedExternalContextobject. | 
|  void | responseReset()The default behavior of this method is to call ExternalContext#responseReset()on the wrappedExternalContextobject. | 
|  void | responseSendError(int statusCode,
                  java.lang.String message)The default behavior of this method is to call ExternalContext#responseSendError(int,String)on the wrappedExternalContextobject. | 
|  void | setRequest(java.lang.Object request)The default behavior of this method is to call ExternalContext#setRequest(Object)on the wrappedExternalContextobject. | 
|  void | setRequestCharacterEncoding(java.lang.String encoding)The default behavior of this method is to call ExternalContext#setRequestCharacterEncoding(String)on the wrappedExternalContextobject. | 
|  void | setResponse(java.lang.Object response)The default behavior of this method is to call ExternalContext#setResponse(Object)on the wrappedExternalContextobject. | 
|  void | setResponseBufferSize(int size)The default behavior of this method is to call ExternalContext#setResponseBufferSize(int)on the wrappedExternalContextobject. | 
|  void | setResponseCharacterEncoding(java.lang.String encoding)The default behavior of this method is to call ExternalContext#getResponseCharacterEncodingon the wrappedExternalContextobject. | 
|  void | setResponseContentLength(int length)The default behavior of this method is to call ExternalContext.setResponseContentLength(int)on the wrappedExternalContextobject. | 
|  void | setResponseContentType(java.lang.String contentType)The default behavior of this method is to call ExternalContext#setResponseContentType(String)on the wrappedExternalContextobject. | 
|  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. | 
|  void | setResponseStatus(int statusCode)The default behavior of this method is to call ExternalContext#setResponseStatus(int)on the wrappedExternalContextobject. | 
| Methods inherited from class javax.faces.context.ExternalContext | 
|---|
| getSessionMaxInactiveInterval, isSecure, setSessionMaxInactiveInterval | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ExternalContextWrapper()
| Method Detail | 
|---|
public abstract ExternalContext getWrapped()
FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped.
getWrapped in interface FacesWrapper<ExternalContext>ExternalContext instanceFacesWrapper.getWrapped()
public void dispatch(java.lang.String path)
              throws java.io.IOException
The default behavior of this method is to
 call ExternalContext#dispatch(String)
 on the wrapped ExternalContext object.
dispatch in class ExternalContextpath - Context relative path to the specified resource,
  which must start with a slash ("/") character
java.io.IOException - if an input/output error occursExternalContext.dispatch(String)public java.lang.String encodeActionURL(java.lang.String url)
The default behavior of this method is to
 call ExternalContext#encodeActionURL(String)
 on the wrapped ExternalContext object.
encodeActionURL in class ExternalContexturl - The input URL to be encodedExternalContext.encodeActionURL(String)public java.lang.String encodeNamespace(java.lang.String name)
The default behavior of this method is to
 call ExternalContext#encodeNamespace(String)
 on the wrapped ExternalContext object.
encodeNamespace in class ExternalContextname - Name to be encodedExternalContext.encodeNamespace(String)public java.lang.String encodePartialActionURL(java.lang.String url)
ExternalContextReturn the input URL, after performing any rewriting needed to ensure that it can be used in a partial page submission (ajax request) to correctly identify an addressable action in the current application.
Servlet:Returns the same encoded URL as the
 ExternalContext.encodeActionURL(String url) method.
Portlet:Returns an encoded URL that, upon HTTP POST, will invoke the RESOURCE_PHASE of the portlet lifecycle.
encodePartialActionURL in class ExternalContexturl - The input URL to be encodedpublic java.lang.String encodeResourceURL(java.lang.String url)
The default behavior of this method is to
 call ExternalContext#encodeResourceURL(String)
 on the wrapped ExternalContext object.
encodeResourceURL in class ExternalContexturl - The input URL to be encodedExternalContext.encodeResourceURL(String)public java.util.Map<java.lang.String,java.lang.Object> getApplicationMap()
The default behavior of this method is to
 call ExternalContext#getApplicationMap
 on the wrapped ExternalContext object.
getApplicationMap in class ExternalContextExternalContext.getApplicationMap()public java.lang.String getAuthType()
The default behavior of this method is to
 call ExternalContext#getAuthType
 on the wrapped ExternalContext object.
getAuthType in class ExternalContextExternalContext.getAuthType()public java.lang.Object getContext()
The default behavior of this method is to
 call ExternalContext#getContext
 on the wrapped ExternalContext object.
getContext in class ExternalContextExternalContext.getContext()public java.lang.String getInitParameter(java.lang.String name)
The default behavior of this method is to
 call ExternalContext#getInitParameter(String)
 on the wrapped ExternalContext object.
getInitParameter in class ExternalContextname - Name of the requested initialization parameterExternalContext.getInitParameter(String)public java.util.Map getInitParameterMap()
The default behavior of this method is to
 call ExternalContext#getInitParameterMap
 on the wrapped ExternalContext object.
getInitParameterMap in class ExternalContextExternalContext.getInitParameterMap()public java.lang.String getRemoteUser()
The default behavior of this method is to
 call ExternalContext#getRemoteUser
 on the wrapped ExternalContext object.
getRemoteUser in class ExternalContextExternalContext.getRemoteUser()public java.lang.Object getRequest()
The default behavior of this method is to
 call ExternalContext#getRequest
 on the wrapped ExternalContext object.
getRequest in class ExternalContextExternalContext.getRequest()public java.lang.String getRequestContextPath()
The default behavior of this method is to
 call ExternalContext#getRequestContextPath
 on the wrapped ExternalContext object.
getRequestContextPath in class ExternalContextExternalContext.getRequestContextPath()public java.util.Map<java.lang.String,java.lang.Object> getRequestCookieMap()
The default behavior of this method is to
 call ExternalContext#getRequestCookieMap
 on the wrapped ExternalContext object.
getRequestCookieMap in class ExternalContextExternalContext.getRequestCookieMap()public java.util.Map<java.lang.String,java.lang.String> getRequestHeaderMap()
The default behavior of this method is to
 call ExternalContext#getRequestHeaderMap
 on the wrapped ExternalContext object.
getRequestHeaderMap in class ExternalContextExternalContext.getRequestHeaderMap()public java.util.Map<java.lang.String,java.lang.String[]> getRequestHeaderValuesMap()
The default behavior of this method is to
 call ExternalContext#getRequestHeaderValuesMap
 on the wrapped ExternalContext object.
getRequestHeaderValuesMap in class ExternalContextExternalContext.getRequestHeaderValuesMap()public java.util.Locale getRequestLocale()
The default behavior of this method is to
 call ExternalContext#getRequestLocale
 on the wrapped ExternalContext object.
getRequestLocale in class ExternalContextExternalContext.getRequestLocale()public java.util.Iterator<java.util.Locale> getRequestLocales()
The default behavior of this method is to
 call ExternalContext#getRequestLocales
 on the wrapped ExternalContext object.
getRequestLocales in class ExternalContextExternalContext.getRequestLocales()public java.util.Map<java.lang.String,java.lang.Object> getRequestMap()
The default behavior of this method is to
 call ExternalContext#getRequestMap
 on the wrapped ExternalContext object.
getRequestMap in class ExternalContextExternalContext.getRequestMap()public java.util.Map<java.lang.String,java.lang.String> getRequestParameterMap()
The default behavior of this method is to
 call ExternalContext#getRequestParameterMap
 on the wrapped ExternalContext object.
getRequestParameterMap in class ExternalContextExternalContext.getRequestParameterMap()public java.util.Iterator<java.lang.String> getRequestParameterNames()
The default behavior of this method is to
 call ExternalContext#getRequestParameterNames
 on the wrapped ExternalContext object.
getRequestParameterNames in class ExternalContextExternalContext.getRequestParameterNames()public java.util.Map<java.lang.String,java.lang.String[]> getRequestParameterValuesMap()
The default behavior of this method is to
 call ExternalContext#getRequestParameterValuesMap
 on the wrapped ExternalContext object.
getRequestParameterValuesMap in class ExternalContextExternalContext.getRequestParameterValuesMap()public java.lang.String getRequestPathInfo()
The default behavior of this method is to
 call ExternalContext#getRequestPathInfo
 on the wrapped ExternalContext object.
getRequestPathInfo in class ExternalContextExternalContext.getRequestPathInfo()public java.lang.String getRequestServletPath()
The default behavior of this method is to
 call ExternalContext#getRequestServletPath
 on the wrapped ExternalContext object.
getRequestServletPath in class ExternalContextExternalContext.getRequestServletPath()
public java.net.URL getResource(java.lang.String path)
                         throws java.net.MalformedURLException
The default behavior of this method is to
 call ExternalContext#getResource(String)
 on the wrapped ExternalContext object.
getResource in class ExternalContextpath - The path to the requested resource, which must
  start with a slash ("/" character
java.net.MalformedURLException - if the specified path
  is not in the correct formExternalContext.getResource(String)public java.io.InputStream getResourceAsStream(java.lang.String path)
The default behavior of this method is to
 call ExternalContext#getResourceAsStream(String)
 on the wrapped ExternalContext object.
getResourceAsStream in class ExternalContextpath - The path to the requested resource, which must
  start with a slash ("/" characterExternalContext.getResourceAsStream(String)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 wrapped ExternalContext object.
getResourcePaths in class ExternalContextpath - Partial path used to match resources, which must
  start with a slash ("/") characterExternalContext.getResourcePaths(String)public java.lang.Object getResponse()
The default behavior of this method is to
 call ExternalContext#getResponse
 on the wrapped ExternalContext object.
getResponse in class ExternalContextExternalContext.getResponse()public java.lang.Object getSession(boolean create)
The default behavior of this method is to
 call ExternalContext#getSession(boolean)
 on the wrapped ExternalContext object.
getSession in class ExternalContextcreate - Flag indicating whether or not a new session should be
  created if there is no session associated with the current requestExternalContext.getSession(boolean)public java.util.Map<java.lang.String,java.lang.Object> getSessionMap()
The default behavior of this method is to
 call ExternalContext#getAuthType
 on the wrapped ExternalContext object.
getSessionMap in class ExternalContextExternalContext.getAuthType()public java.security.Principal getUserPrincipal()
The default behavior of this method is to
 call ExternalContext#getUserPrincipal
 on the wrapped ExternalContext object.
getUserPrincipal in class ExternalContextExternalContext.getUserPrincipal()public boolean isUserInRole(java.lang.String role)
The default behavior of this method is to
 call ExternalContext#isUserInRole(String)
 on the wrapped ExternalContext object.
isUserInRole in class ExternalContextrole - Logical role name to be checkedExternalContext.isUserInRole(String)public void log(java.lang.String message)
The default behavior of this method is to
 call ExternalContext#log(String)
 on the wrapped ExternalContext object.
log in class ExternalContextmessage - Message to be loggedExternalContext.log(String)
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 wrapped ExternalContext object.
log in class ExternalContextmessage - Message to be loggedexception - Exception to be loggedExternalContext.log(String, Throwable)
public void redirect(java.lang.String url)
              throws java.io.IOException
The default behavior of this method is to
 call ExternalContext#redirect(String)
 on the wrapped ExternalContext object.
redirect in class ExternalContexturl - Absolute URL to which the client should be redirected
java.io.IOException - if an input/output error occursExternalContext.redirect(String)
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 wrapped ExternalContext object.
addResponseCookie in class ExternalContextname - To be passed as the first argument to the
 Cookie constructor.value - To be passed as the second argument to the
 Cookie constructor.properties - A Map containg key/value pairs to be passed
 as arguments to the setter methods as described above.ExternalContext.addResponseCookie(String, String, Map)public java.lang.String getMimeType(java.lang.String file)
The default behavior of this method is to
 call ExternalContext#getMimeType(String)
 on the wrapped ExternalContext object.
getMimeType in class ExternalContextfile - The file for which the mime type should be obtained.ExternalContext.getMimeType(String)public java.lang.String getContextName()
The default behavior of this method is to
 call ExternalContext#getContextName
 on the wrapped ExternalContext object.
getContextName in class ExternalContextExternalContext.getContextName()public void setRequest(java.lang.Object request)
The default behavior of this method is to
 call ExternalContext#setRequest(Object)
 on the wrapped ExternalContext object.
setRequest in class ExternalContextExternalContext.setRequest(Object)public java.lang.String getRequestScheme()
The default behavior of this method is to
 call ExternalContext#getRequestScheme
 on the wrapped ExternalContext object.
getRequestScheme in class ExternalContextExternalContext.getRequestScheme()public java.lang.String getRequestServerName()
The default behavior of this method is to
 call ExternalContext#getRequestServerName
 on the wrapped ExternalContext object.
getRequestServerName in class ExternalContextExternalContext.getRequestServerName()public int getRequestServerPort()
The default behavior of this method is to
 call ExternalContext#getRequestServerPort
 on the wrapped ExternalContext object.
getRequestServerPort in class ExternalContextExternalContext.getRequestServerPort()
public void setRequestCharacterEncoding(java.lang.String encoding)
                                 throws java.io.UnsupportedEncodingException
The default behavior of this method is to
 call ExternalContext#setRequestCharacterEncoding(String)
 on the wrapped ExternalContext object.
setRequestCharacterEncoding in class ExternalContextjava.io.UnsupportedEncodingException - if this is not a valid
 encodingExternalContext.setRequestCharacterEncoding(String)public java.lang.String getRealPath(java.lang.String path)
The default behavior of this method is to
 call ExternalContext#getRealPath(String)
 on the wrapped ExternalContext object.
getRealPath in class ExternalContextpath - The context of the requested initialization parameterExternalContext.getRealPath(String)public java.lang.String getRequestCharacterEncoding()
The default behavior of this method is to
 call ExternalContext#getRequestCharacterEncoding
 on the wrapped ExternalContext object.
getRequestCharacterEncoding in class ExternalContextExternalContext.getRequestCharacterEncoding()public java.lang.String getRequestContentType()
The default behavior of this method is to
 call ExternalContext#getRequestContentType
 on the wrapped ExternalContext object.
getRequestContentType in class ExternalContextExternalContext.getRequestContentType()public int getRequestContentLength()
The default behavior of this method is to
 call ExternalContext#getRequestContentLength
 on the wrapped ExternalContext object.
getRequestContentLength in class ExternalContextExternalContext.getRequestContentLength()public java.lang.String getResponseCharacterEncoding()
The default behavior of this method is to
 call ExternalContext#getResponseCharacterEncoding
 on the wrapped ExternalContext object.
getResponseCharacterEncoding in class ExternalContextExternalContext.getResponseCharacterEncoding()public java.lang.String getResponseContentType()
The default behavior of this method is to
 call ExternalContext#getResponseContentType
 on the wrapped ExternalContext object.
getResponseContentType in class ExternalContextExternalContext.getResponseContentType()public void setResponse(java.lang.Object response)
The default behavior of this method is to
 call ExternalContext#setResponse(Object)
 on the wrapped ExternalContext object.
setResponse in class ExternalContextExternalContext.setResponse(Object)
public java.io.OutputStream getResponseOutputStream()
                                             throws java.io.IOException
The default behavior of this method is to
 call ExternalContext#getResponseOutputStream
 on the wrapped ExternalContext object.
getResponseOutputStream in class ExternalContextjava.io.IOExceptionExternalContext.getResponseOutputStream()
public java.io.Writer getResponseOutputWriter()
                                       throws java.io.IOException
The default behavior of this method is to
 call ExternalContext#getResponseOutputWriter
 on the wrapped ExternalContext object.
getResponseOutputWriter in class ExternalContextjava.io.IOExceptionExternalContext.getResponseOutputWriter()public void setResponseCharacterEncoding(java.lang.String encoding)
The default behavior of this method is to
 call ExternalContext#getResponseCharacterEncoding
 on the wrapped ExternalContext object.
setResponseCharacterEncoding in class ExternalContextExternalContext.getResponseCharacterEncoding()public void setResponseContentType(java.lang.String contentType)
The default behavior of this method is to
 call ExternalContext#setResponseContentType(String)
 on the wrapped ExternalContext object.
setResponseContentType in class ExternalContextcontentType - The content type to be set as the contentType
 of the response.ExternalContext.setResponseContentType(String)public void invalidateSession()
The default behavior of this method is to
 call ExternalContext#invalidateSession
 on the wrapped ExternalContext object.
invalidateSession in class ExternalContextExternalContext.invalidateSession()
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 wrapped ExternalContext object.
setResponseHeader in class ExternalContextname - The name of the response header.value - The value of the response header.ExternalContext.setResponseHeader(String,String)
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 wrapped ExternalContext object.
addResponseHeader in class ExternalContextname - The name of the response header.value - The value of the response header.ExternalContext.addResponseHeader(String,String)public void setResponseBufferSize(int size)
The default behavior of this method is to
 call ExternalContext#setResponseBufferSize(int)
 on the wrapped ExternalContext object.
setResponseBufferSize in class ExternalContextsize - the new buffer sizeExternalContext.setResponseBufferSize(int)public int getResponseBufferSize()
The default behavior of this method is to
 call ExternalContext#getResponseBufferSize()
 on the wrapped ExternalContext object.
getResponseBufferSize in class ExternalContextExternalContext.getResponseBufferSize()public boolean isResponseCommitted()
The default behavior of this method is to
 call ExternalContext#isResponseCommitted()
 on the wrapped ExternalContext object.
isResponseCommitted in class ExternalContextExternalContext.isResponseCommitted()public void responseReset()
The default behavior of this method is to
 call ExternalContext#responseReset()
 on the wrapped ExternalContext object.
responseReset in class ExternalContextExternalContext.responseReset()
public void responseSendError(int statusCode,
                              java.lang.String message)
                       throws java.io.IOException
The default behavior of this method is to
 call ExternalContext#responseSendError(int,String)
 on the wrapped ExternalContext object.
responseSendError in class ExternalContextstatusCode - an HTTP status codemessage - an option message to detail the cause of the code
java.io.IOExceptionExternalContext.responseSendError(int,String)public void setResponseStatus(int statusCode)
The default behavior of this method is to
 call ExternalContext#setResponseStatus(int)
 on the wrapped ExternalContext object.
setResponseStatus in class ExternalContextstatusCode - an HTTP status codeExternalContext.setResponseStatus(int)
public void responseFlushBuffer()
                         throws java.io.IOException
The default behavior of this method is to
 call ExternalContext.responseFlushBuffer()
 on the wrapped ExternalContext object.
responseFlushBuffer in class ExternalContextjava.io.IOExceptionExternalContext.responseFlushBuffer()public void setResponseContentLength(int length)
The default behavior of this method is to
 call ExternalContext.setResponseContentLength(int)
 on the wrapped ExternalContext object.
setResponseContentLength in class ExternalContextExternalContext.setResponseContentLength(int)
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 wrapped ExternalContext object.
encodeBookmarkableURL in class ExternalContextbaseUrl - 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 stringExternalContext.encodeBookmarkableURL(String, java.util.Map)
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 wrapped ExternalContext object.
encodeRedirectURL in class ExternalContextbaseUrl - 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 stringExternalContext.encodeRedirectURL(String, java.util.Map)public Flash getFlash()
The default behavior of this method is to
 call ExternalContext#getFlash() on the wrapped ExternalContext
 object.
getFlash in class ExternalContextExternalContext.getFlash()| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41