RejectingEntityResolver.java
851 Bytes
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.slf4j.Logger
* org.slf4j.LoggerFactory
*/
package com.day.jcr.vault.util;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
public class RejectingEntityResolver
implements EntityResolver {
private static final Logger log = LoggerFactory.getLogger(RejectingEntityResolver.class);
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException {
log.warn("Rejecting external entity loading with publicId={} systemId={}", (Object)publicId, (Object)systemId);
return new InputSource(new StringReader(""));
}
}