Package org.apache.jasper.compiler
Class PageDataImpl
java.lang.Object
javax.servlet.jsp.tagext.PageData
org.apache.jasper.compiler.PageDataImpl
- All Implemented Interfaces:
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).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringBuilder
private static final String
private static final String
private static final Charset
private static final String
Fields inherited from interface org.apache.jasper.compiler.TagConstants
ATTRIBUTE_ACTION, ATTRIBUTE_DIRECTIVE_ACTION, BODY_ACTION, DECLARATION_ACTION, DIRECTIVE_ACTION, DOBODY_ACTION, ELEMENT_ACTION, EXPRESSION_ACTION, FALLBACK_ACTION, FORWARD_ACTION, GET_PROPERTY_ACTION, INCLUDE_ACTION, INCLUDE_DIRECTIVE_ACTION, INVOKE_ACTION, JSP_ATTRIBUTE_ACTION, JSP_ATTRIBUTE_DIRECTIVE_ACTION, JSP_BODY_ACTION, JSP_DECLARATION_ACTION, JSP_DOBODY_ACTION, JSP_ELEMENT_ACTION, JSP_EXPRESSION_ACTION, JSP_FALLBACK_ACTION, JSP_FORWARD_ACTION, JSP_GET_PROPERTY_ACTION, JSP_INCLUDE_ACTION, JSP_INCLUDE_DIRECTIVE_ACTION, JSP_INVOKE_ACTION, JSP_OUTPUT_ACTION, JSP_PAGE_DIRECTIVE_ACTION, JSP_PARAM_ACTION, JSP_PARAMS_ACTION, JSP_PLUGIN_ACTION, JSP_ROOT_ACTION, JSP_SCRIPTLET_ACTION, JSP_SET_PROPERTY_ACTION, JSP_TAG_DIRECTIVE_ACTION, JSP_TAGLIB_DIRECTIVE_ACTION, JSP_TEXT_ACTION, JSP_TEXT_ACTION_END, JSP_URI, JSP_USE_BEAN_ACTION, JSP_VARIABLE_DIRECTIVE_ACTION, OUTPUT_ACTION, PAGE_DIRECTIVE_ACTION, PARAM_ACTION, PARAMS_ACTION, PLUGIN_ACTION, ROOT_ACTION, SCRIPTLET_ACTION, SET_PROPERTY_ACTION, TAG_DIRECTIVE_ACTION, TAGLIB_DIRECTIVE_ACTION, TEXT_ACTION, URN_JSPTAGDIR, URN_JSPTLD, USE_BEAN_ACTION, VARIABLE_DIRECTIVE_ACTION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the input stream of the XML view.
-
Field Details
-
JSP_VERSION
- See Also:
-
CDATA_START_SECTION
- See Also:
-
CDATA_END_SECTION
- See Also:
-
CHARSET_UTF8
-
buf
-
-
Constructor Details
-
PageDataImpl
Constructor.- Parameters:
page
- the page nodes from which to generate the XML view- Throws:
JasperException
-
-
Method Details
-
getInputStream
Returns the input stream of the XML view.- Specified by:
getInputStream
in classjavax.servlet.jsp.tagext.PageData
- Returns:
- the input stream of the XML view
-