public abstract class AbstractBatchMetadataResolver extends AbstractMetadataResolver implements BatchMetadataResolver, IterableMetadataSource
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractBatchMetadataResolver.BatchEntityBackingStore
Specialized entity backing store implementation which is capable of storing the original metadata
document on which the backing store is based.
|
AbstractMetadataResolver.EntityBackingStore
Modifier and Type | Field and Description |
---|---|
private boolean |
cacheSourceMetadata
Flag indicating whether to cache the original source metadata document.
|
private Logger |
log
Class logger.
|
Constructor and Description |
---|
AbstractBatchMetadataResolver()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractBatchMetadataResolver.BatchEntityBackingStore |
createNewBackingStore()
Create a new backing store instance for EntityDescriptor data.
|
protected AbstractBatchMetadataResolver.BatchEntityBackingStore |
getBackingStore()
Get the EntityDescriptor backing store currently in use by the metadata resolver.
|
protected org.opensaml.core.xml.XMLObject |
getCachedFilteredMetadata()
Convenience method for getting the current effective cached filtered metadata.
|
protected org.opensaml.core.xml.XMLObject |
getCachedOriginalMetadata()
Convenience method for getting the current effective cached original metadata.
|
protected void |
initMetadataResolver()
Subclasses should override this method to perform any initialization logic necessary.
|
protected boolean |
isCacheSourceMetadata()
Get whether to cache the original source metadata document.
|
Iterator<EntityDescriptor> |
iterator() |
protected AbstractBatchMetadataResolver.BatchEntityBackingStore |
preProcessNewMetadata(org.opensaml.core.xml.XMLObject root)
Process the specified new metadata document, including metadata filtering
and return its data in a new entity backing store instance.
|
Iterable<EntityDescriptor> |
resolve(net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria) |
protected void |
setCacheSourceMetadata(boolean flag)
Set whether to cache the original source metadata document.
|
doDestroy, doInitialize, filterMetadata, getMetadataFilter, getParserPool, getUnmarshallerFactory, indexEntityDescriptor, isFailFastInitialization, isRequireValidMetadata, isValid, lookupEntityID, lookupIndexedEntityID, preProcessEntitiesDescriptor, preProcessEntityDescriptor, releaseMetadataDOM, removeByEntityID, resolveSingle, setBackingStore, setFailFastInitialization, setMetadataFilter, setParserPool, setRequireValidMetadata, unmarshallMetadata
setId
getId
destroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetadataFilter, isRequireValidMetadata, setMetadataFilter, setRequireValidMetadata
resolveSingle
getId
forEach, spliterator
private final Logger log
private boolean cacheSourceMetadata
public AbstractBatchMetadataResolver()
public Iterator<EntityDescriptor> iterator()
iterator
in interface Iterable<EntityDescriptor>
protected boolean isCacheSourceMetadata()
protected void setCacheSourceMetadata(boolean flag)
flag
- true if source should be cached, false otherwise@Nonnull public Iterable<EntityDescriptor> resolve(net.shibboleth.utilities.java.support.resolver.CriteriaSet criteria) throws net.shibboleth.utilities.java.support.resolver.ResolverException
resolve
in interface net.shibboleth.utilities.java.support.resolver.Resolver<EntityDescriptor,net.shibboleth.utilities.java.support.resolver.CriteriaSet>
net.shibboleth.utilities.java.support.resolver.ResolverException
@Nonnull protected AbstractBatchMetadataResolver.BatchEntityBackingStore createNewBackingStore()
AbstractMetadataResolver.setBackingStore(EntityBackingStore)
to make it the effective
instance in use.createNewBackingStore
in class AbstractMetadataResolver
@Nonnull protected AbstractBatchMetadataResolver.BatchEntityBackingStore getBackingStore()
getBackingStore
in class AbstractMetadataResolver
protected void initMetadataResolver() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
initMetadataResolver
in class AbstractMetadataResolver
net.shibboleth.utilities.java.support.component.ComponentInitializationException
- thrown if there is a problem initializing the provider@Nullable protected org.opensaml.core.xml.XMLObject getCachedOriginalMetadata()
Note: may or may not be the same as that obtained from getCachedFilteredMetadata()
,
depending on what metadata filtering produced from the original metadata document.
@Nullable protected org.opensaml.core.xml.XMLObject getCachedFilteredMetadata()
Note: may or may not be the same as that obtained from getCachedOriginalMetadata()
,
depending on what metadata filtering produced from the original metadata document.
@Nonnull protected AbstractBatchMetadataResolver.BatchEntityBackingStore preProcessNewMetadata(@Nonnull org.opensaml.core.xml.XMLObject root) throws FilterException
root
- the root of the new metadata document being processedFilterException
- if there is a problem filtering the metadataCopyright © 1999–2015 JBoss by Red Hat. All rights reserved.