public class CRDetectionStage extends AbstractDOMTraversalStage
Element-based Items (text nodes and attributes) and
mark them as being in error if a CR character appears. This can only be the case if the XML
document contained an explicit character reference such as .
This stage is specifically intended to detect metadata which would trigger the SSPCPP-684
issue in the Shibboleth SP.AbstractDOMTraversalStage.TraversalContext| Modifier and Type | Field and Description |
|---|---|
private static char |
CR
Character value we are looking for.
|
| Constructor and Description |
|---|
CRDetectionStage() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
applicable(Element element)
Indicates whether the visitor should be applied to a particular
Element. |
protected void |
visit(Element element,
AbstractDOMTraversalStage.TraversalContext context)
Visit a particular
Element. |
addError, ancestorEntity, doExecuteexecute, getCollectionPredicate, setCollectionPredicatesetIddoInitialize, getIddestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedprivate static final char CR
protected boolean applicable(Element element)
AbstractDOMTraversalStageElement.applicable in class AbstractDOMTraversalStageelement - Element to which we may wish to apply the visitortrue if the visitor should be applied to this Element.protected void visit(Element element, AbstractDOMTraversalStage.TraversalContext context) throws StageProcessingException
AbstractDOMTraversalStageElement.visit in class AbstractDOMTraversalStageelement - the Element to visitcontext - the traversal contextStageProcessingException - if errors occur during processingCopyright © 1999–2016. All rights reserved.