Package org.apache.jasper.compiler
Class PageDataImpl
- java.lang.Object
-
- javax.servlet.jsp.tagext.PageData
-
- org.apache.jasper.compiler.PageDataImpl
-
- All Implemented Interfaces:
TagConstants
class PageDataImpl extends 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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
PageDataImpl.FirstPassVisitor
(package private) static class
PageDataImpl.SecondPassVisitor
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringBuilder
buf
private static java.lang.String
CDATA_END_SECTION
private static java.lang.String
CDATA_START_SECTION
private static java.nio.charset.Charset
CHARSET_UTF8
private static java.lang.String
JSP_VERSION
-
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 Constructor Description PageDataImpl(Node.Nodes page, Compiler compiler)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getInputStream()
Returns the input stream of the XML view.
-
-
-
Field Detail
-
JSP_VERSION
private static final java.lang.String JSP_VERSION
- See Also:
- Constant Field Values
-
CDATA_START_SECTION
private static final java.lang.String CDATA_START_SECTION
- See Also:
- Constant Field Values
-
CDATA_END_SECTION
private static final java.lang.String CDATA_END_SECTION
- See Also:
- Constant Field Values
-
CHARSET_UTF8
private static final java.nio.charset.Charset CHARSET_UTF8
-
buf
private java.lang.StringBuilder buf
-
-
Constructor Detail
-
PageDataImpl
public PageDataImpl(Node.Nodes page, Compiler compiler) throws JasperException
Constructor.- Parameters:
page
- the page nodes from which to generate the XML view- Throws:
JasperException
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream()
Returns the input stream of the XML view.- Specified by:
getInputStream
in classPageData
- Returns:
- the input stream of the XML view
-
-