Name
JspFactory
Synopsis
|
Class Name: |
javax.servlet.jsp.JspFactory |
|
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). |
Description
The JspFactory is an abstract class that defines a
number of factory methods available to a JSP page at runtime, for the
purpose 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 by registering the instance created with this
class via the static setDefaultFactory( ) method.
Class Summary
public abstract class JspFactory {
// Constructor
public JspFactory( )
// Methods
public static JspFactory getDefaultFactory( );
public abstract JspEngineInfo getEngineInfo( );
public abstract PageContext
getPageContext(javax.servlet.Servlet servlet,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
String errorPageURL, boolean needsSession,
int buffer, boolean autoflush);
public abstract void releasePageContext(PageContext pc);
public static void setDefaultFactory(JspFactory deflt);
}Constructor
-
public JspFactory( ) Creates a new
JspFactoryinstance.
Methods
-
public static JspFactory getDefaultFactory( ) Returns the default
JspFactoryfor the container.-
public abstract JspEngineInfo getEngineInfo( ) Returns ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access