Package javax.servlet.jsp
Class JspFactory
java.lang.Object
javax.servlet.jsp.JspFactory
Minimal JSP Factory implementation for Gumdrop JSP support.
This factory class provides the default implementation for creating PageContext instances and managing JSP runtime resources.
- Author:
- Chris Burdess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JspFactoryReturns the default factory for this implementation.abstract PageContextgetPageContext(javax.servlet.Servlet servlet, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) Obtain an instance of a PageContext class implementation for use by the calling Servlet and base implementation.abstract voidCalled to release a previously allocated PageContext object.static voidsetDefaultFactory(JspFactory deflt) Sets the default factory for this implementation.
-
Constructor Details
-
JspFactory
public JspFactory()Sole constructor. (For invocation by subclass constructors, typically implicit.)
-
-
Method Details
-
setDefaultFactory
Sets the default factory for this implementation. It is illegal for any principal other than the JSP Engine runtime to call this method.- Parameters:
deflt- The default factory implementation
-
getDefaultFactory
Returns the default factory for this implementation.- Returns:
- the default factory for this implementation
-
getPageContext
public abstract PageContext getPageContext(javax.servlet.Servlet servlet, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) Obtain an instance of a PageContext class implementation for use by the calling Servlet and base implementation.- Parameters:
servlet- the requesting servletrequest- the current request pending on the servletresponse- the current response pending on the servleterrorPageURL- the URL of the error page for the requesting JSP, or nullneedsSession- true if the JSP participates in a sessionbufferSize- the buffer size from the page directive, or 8192autoFlush- whether the buffer should be auto flushed- Returns:
- A valid PageContext instance for use by the calling servlet.
-
releasePageContext
Called to release a previously allocated PageContext object. Results in PageContext.release() being invoked. This method should be invoked prior to returning from the _jspService() method of a JSP implementation class.- Parameters:
pc- A PageContext previously obtained by getPageContext()
-