RejectingEntityDefaultHandler.java
868 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.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
public class RejectingEntityDefaultHandler
extends DefaultHandler {
private static final Logger log = LoggerFactory.getLogger(RejectingEntityDefaultHandler.class);
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException {
log.warn("Rejecting external entity loading with publicId={} systemId={}", (Object)publicId, (Object)systemId);
return new InputSource(new StringReader(""));
}
}