Home » geronimo-2.2-source-release » org.apache.geronimo.deployment.xml » [javadoc | source]
public class: LocalEntityResolver [javadoc | source]

All Implemented Interfaces:

Implementation of EntityResolver that looks to the local filesystem. The implementation tries to resolve an entity via the following steps: The catalog resolving is based on the OASIS XML Catalog Standard. OASIS seems to move it around. Try http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=entity and the list of documents currently at http://www.oasis-open.org/committees/documents.php?wg_abbrev=entity An older version may be at http://www.oasis-open.org/committees/entity/archives/spec-2001-08-01.html and see http://www.oasis-open.org/html/a401.htm
Field Summary
public static final  GBeanInfo GBEAN_INFO     
 public LocalEntityResolver(URI catalogFileURI,
    URI localRepositoryURI,
    boolean failOnUnresolvable) 
Method from org.apache.geronimo.deployment.xml.LocalEntityResolver Summary:
addPublicMapping,   addSystemMapping,   getCatalogFileURI,   getGBeanInfo,   getLocalRepositoryURI,   isFailOnUnresolvable,   resolveEntity,   resolveWithCatalog,   resolveWithClasspath,   resolveWithRepository,   setCatalogFileURI,   setFailOnUnresolvable,   setLocalRepositoryURI
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.deployment.xml.LocalEntityResolver Detail:
 public  void addPublicMapping(String publicId,
    String uri) 
 public  void addSystemMapping(String systemId,
    String uri) 
 public URI getCatalogFileURI() 
 public static GBeanInfo getGBeanInfo() 
 public URI getLocalRepositoryURI() 
 public boolean isFailOnUnresolvable() 
 public InputSource resolveEntity(String publicId,
    String systemId) throws SAXException, IOException 
    Attempt to resolve the entity based on the supplied publicId and systemId. First the catalog is queried with both publicId and systemId. Then the local repository is queried with the file name part of the systemId Then the classpath is queried with the file name part of the systemId. Then, if failOnUnresolvable is true, an exception is thrown: otherwise null is returned.
 InputSource resolveWithCatalog(String publicId,
    String systemId) throws MalformedURLException, IOException 
    Try to resolve using the catalog file
 InputSource resolveWithClasspath(String publicId,
    String systemId) 
    Try to resolve using the the classpath and only the supplied systemID. Any path in the systemID will be removed.
 InputSource resolveWithRepository(String publicId,
    String systemId) 
    Try to resolve using the local repository and only the supplied systemID filename. Any path in the systemID will be removed.
 public  void setCatalogFileURI(URI catalogFileURI) 
 public  void setFailOnUnresolvable(boolean b) 
    Sets the setFailOnUnresolvable flag.
 public  void setLocalRepositoryURI(URI string)