@@ -0,0 +1,1388 @@
+package org.directwebremoting.util;%0A%0Aimport java.io.IOException;%0Aimport java.io.StringReader;%0A%0Aimport org.directwebremoting.impl.DefaultPageNormalizer;%0Aimport org.xml.sax.EntityResolver;%0Aimport org.xml.sax.InputSource;%0Aimport org.xml.sax.SAXException;%0A%0A/**%0A * An EntityResolver for use when you don't want to do any entity resolving.%0A * %3Cp%3EI think this is technically a violation of all sorts of things because the%0A * DTD affects how a document is parsed, and this just dumps all DTDs. However%0A * when you are not interested in validity, you just want to get informaion when%0A * you know that the DTD won't affect the documnent, this could be useful.%0A * @author Joe Walker %5Bjoe at getahead dot ltd dot uk%5D%0A */%0Apublic class EmptyEntityResolver implements EntityResolver%0A%7B%0A    /* (non-Javadoc)%0A     * @see org.xml.sax.EntityResolver#resolveEntity(java.lang.String, java.lang.String)%0A     */%0A    public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException%0A    %7B%0A        log.debug(%22resolveEntity(publicId=%22 + publicId + %22, systemId=%22 + systemId + %22) returning null%22);%0A%0A        InputSource is = new InputSource(new StringReader(%22%22));%0A        is.setPublicId(publicId);%0A        is.setSystemId(systemId);%0A%0A        return is;%0A    %7D%0A%0A    /**%0A     * The log stream%0A     */%0A    private static final Logger log = Logger.getLogger(DefaultPageNormalizer.class);%0A%7D%0A

Allow startup without network access