Class CompositeMetadataResolver.CompositeMetadataResolverIterable.CompositeMetadataResolverIterator
- java.lang.Object
-
- org.opensaml.saml.metadata.resolver.impl.CompositeMetadataResolver.CompositeMetadataResolverIterable.CompositeMetadataResolverIterator
-
- All Implemented Interfaces:
Iterator<EntityDescriptor>
- Enclosing class:
- CompositeMetadataResolver.CompositeMetadataResolverIterable
private class CompositeMetadataResolver.CompositeMetadataResolverIterable.CompositeMetadataResolverIterator extends Object implements Iterator<EntityDescriptor>
Iteratorimplementation that lazily iterates over each composed resolver.
-
-
Field Summary
Fields Modifier and Type Field Description private MetadataResolvercurrentResolverCurrent resolver from which we are getting results.private Iterator<EntityDescriptor>currentResolverMetadataIteratorIterator over the results of the current resolver.private Iterator<MetadataResolver>resolverIteratorIterator over the composed resolvers.
-
Constructor Summary
Constructors Constructor Description CompositeMetadataResolverIterator()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()EntityDescriptornext()private voidproceedToNextResolverIterator()Proceed to the next composed resolvers that has a response to the resolution query.voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
resolverIterator
private Iterator<MetadataResolver> resolverIterator
Iterator over the composed resolvers.
-
currentResolver
private MetadataResolver currentResolver
Current resolver from which we are getting results.
-
currentResolverMetadataIterator
private Iterator<EntityDescriptor> currentResolverMetadataIterator
Iterator over the results of the current resolver.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<EntityDescriptor>
-
next
public EntityDescriptor next()
- Specified by:
nextin interfaceIterator<EntityDescriptor>
-
remove
public void remove()
- Specified by:
removein interfaceIterator<EntityDescriptor>
-
proceedToNextResolverIterator
private void proceedToNextResolverIterator()
Proceed to the next composed resolvers that has a response to the resolution query.
-
-