Class ParseSupport
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- org.apache.taglibs.standard.tag.common.xml.ParseSupport
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public abstract class ParseSupport extends javax.servlet.jsp.tagext.BodyTagSupport
Support for tag handlers for <parse>, the XML parsing tag.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private XmlUtil.JstlEntityResolver
entityResolver
protected org.xml.sax.XMLFilter
filter
private int
scope
private int
scopeDom
protected java.lang.String
systemId
private java.lang.String
var
private java.lang.String
varDom
protected java.lang.Object
xml
-
Constructor Summary
Constructors Constructor Description ParseSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doEndTag()
private void
init()
private org.w3c.dom.Document
parseInputSource(org.xml.sax.InputSource s)
Parses the given InputSource into a Document.private org.w3c.dom.Document
parseInputSourceWithFilter(org.xml.sax.InputSource s, org.xml.sax.XMLFilter f)
Parses the given InputSource after, applying the given XMLFilter.void
release()
void
setPageContext(javax.servlet.jsp.PageContext pageContext)
void
setScope(java.lang.String scope)
void
setScopeDom(java.lang.String scopeDom)
void
setVar(java.lang.String var)
void
setVarDom(java.lang.String varDom)
-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
-
-
-
Field Detail
-
xml
protected java.lang.Object xml
-
systemId
protected java.lang.String systemId
-
filter
protected org.xml.sax.XMLFilter filter
-
var
private java.lang.String var
-
varDom
private java.lang.String varDom
-
scope
private int scope
-
scopeDom
private int scopeDom
-
entityResolver
private XmlUtil.JstlEntityResolver entityResolver
-
-
Method Detail
-
init
private void init()
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
-
release
public void release()
- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
release
in classjavax.servlet.jsp.tagext.BodyTagSupport
-
parseInputSourceWithFilter
private org.w3c.dom.Document parseInputSourceWithFilter(org.xml.sax.InputSource s, org.xml.sax.XMLFilter f) throws javax.servlet.jsp.JspException
Parses the given InputSource after, applying the given XMLFilter.- Throws:
javax.servlet.jsp.JspException
-
parseInputSource
private org.w3c.dom.Document parseInputSource(org.xml.sax.InputSource s) throws javax.servlet.jsp.JspException
Parses the given InputSource into a Document.- Throws:
javax.servlet.jsp.JspException
-
setPageContext
public void setPageContext(javax.servlet.jsp.PageContext pageContext)
- Specified by:
setPageContext
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
setPageContext
in classjavax.servlet.jsp.tagext.TagSupport
-
setVar
public void setVar(java.lang.String var)
-
setVarDom
public void setVarDom(java.lang.String varDom)
-
setScope
public void setScope(java.lang.String scope)
-
setScopeDom
public void setScopeDom(java.lang.String scopeDom)
-
-