Package org.apache.wiki.auth.authorize
Class WebContainerAuthorizer.LocalEntityResolver
- java.lang.Object
 - 
- org.apache.wiki.auth.authorize.WebContainerAuthorizer.LocalEntityResolver
 
 
- 
- All Implemented Interfaces:
 org.xml.sax.EntityResolver
- Enclosing class:
 - WebContainerAuthorizer
 
public class WebContainerAuthorizer.LocalEntityResolver extends java.lang.Object implements org.xml.sax.EntityResolver
XML entity resolver that redirects resolution requests by JDOM, JAXP and other XML parsers to locally-cached copies of the resources. Local resources are stored in the
WEB-INF/dtddirectory.For example, Sun Microsystem's DTD for the webapp 2.3 specification is normally kept at
http://java.sun.com/dtd/web-app_2_3.dtd. The local copy is stored atWEB-INF/dtd/web-app_2_3.dtd. 
- 
- 
Constructor Summary
Constructors Constructor Description LocalEntityResolver() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.InputSourceresolveEntity(java.lang.String publicId, java.lang.String systemId)Returns an XML input source for a requested external resource by reading the resource instead from local storage. 
 - 
 
- 
- 
Constructor Detail
- 
LocalEntityResolver
public LocalEntityResolver()
 
 - 
 
- 
Method Detail
- 
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
Returns an XML input source for a requested external resource by reading the resource instead from local storage. The local resource path isWEB-INF/dtd, plus the file name of the requested resource, minus the non-filename path information.- Specified by:
 resolveEntityin interfaceorg.xml.sax.EntityResolver- Parameters:
 publicId- the public ID, such as-//Sun Microsystems, Inc.//DTD Web Application 2.3//ENsystemId- the system ID, such ashttp://java.sun.com/dtd/web-app_2_3.dtd- Returns:
 - the InputSource containing the resolved resource
 - Throws:
 org.xml.sax.SAXException- if the resource cannot be resolved locallyjava.io.IOException- if the resource cannot be opened- See Also:
 EntityResolver.resolveEntity(java.lang.String, java.lang.String)
 
 - 
 
 -