Class 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
    Direct Known Subclasses:
    ParseTag, ParseTag, ParseTag

    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  
      • Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport

        bodyContent
      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface javax.servlet.jsp.tagext.BodyTag

        EVAL_BODY_BUFFERED, EVAL_BODY_TAG
      • Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.servlet.jsp.tagext.Tag

        getParent, setParent
    • 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
    • Constructor Detail

      • ParseSupport

        public ParseSupport()
    • Method Detail

      • init

        private void init()
      • doEndTag

        public int doEndTag()
                     throws javax.servlet.jsp.JspException
        Specified by:
        doEndTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
        Throws:
        javax.servlet.jsp.JspException
      • release

        public void release()
        Specified by:
        release in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        release in class javax.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 interface javax.servlet.jsp.tagext.Tag
        Overrides:
        setPageContext in class javax.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)