⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 emptyentityresolver.java

📁 反向的AJAX。最大的特性是我们成为反向的Ajax。DWR1.x允许你用javascript异步的访问java代码。DWR2.0在这上允许你建立异步java访问javascript代码。 反向的Aj
💻 JAVA
字号:
package org.directwebremoting.util;import java.io.IOException;import java.io.StringReader;import org.directwebremoting.impl.DefaultPageNormalizer;import org.xml.sax.EntityResolver;import org.xml.sax.InputSource;import org.xml.sax.SAXException;/** * An EntityResolver for use when you don't want to do any entity resolving. * <p>I think this is technically a violation of all sorts of things because the * DTD affects how a document is parsed, and this just dumps all DTDs. However * when you are not interested in validity, you just want to get informaion when * you know that the DTD won't affect the documnent, this could be useful. * @author Joe Walker [joe at getahead dot ltd dot uk] */public class EmptyEntityResolver implements EntityResolver{    /* (non-Javadoc)     * @see org.xml.sax.EntityResolver#resolveEntity(java.lang.String, java.lang.String)     */    public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException    {        log.debug("resolveEntity(publicId=" + publicId + ", systemId=" + systemId + ") returning null");        InputSource is = new InputSource(new StringReader(""));        is.setPublicId(publicId);        is.setSystemId(systemId);        return is;    }    /**     * The log stream     */    private static final Logger log = Logger.getLogger(DefaultPageNormalizer.class);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -