public abstract class ParseSupport
extends javax.servlet.jsp.tagext.BodyTagSupport
Support for tag handlers for <parse>, the XML parsing tag.
Modifier and Type | Class and Description |
---|---|
static class |
ParseSupport.JstlEntityResolver
Lets us resolve relative external entities.
|
Modifier and Type | Field and Description |
---|---|
private javax.xml.parsers.DocumentBuilder |
db |
private javax.xml.parsers.DocumentBuilderFactory |
dbf |
protected org.xml.sax.XMLFilter |
filter |
private int |
scope |
private int |
scopeDom |
protected java.lang.String |
systemId |
private javax.xml.transform.TransformerFactory |
tf |
private javax.xml.transform.sax.TransformerHandler |
th |
private java.lang.String |
var |
private java.lang.String |
varDom |
protected java.lang.Object |
xml |
Constructor and Description |
---|
ParseSupport() |
Modifier and Type | Method and 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.
|
private org.w3c.dom.Document |
parseReader(java.io.Reader r)
Parses the given Reader into a Document.
|
private org.w3c.dom.Document |
parseReaderWithFilter(java.io.Reader r,
org.xml.sax.XMLFilter f)
Parses the given Reader after applying the given XMLFilter.
|
private org.w3c.dom.Document |
parseString(java.lang.String s)
Parses the given String into a Document.
|
private org.w3c.dom.Document |
parseStringWithFilter(java.lang.String s,
org.xml.sax.XMLFilter f)
Parses the given String after applying the given XMLFilter.
|
private org.w3c.dom.Document |
parseURL(java.lang.String url)
Parses the URL (passed as a String) into a Document.
|
private org.w3c.dom.Document |
parseURLWithFilter(java.lang.String url,
org.xml.sax.XMLFilter f)
Parses the given Reader after applying the given XMLFilter.
|
void |
release() |
void |
setScope(java.lang.String scope) |
void |
setScopeDom(java.lang.String scopeDom) |
void |
setVar(java.lang.String var) |
void |
setVarDom(java.lang.String varDom) |
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected java.lang.Object xml
protected java.lang.String systemId
protected org.xml.sax.XMLFilter filter
private java.lang.String var
private java.lang.String varDom
private int scope
private int scopeDom
private javax.xml.parsers.DocumentBuilderFactory dbf
private javax.xml.parsers.DocumentBuilder db
private javax.xml.transform.TransformerFactory tf
private javax.xml.transform.sax.TransformerHandler th
private void init()
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
private org.w3c.dom.Document parseInputSourceWithFilter(org.xml.sax.InputSource s, org.xml.sax.XMLFilter f) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
private org.w3c.dom.Document parseReaderWithFilter(java.io.Reader r, org.xml.sax.XMLFilter f) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
private org.w3c.dom.Document parseStringWithFilter(java.lang.String s, org.xml.sax.XMLFilter f) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
private org.w3c.dom.Document parseURLWithFilter(java.lang.String url, org.xml.sax.XMLFilter f) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
private org.w3c.dom.Document parseInputSource(org.xml.sax.InputSource s) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
private org.w3c.dom.Document parseReader(java.io.Reader r) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
private org.w3c.dom.Document parseString(java.lang.String s) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
private org.w3c.dom.Document parseURL(java.lang.String url) throws org.xml.sax.SAXException, java.io.IOException
org.xml.sax.SAXException
java.io.IOException
public void setVar(java.lang.String var)
public void setVarDom(java.lang.String varDom)
public void setScope(java.lang.String scope)
public void setScopeDom(java.lang.String scopeDom)