Author: mturk Date: Wed Jan 11 10:56:26 2012 New Revision: 1229955 URL: http://svn.apache.org/viewvc?rev=1229955&view=rev Log: BZ52450 Add setter for EntityResolver
Modified: tomcat/trunk/java/org/apache/jasper/xmlparser/ParserUtils.java Modified: tomcat/trunk/java/org/apache/jasper/xmlparser/ParserUtils.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/xmlparser/ParserUtils.java?rev=1229955&r1=1229954&r2=1229955&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/jasper/xmlparser/ParserUtils.java (original) +++ tomcat/trunk/java/org/apache/jasper/xmlparser/ParserUtils.java Wed Jan 11 10:56:26 2012 @@ -133,6 +133,17 @@ public class ParserUtils { return (parseXMLDocument(uri, new InputSource(is))); } + /** + * Set the EntityResolver. + * This is needed when the dtds and Jasper itself are in different + * classloaders (e.g. OSGi environment). + * + * @param er EntityResolver to use. + */ + public static void setEntityResolver(EntityResolver er) { + + entityResolver = er; + } // ------------------------------------------------------ Protected Methods --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org