org.apache.jasper.compiler
Class PageDataImpl
java.lang.Object
|
+--javax.servlet.jsp.tagext.PageData
|
+--org.apache.jasper.compiler.PageDataImpl
- All Implemented Interfaces:
- TagConstants
- public class PageDataImpl
- extends javax.servlet.jsp.tagext.PageData
- implements TagConstants
An implementation of javax.servlet.jsp.tagext.PageData which
builds the XML view of a given page.
The XML view is built in two passes:
During the first pass, the FirstPassVisitor collects the attributes of the
top-level jsp:root and those of the jsp:root elements of any included
pages, and adds them to the jsp:root element of the XML view.
In addition, any taglib directives are converted into xmlns: attributes and
added to the jsp:root element of the XML view.
This pass ignores any nodes other than JspRoot and TaglibDirective.
During the second pass, the SecondPassVisitor produces the XML view, using
the combined jsp:root attributes determined in the first pass and any
remaining pages nodes (this pass ignores any JspRoot and TaglibDirective
nodes).
- Author:
- Jan Luehe
Fields inherited from interface org.apache.jasper.compiler.TagConstants |
JSP_ATTRIBUTE, JSP_ATTRIBUTE_DIRECTIVE, JSP_BODY, JSP_DECLARATION, JSP_DECLARATION_END, JSP_DECLARATION_START, JSP_DO_BODY, JSP_ELEMENT, JSP_EXPRESSION, JSP_EXPRESSION_END, JSP_EXPRESSION_START, JSP_FALLBACK, JSP_FORWARD, JSP_GET_PROPERTY, JSP_INCLUDE, JSP_INCLUDE_DIRECTIVE, JSP_INVOKE, JSP_PAGE_DIRECTIVE, JSP_PARAM, JSP_PARAMS, JSP_PLUGIN, JSP_ROOT, JSP_ROOT_END, JSP_SCRIPTLET, JSP_SCRIPTLET_END, JSP_SCRIPTLET_START, JSP_SET_PROPERTY, JSP_TAG_DIRECTIVE, JSP_TEXT, JSP_TEXT_END, JSP_TEXT_START, JSP_USE_BEAN, JSP_VARIABLE_DIRECTIVE |
Method Summary |
java.io.InputStream |
getInputStream()
Returns the input stream of the XML view. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageDataImpl
public PageDataImpl(Node.Nodes page)
throws JasperException
- Constructor.
- Parameters:
page
- the page nodes from which to generate the XML view
getInputStream
public java.io.InputStream getInputStream()
- Returns the input stream of the XML view.
- Specified by:
getInputStream
in class javax.servlet.jsp.tagext.PageData
- Returns:
- the input stream of the XML view
Copyright © 2000 Apache Software Foundation. All Rights Reserved.