public class ExtendPreprocessor extends Object implements DocumentElementPreprocessor.ElementPreprocessor
ExtendPreprocessor is an DocumentElementPreprocessor.ElementPreprocessor that will
inject an "acceptor-config" XmlElement into a "proxy-scheme"
XmlElement if one does not exist.| Modifier and Type | Field and Description |
|---|---|
static ExtendPreprocessor |
INSTANCE
This singleton instance of the
ExtendPreprocessor. |
| Constructor and Description |
|---|
ExtendPreprocessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
preprocess(ProcessingContext context,
XmlElement element)
Process an
XmlElement, optionally mutating it (or it's children) if required. |
public static final ExtendPreprocessor INSTANCE
ExtendPreprocessor.public boolean preprocess(ProcessingContext context, XmlElement element) throws ConfigurationException
XmlElement, optionally mutating it (or it's children) if required.
Note: An implementation of this interface should avoid
attempting to traverse child XmlElements. If you wish to
manually traverse or change the entire document, you should instead use
a DocumentPreprocessor.
preprocess in interface DocumentElementPreprocessor.ElementPreprocessorcontext - the ProcessingContext in which the pre-processing is occurringelement - the XmlElement to preprocesstrue if the specified XmlElement should be
re-preprocessed by this and other DocumentElementPreprocessor.ElementPreprocessors
due to the XmlElement being modified, false
otherwise.ConfigurationException - if during pre-processing of the XmlElement a configuration
issue was discovered (or if pre-processing fails for some reason)