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 JspFactory instance.

Methods

public static JspFactory getDefaultFactory( )

Returns the default JspFactory for the container.

public abstract JspEngineInfo getEngineInfo( )

Returns ...

Get Java Server Pages 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.