Package org.apache.wicket.util.xml
Class CustomEntityResolver
- java.lang.Object
-
- org.apache.wicket.util.xml.CustomEntityResolver
-
- All Implemented Interfaces:
EntityResolver
public class CustomEntityResolver extends Object implements EntityResolver
entity resolver that tries to locate a document type definition (DTD) using a set of custom entity resolvers- Author:
- pete
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CustomEntityResolver.EntityKey
key for entitystatic interface
CustomEntityResolver.EntityLocator
entity locatorstatic class
CustomEntityResolver.ServletApiEntityLocator
entity locator for resources inside servlet-api.jar
-
Constructor Summary
Constructors Constructor Description CustomEntityResolver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomEntityResolver
getPreloaded()
get default instances of custom entity resolver with preloaded well-known entitiesvoid
put(CustomEntityResolver.EntityKey key, CustomEntityResolver.EntityLocator locator)
add custom entity resolverInputSource
resolveEntity(String id, String url)
-
-
-
Constructor Detail
-
CustomEntityResolver
public CustomEntityResolver()
-
-
Method Detail
-
getPreloaded
public static CustomEntityResolver getPreloaded()
get default instances of custom entity resolver with preloaded well-known entities- Returns:
- instance of resolver
-
put
public void put(CustomEntityResolver.EntityKey key, CustomEntityResolver.EntityLocator locator)
add custom entity resolver- Parameters:
key
- key for lookup (contains id and url)locator
- locator for looking up entity
-
resolveEntity
public InputSource resolveEntity(String id, String url) throws SAXException, IOException
- Specified by:
resolveEntity
in interfaceEntityResolver
- Throws:
SAXException
IOException
-
-