Package com.sun.faces.context
Class ExternalContextFactoryImpl
java.lang.Object
jakarta.faces.context.ExternalContextFactory
com.sun.faces.context.ExternalContextFactoryImpl
- All Implemented Interfaces:
FacesWrapper<ExternalContextFactory>
public class ExternalContextFactoryImpl extends ExternalContextFactory
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_EXTERNAL_CONTEXT_KEY -
Constructor Summary
Constructors Constructor Description ExternalContextFactoryImpl() -
Method Summary
Modifier and Type Method Description ExternalContextgetExternalContext(Object servletContext, Object request, Object response)Create (if needed) and return anExternalContextinstance that is initialized for the processing of the specified request and response objects, for this web application.
-
Field Details
-
Constructor Details
-
ExternalContextFactoryImpl
public ExternalContextFactoryImpl()
-
-
Method Details
-
getExternalContext
public ExternalContext getExternalContext(Object servletContext, Object request, Object response) throws FacesExceptionDescription copied from class:ExternalContextFactoryCreate (if needed) and return an
ExternalContextinstance that is initialized for the processing of the specified request and response objects, for this web application.- Specified by:
getExternalContextin classExternalContextFactory- Parameters:
servletContext- In Jakarta Servlet environments, theServletContextthat is associated with this web applicationrequest- In Jakarta Servlet environments, theServletRequestthat is to be processedresponse- In Jakarta Servlet environments, theServletResponsethat is to be processed- Returns:
- the instance of
ExternalContext. - Throws:
FacesException- if aExternalContextcannot be constructed for the specified parameters
-