|
||||||||||
| 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<Item<?>>
net.shibboleth.metadata.pipeline.ScriptletStage
@ThreadSafe public class ScriptletStage
A pipeline stage that computes that transforms the collection of Item via a script.
This stage requires the following properties be set prior to initialization:
scriptFileThis classes uses the JSR-223 scripting interface. As such, in order to use a language other than ECMAscript (a.k.a. javascript), you must ensure the scripting engine and any associated libraries necessary for its operation are on the classpath.
| Field Summary | |
|---|---|
static String |
ITEMS
Name of the scriptlet attribute, "items" , containing the Item collection to be transformed. |
private Logger |
log
Class logger. |
private net.shibboleth.utilities.java.support.scripting.EvaluableScript |
script
Script executed by this stage. |
| Constructor Summary | |
|---|---|
ScriptletStage()
|
|
| Method Summary | |
|---|---|
protected void |
doExecute(Collection<Item<?>> itemCollection)
Performs the stage processing on the given Item collection. |
protected void |
doInitialize()
|
net.shibboleth.utilities.java.support.scripting.EvaluableScript |
getScript()
Gets the script executed by this stage. |
void |
setScript(net.shibboleth.utilities.java.support.scripting.EvaluableScript stageScript)
Sets the script executed by this stage. |
| 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, doDestroy, 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 |
|---|
public static final String ITEMS
private final Logger log
private net.shibboleth.utilities.java.support.scripting.EvaluableScript script
| Constructor Detail |
|---|
public ScriptletStage()
| Method Detail |
|---|
@Nullable public net.shibboleth.utilities.java.support.scripting.EvaluableScript getScript()
public void setScript(@Nonnull
net.shibboleth.utilities.java.support.scripting.EvaluableScript stageScript)
stageScript - the script executed by this stage
protected void doExecute(@Nonnull@NonnullElements
Collection<Item<?>> itemCollection)
throws StageProcessingException
The stage is guaranteed to be have been initialized and not destroyed when this is invoked.
doExecute in class BaseStage<Item<?>>itemCollection - collection to be processed
StageProcessingException - thrown if there is an unrecoverable problem when processing the stage
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 | |||||||||