1 package org.directwebremoting.util; 2 3 import java.io.IOException ; 4 import java.io.StringReader ; 5 6 import org.directwebremoting.impl.DefaultPageNormalizer; 7 import org.xml.sax.EntityResolver ; 8 import org.xml.sax.InputSource ; 9 import org.xml.sax.SAXException ; 10 11 19 public class EmptyEntityResolver implements EntityResolver 20 { 21 24 public InputSource resolveEntity(String publicId, String systemId) throws SAXException , IOException 25 { 26 log.debug("resolveEntity(publicId=" + publicId + ", systemId=" + systemId + ") returning null"); 27 28 InputSource is = new InputSource (new StringReader ("")); 29 is.setPublicId(publicId); 30 is.setSystemId(systemId); 31 32 return is; 33 } 34 35 38 private static final Logger log = Logger.getLogger(DefaultPageNormalizer.class); 39 } 40 | Popular Tags |