public class InjectingEntityResolver extends Object implements EntityResolver
EntityResolver that will inject a couple of additional general internal
entities into the DTD resolved by underlying resolver.| Modifier and Type | Class and Description |
|---|---|
class |
InjectingEntityResolver.ReplacementInputSource
The
InputSource that will replace the first InputSource
retrieved, containig XML entity declarations for all entities defined in the POM. |
| Constructor and Description |
|---|
InjectingEntityResolver(List entities,
EntityResolver resolver,
String type,
org.apache.maven.plugin.logging.Log log)
Creates a new InjectingEntityResolver object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
forceInjection()
Forces the object to inject the entities.
|
InputSource |
resolveEntity(String publicId,
String systemId)
Returns the
InputSource containing the external entity's data. |
public InjectingEntityResolver(List entities, EntityResolver resolver, String type, org.apache.maven.plugin.logging.Log log)
entities - DOCUMENT ME!resolver - DOCUMENT ME!type - DOCUMENT ME!log - DOCUMENT ME!public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
InputSource containing the external entity's data. This
implementation will normally return an InputSource that contains all additional
entities defined, including a reference to the InputSource that was originally
requested. TODO Figure out if this works with all parsers. There might be a couple of cases
in which we would need to perform some additional work.resolveEntity in interface EntityResolverpublicId - The public identifier of the entity.systemId - The system identifier of the entity.InputSource producing the data required.SAXException - DOCUMENT ME!IOException - DOCUMENT ME!public void forceInjection()
Copyright © 2006–2016 Wilfred Springer, Cedric Pronzato. All rights reserved.