Name

ExternalContext

Synopsis

An instance of a subclass of this abstract class is available through the FacesContext and provides access to context objects that may vary between environments, such as a servlet and a portlet environment, in an environment-independent way. Classes using the methods only in this class to access the environment should be portable between different container environments.

Synopsis

Class name:

javax.faces.context.ExternalContext

Extends:

None

Implements:

None

Fields

public static final String BASIC_AUTH

The identifier for the basic authentication scheme: BASIC.

public static final String CLIENT_CERT_AUTH

The identifier for the client certification authentication scheme: CLIENT_CERT.

public static final String DIGEST_AUTH

The identifier for the digest authentication scheme: DIGEST.

public static final String FORM_AUTH

The identifier for the form-based authentication scheme: FORM.

Constructors

public ExternalContext()

Creates an instance.

Methods

public abstract void dispatch(String path) throws java.io.IOException

Dispatchs the request to the resource at the specified path to let it generate the response.

public abstract String encodeActionURL(String url)

Returns the provided URL, possibly modified to ensure that it correctly identifies a JSF view. In a servlet environment, the URL is passed through the javax.servlet.http.HttpServletResponse encodeURL() method, which encodes it to include a session ID if needed.

public abstract String encodeNamespace(String ...

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.