org.apache.jasper.compiler
Class JspUtil

java.lang.Object
  |
  +--org.apache.jasper.compiler.JspUtil

public class JspUtil
extends java.lang.Object

This class has all the utility method(s). Ideally should move all the bean containers here.

Author:
Mandar Raje., Rajiv Mordani., Danno Ferrin

Inner Class Summary
static class JspUtil.ValidAttribute
           
 
Constructor Summary
JspUtil()
           
 
Method Summary
static java.util.Hashtable attrsToHashtable(org.xml.sax.Attributes attrs)
           
static void checkAttributes(java.lang.String typeOfTag, org.xml.sax.Attributes attrs, JspUtil.ValidAttribute[] validAttributes, Mark start)
           
static java.lang.String escapeQueryString(java.lang.String unescString)
           
static java.lang.String escapeXml(java.lang.String s)
          Escape the 5 entities defined by XML.
static java.lang.String getExpr(java.lang.String expression)
           
static java.lang.String getExprInXml(java.lang.String expression)
          Takes a potential expression and converts it into XML form
static boolean isExpression(java.lang.String token)
           
static org.w3c.dom.Document parseXMLDoc(java.lang.String uri, java.io.InputStream in)
          Parses the XML document contained in the InputStream.
static org.w3c.dom.Document parseXMLDocJaxp(java.lang.String uri, java.io.InputStream in)
          Parses the XML document contained in the InputStream.
static char[] removeQuotes(char[] chars)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspUtil

public JspUtil()
Method Detail

removeQuotes

public static char[] removeQuotes(char[] chars)

isExpression

public static boolean isExpression(java.lang.String token)

getExpr

public static java.lang.String getExpr(java.lang.String expression)

getExprInXml

public static java.lang.String getExprInXml(java.lang.String expression)
Takes a potential expression and converts it into XML form

parseXMLDoc

public static org.w3c.dom.Document parseXMLDoc(java.lang.String uri,
                                               java.io.InputStream in)
                                        throws JasperException
Parses the XML document contained in the InputStream.

parseXMLDocJaxp

public static org.w3c.dom.Document parseXMLDocJaxp(java.lang.String uri,
                                                   java.io.InputStream in)
                                            throws JasperException
Parses the XML document contained in the InputStream. This XML document is either web.xml or a tld. [The TLD has to be cached internally (see MyEntityResolver)]

checkAttributes

public static void checkAttributes(java.lang.String typeOfTag,
                                   org.xml.sax.Attributes attrs,
                                   JspUtil.ValidAttribute[] validAttributes,
                                   Mark start)
                            throws JasperException

escapeQueryString

public static java.lang.String escapeQueryString(java.lang.String unescString)

escapeXml

public static java.lang.String escapeXml(java.lang.String s)
Escape the 5 entities defined by XML.

attrsToHashtable

public static java.util.Hashtable attrsToHashtable(org.xml.sax.Attributes attrs)


Copyright © 2000 Apache Software Foundation. All Rights Reserved.