| java.lang.Object org.objectweb.jonas_lib.deployment.validation.JEntityResolver
All known Subclasses: org.objectweb.jonas_lib.deployment.digester.JEntityResolverWithDigester,
JEntityResolver | public class JEntityResolver implements EntityResolver(Code) | | This class defines the entity resolver used to resolve DTDs/Schemas during
the xml parsing
author: Florent Benoit |
Method Summary | |
public void | addDtds(DTDs dtds) | public void | addSchemas(Schemas schemas) | public InputSource | resolveEntity(String publicId, String systemId) The Parser will call this method before opening any external entity except
the top-level document entity.
Parameters: publicId - The public identifier of the external entity being referenced,or null if none was supplied. Parameters: systemId - The system identifier of the external entity being referenced. |
JEntityResolver | public JEntityResolver()(Code) | | Constructor without JDigester instance (used in WsGen only)
|
addDtds | public void addDtds(DTDs dtds)(Code) | | Add the mapping between a public Id and the local path of the DTD
Parameters: dtds - Object containing the mapping PublicId --> Local URL |
addSchemas | public void addSchemas(Schemas schemas)(Code) | | Add the given Schemas to the schemas available for this resolver
Parameters: schemas - Definition of the schemas to add to this resolver |
resolveEntity | public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code) | | The Parser will call this method before opening any external entity except
the top-level document entity.
Parameters: publicId - The public identifier of the external entity being referenced,or null if none was supplied. Parameters: systemId - The system identifier of the external entity being referenced. An InputSource object describing the new input source, or null to request thatthe parser open a regular URI connection to the system identifier. throws: SAXException - Any SAX exception, possibly wrapping another exception. throws: IOException - A Java-specific IO exception, possibly the result of creatinga new InputStream or Reader for the InputSource. |
|
|