|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent
net.shibboleth.metadata.pipeline.BaseStage<DomElementItem>
net.shibboleth.metadata.dom.NamespaceStrippingStage
@ThreadSafe public class NamespaceStrippingStage
A stage which removes all evidence of a given XML namespace from each metadata item.
| Field Summary | |
|---|---|
private Logger |
log
Class logger. |
private String |
namespace
XML namespace to remove. |
| Constructor Summary | |
|---|---|
NamespaceStrippingStage()
|
|
| Method Summary | |
|---|---|
protected void |
doDestroy()
|
protected void |
doExecute(Collection<DomElementItem> items)
Performs the stage processing on the given Item collection. |
protected void |
doInitialize()
|
String |
getNamespace()
Gets the namespace being checked for. |
private void |
processAttributes(Element element)
Process the attributes on an element. |
private void |
processElement(Element element,
int depth)
Process an individual DOM element. |
private void |
processItem(DomElementItem item)
Processes the given DomElementItem. |
void |
setNamespace(String ns)
Sets the namespace to check for. |
| Methods inherited from class net.shibboleth.metadata.pipeline.BaseStage |
|---|
execute, setId |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponent |
|---|
getId |
| Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent |
|---|
destroy, initialize, isDestroyed, isInitialized |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent |
|---|
destroy, isDestroyed |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiableComponent |
|---|
getId |
| Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent |
|---|
initialize, isInitialized |
| Field Detail |
|---|
private final Logger log
private String namespace
| Constructor Detail |
|---|
public NamespaceStrippingStage()
| Method Detail |
|---|
@Nullable public String getNamespace()
public void setNamespace(@Nonnull@NotEmpty
String ns)
ns - namespace URI as a string
private void processItem(@Nonnull
DomElementItem item)
DomElementItem.
item - DomElementItem to process.
private void processAttributes(@Nonnull
Element element)
element - the Element to process
private void processElement(@Nonnull
Element element,
int depth)
element - element to processdepth - processing depth, starting with 0 for the document element.
protected void doExecute(@Nonnull@NonnullElements
Collection<DomElementItem> items)
throws StageProcessingException
The stage is guaranteed to be have been initialized and not destroyed when this is invoked.
doExecute in class BaseStage<DomElementItem>items - collection to be processed
StageProcessingException - thrown if there is an unrecoverable problem when processing the stageprotected void doDestroy()
doDestroy in class net.shibboleth.utilities.java.support.component.AbstractDestructableInitializableComponent
protected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractDestructableIdentifiableInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||