This implementation of ExternalContext is specific to the
servlet implementation.
| Modifier and Type | Class and Description |
|---|---|
| private static enum | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private ClientWindow | |
| private Map | |
| private boolean | |
| private Map | |
| private Flash | |
| private Map | |
| private static final Logger | |
| private static final String | |
| private ServletRequest | |
| private Map | |
| private Map | |
| private Map | |
| private Map | |
| private Map | |
| private ServletResponse | |
| private ServletContext | |
| private Map | |
| pack-priv static final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addResponseCookie(String name, String value, Map<String, Object> properties)
Overrides javax. Adds the cookie represented by the arguments to the response. |
| public void | addResponseHeader(String
The name of the response header. name, String The value of the response header. value)Overrides javax. Add the given name and value to the response header. |
| public void | dispatch(String
Context relative path to the specified resource,
which must start with a slash ("/") character requestURI)Implements abstract javax. Dispatch a request to the specified resource to create output for this response. |
| private void | |
| public String | encodeActionURL(String
The input URL to be encoded url)Implements abstract javax. Return the input URL, after performing any rewriting needed to ensure that it will correctly identify an addressable action in the current application. |
| public String | encodeBookmarkableURL(String
The base URL onto which the query string generated by this method will be appended. The URL may contain query parameters. baseUrl, Map<String, List<String>> The collection of Parameter objects, representing name=value pairs that are used to produce a query string parameters)Overrides javax. The purpose of this method is to generate a query string from the collection of Parameter objects provided by the parameters argument and append that query string to the baseUrl. |
| public String | encodeNamespace(String
Name to be encoded name)Implements abstract javax. Return the specified name, after prefixing it with a namespace that ensures that it will be unique within the context of a particular page. |
| public String | encodePartialActionURL(String
The input URL to be encoded url)Overrides javax. 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. |
| public String | encodeRedirectURL(String
The base URL onto which the query string generated by this method will be appended. The URL may contain query parameters. baseUrl, Map<String, List<String>> The collection of Parameter objects, representing name=value pairs that are used to produce a query string parameters)Overrides javax. |
| public String | encodeResourceURL(String
The input URL to be encoded url)Implements abstract javax. Return the input URL, after performing any rewriting needed to ensure that it will correctly identify an addressable resource in the current application. |
| public String | encodeWebsocketURL(String
The input URL to be encoded. url)Implements abstract javax. Return the websocket URL, after performing any rewriting needed to ensure that it will correctly identify an addressable websocket in the current application. |
| public String | getApplicationContextPath()
Overrides javax. Return the name of the container context for this application. |
| public Map | getApplicationMap()
Implements abstract javax. Return a mutable
|
| public String | getAuthType()
Implements abstract javax. Return the name of the authentication scheme used to authenticate
the current user, if any; otherwise, return |
| public ClientWindow | getClientWindow()
Overrides javax. Return the |
| public Object | getContext()
Implements abstract javax. Return the application environment object instance for the current appication. |
| public String | getContextName()
Overrides javax. Return the name of the container context for this application. |
| public String | |
| public Flash | getFlash()
Overrides javax. Return the threadsafe |
| public String | getInitParameter(String
Name of the requested initialization parameter name)Implements abstract javax. Return the value of the specified application initialization parameter (if any). |
| public Map | getInitParameterMap()
Implements abstract javax. Return an
immutable |
| public String | getMimeType(String
The file for which the mime type should be obtained. file)Overrides javax. Returns the MIME type of the
specified file or |
| private Object | |
| public String | getRealPath(String
The context of the requested initialization parameter path)Overrides javax. Returns a String containing the real path for a given virtual path. |
| public String | getRemoteUser()
Implements abstract javax. Return the login name of the user making the current request
if any; otherwise, return |
| public Object | getRequest()
Implements abstract javax. Return the environment-specific object instance for the current request. |
| public String | getRequestCharacterEncoding()
Overrides javax. Return the character encoding currently being used to interpret this request. |
| public int | getRequestContentLength()
Overrides javax. Return the result
of calling |
| public String | getRequestContentType()
Overrides javax. Return the MIME Content-Type for this request. |
| public String | getRequestContextPath()
Implements abstract javax. Return the portion of the request URI that identifies the web application context for this request. |
| public Map | getRequestCookieMap()
Implements abstract javax. Return an immutable |
| public Map | getRequestHeaderMap()
Implements abstract javax. Return an immutable |
| public Map | getRequestHeaderValuesMap()
Implements abstract javax. Return an immutable |
| public Locale | getRequestLocale()
Implements abstract javax. Return the preferred |
| public Iterator | getRequestLocales()
Implements abstract javax. Return an |
| public Map | getRequestMap()
Implements abstract javax. Return a mutable |
| public Map | getRequestParameterMap()
Implements abstract javax. Return an immutable |
| public Iterator | getRequestParameterNames()
Implements abstract javax. Return an |
| public Map | getRequestParameterValuesMap()
Implements abstract javax. Return an immutable |
| public String | getRequestPathInfo()
Implements abstract javax. Return the extra path information (if any) included in the
request URI; otherwise, return |
| public String | getRequestScheme()
Overrides javax. Returns the name of the scheme used to make this request, for example, http, https, or ftp. |
| public String | getRequestServerName()
Overrides javax. Returns the host name of the server to which the request was sent. |
| public int | getRequestServerPort()
Overrides javax. Returns the port number to which the request was sent. |
| public String | getRequestServletPath()
Implements abstract javax. Return the servlet path information (if any) included in the
request URI; otherwise, return |
| public URL | getResource(String
The path to the requested resource, which must
start with a slash ("/" character path)Implements abstract javax. Return a
|
| public InputStream | getResourceAsStream(String
The path to the requested resource, which must
start with a slash ("/" character path)Implements abstract javax. Return an
|
| public Set | getResourcePaths(String
Partial path used to match resources, which must
start with a slash ("/") character path)Implements abstract javax. Return the
|
| public Object | getResponse()
Implements abstract javax. Return the environment-specific object instance for the current response. |
| public int | getResponseBufferSize()
Overrides javax. Return the buffer size for the current response. |
| public String | getResponseCharacterEncoding()
Overrides javax. Returns the name of the character encoding (MIME charset) used for the body sent in this response. |
| public String | getResponseContentType()
Overrides javax. Return the MIME Content-Type for this response. |
| public OutputStream | getResponseOutputStream()
Overrides javax. Returns an |
| public Writer | getResponseOutputWriter()
Overrides javax. Returns a |
| public Object | getSession(boolean
Flag indicating whether or not a new session should be
created if there is no session associated with the current request create)Implements abstract javax. If the |
| public String | getSessionId(boolean
Flag indicating whether or not a new session should be
created if there is no session associated with the current request create)Overrides javax. Return the id of the current session
or the empty string if no session has been created and the
|
| public Map | getSessionMap()
Implements abstract javax. Return a mutable |
| public int | getSessionMaxInactiveInterval()
Overrides javax. Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses. |
| public Principal | getUserPrincipal()
Implements abstract javax. Return the |
| public void | invalidateSession()
Overrides javax. Invalidates this session then unbinds any objects bound to it. |
| public boolean | isResponseCommitted()
Overrides javax. Check if the current response has been committed. |
| public boolean | Returns: booleanOverrides javax. Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS. |
| public boolean | isUserInRole(String
Logical role name to be checked role)Implements abstract javax. Return |
| public void | log(String
Message to be logged message)Implements abstract javax. Log the specified message to the application object. |
| public void | log(String
Message to be logged message, Throwable Exception to be logged throwable)Implements abstract javax. Log the specified message and exception to the application object. |
| private void | |
| public void | redirect(String
Absolute URL to which the client should be redirected requestURI)Implements abstract javax. Redirect a request
to the specified URL, and cause the
|
| public void | responseFlushBuffer()
Overrides javax. Flushes the buffered response content to the client. |
| public void | responseReset()
Overrides javax. Resets the current response. |
| public void | responseSendError(int
an HTTP status code statusCode, String an option message to detail the cause of the code message)Overrides javax. Sends an HTTP status code with message. |
| public void | setClientWindow(ClientWindow
the window with which this instance is associated. window)Overrides javax. Associate this instance with a |
| public void | setRequest(Object
the request object to be set. request)Overrides javax. Set the environment-specific request to be returned by
subsequent calls to |
| public void | setRequestCharacterEncoding(String
the encoding name to be set. encoding)Overrides javax. Overrides the name of the character encoding used in the body of this request. |
| public void | setResponse(Object
the response instance to be set. response)Overrides javax. Set the environment-specific response to be returned by
subsequent calls to |
| public void | setResponseBufferSize(int
the new buffer size size)Overrides javax. Set the buffer size for the current response. |
| public void | setResponseCharacterEncoding(String
the character encoding to be sent by the current response. encoding)Overrides javax. Sets the character encoding (MIME charset) of the response being sent to the client, for example, to UTF-8. |
| public void | setResponseContentLength(int
the value to be set. length)Overrides javax. Set the content length of the response. |
| public void | setResponseContentType(String
The content type to be set as the contentType
of the response. contentType)Overrides javax. Sets the content type of the response being sent to the client, if the response has not been committed yet. |
| public void | setResponseHeader(String
The name of the response header. name, String The value of the response header. value)Overrides javax. Set the response header with the given name and value. |
| public void | setResponseStatus(int
an HTTP status code statusCode)Overrides javax. Sets the HTTP status code for the response. |
| public void | setSessionMaxInactiveInterval(int
the value to be set. interval)Overrides javax. Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. |