Top Fields Constructors Methods
com.sun.faces.context

public Class ExternalContextFactoryImpl

extends ExternalContextFactory
Class Inheritance
Imports
com.sun.faces.util.Util, jakarta.faces.FacesException, jakarta.faces.context.ExternalContext, .ExternalContextFactory, jakarta.servlet.ServletContext, .ServletRequest, .ServletResponse

Field Summary

Modifier and TypeField and Description
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ExternalContext
getExternalContext(Object
In Jakarta Servlet environments, the ServletContext that is associated with this web application
servletContext
,
Object
In Jakarta Servlet environments, the ServletRequest that is to be processed
request
,
Object
In Jakarta Servlet environments, the ServletResponse that is to be processed
response
)

Implements abstract jakarta.faces.context.ExternalContextFactory.getExternalContext.

Create (if needed) and return an ExternalContext instance that is initialized for the processing of the specified request and response objects, for this web application.

Inherited from jakarta.faces.context.ExternalContextFactory:
getWrapped

Field Detail

DEFAULT_EXTERNAL_CONTEXT_KEYback to summary
public static final String DEFAULT_EXTERNAL_CONTEXT_KEY

Constructor Detail

ExternalContextFactoryImplback to summary
public ExternalContextFactoryImpl()

Method Detail

getExternalContextback to summary
public ExternalContext getExternalContext(Object servletContext, Object request, Object response) throws FacesException

Implements abstract jakarta.faces.context.ExternalContextFactory.getExternalContext.

Doc from jakarta.faces.context.ExternalContextFactory.getExternalContext.

Create (if needed) and return an ExternalContext instance that is initialized for the processing of the specified request and response objects, for this web application.

Parameters
servletContext:Object

In Jakarta Servlet environments, the ServletContext that is associated with this web application

request:Object

In Jakarta Servlet environments, the ServletRequest that is to be processed

response:Object

In Jakarta Servlet environments, the ServletResponse that is to be processed

Returns:ExternalContext

the instance of ExternalContext.

Annotations
@Override
Exceptions
FacesException:
if a ExternalContext cannot be constructed for the specified parameters