Package net.shibboleth.ext.spring.util
Class LocalOnlyResourceEntityResolver
java.lang.Object
org.springframework.beans.factory.xml.DelegatingEntityResolver
net.shibboleth.ext.spring.util.LocalOnlyResourceEntityResolver
- All Implemented Interfaces:
EntityResolver
Modified copy of Spring's existing
ResourceEntityResolver class that
elides the fall-through logic allowing for http(s) resolution of entities.-
Field Summary
FieldsFields inherited from class org.springframework.beans.factory.xml.DelegatingEntityResolver
DTD_SUFFIX, XSD_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionCreate a ResourceEntityResolver for the specified ResourceLoader (usually, an ApplicationContext). -
Method Summary
Methods inherited from class org.springframework.beans.factory.xml.DelegatingEntityResolver
toString
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger log -
resourceLoader
-
-
Constructor Details
-
LocalOnlyResourceEntityResolver
Create a ResourceEntityResolver for the specified ResourceLoader (usually, an ApplicationContext).- Parameters:
loader- the ResourceLoader (or ApplicationContext) to load XML entity includes with
-
-
Method Details
-
resolveEntity
@Nullable public InputSource resolveEntity(@Nullable String publicId, @Nullable String systemId) throws SAXException, IOException - Specified by:
resolveEntityin interfaceEntityResolver- Overrides:
resolveEntityin classDelegatingEntityResolver- Throws:
SAXExceptionIOException
-