Name
JspFactory
Synopsis
The JspFactory
is an abstract class that defines a
number of factory methods available to a JSP page at runtime for the
purposes of creating instances of various interfaces and classes used
to support the JSP implementation.
A JSP container creates an instance of a concrete subclass during its
initialization phase and makes it globally available for use by JSP
implementation classes. It does so by registering the instance
created with this class via the static setDefaultFactory( )
method.
Synopsis
Class name: |
|
Extends: |
None |
Implements: |
None |
Implemented by: |
Internal container-dependent class. Most containers use the reference implementation of the class (developed in the Apache Jakarta project). |
Constructor
-
public JspFactory( )
Creates a new
JspFactory
instance.
Methods
-
public static synchronized JspFactory getDefaultFactory( )
Returns the default
JspFactory
for the container.-
public abstract JspEngineInfo getEngineInfo( )
Returns the
JspEngineInfo
for the container.-
public abstract getPageContext getPageContext(javax.servlet.Servlet servlet,
javax.servlet.ServletRequest request, javax.servlet.ServletResponse response,
String errorPageURL, boolean needsSession, int buffer, boolean autoflush)
Returns a properly initialized instance of an implementation-dependent
PageContext
subclass. This method is typically called early in the processing of the_jspService( )
method of a JSP implementation class to get aPageContext ...
Get JavaServer Pages, Second Edition 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.