public class Resolver
extends java.lang.Object
implements org.xml.sax.EntityResolver, javax.xml.transform.URIResolver
In the adapter configuration file this class is aliased as simple-entity-resolver which is the preferred alternative to the fully qualified classname when building your configuration.
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
Resolver() |
Modifier and Type | Method and Description |
---|---|
protected void |
debugLog(java.lang.String msg,
java.lang.Object... objects) |
java.lang.Boolean |
getAdditionalDebug() |
java.lang.Integer |
getMaxDestinationCacheSize()
Get the max number of entries in the cache.
|
int |
maxDestinationCacheSize() |
javax.xml.transform.Source |
resolve(java.lang.String href,
java.lang.String base) |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId) |
protected java.io.InputStream |
retrieveAndCache(URLString url) |
void |
setAdditionalDebug(java.lang.Boolean b) |
void |
setMaxDestinationCacheSize(java.lang.Integer maxSize)
Set the max number of entries in the cache.
|
protected java.io.InputStream retrieveAndCache(URLString url) throws java.lang.Exception
java.lang.Exception
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException
resolveEntity
in interface org.xml.sax.EntityResolver
org.xml.sax.SAXException
EntityResolver.resolveEntity(String, String)
public javax.xml.transform.Source resolve(java.lang.String href, java.lang.String base) throws javax.xml.transform.TransformerException
resolve
in interface javax.xml.transform.URIResolver
javax.xml.transform.TransformerException
URIResolver.resolve(java.lang.String, java.lang.String)
public java.lang.Integer getMaxDestinationCacheSize()
public void setMaxDestinationCacheSize(java.lang.Integer maxSize)
Entries will be removed on a least recently accessed basis.
maxSize
- the maximum number of entries, default 16public int maxDestinationCacheSize()
public java.lang.Boolean getAdditionalDebug()
public void setAdditionalDebug(java.lang.Boolean b)
protected void debugLog(java.lang.String msg, java.lang.Object... objects)