Modul org.shredzone.acme4j
Package org.shredzone.acme4j.connector
Klasse ResourceIterator<T extends AcmeResource>
java.lang.Object
org.shredzone.acme4j.connector.ResourceIterator<T>
- Typparameter:
T-AcmeResourcetype to iterate over
- Alle implementierten Schnittstellen:
Iterator<T>
An
Iterator that fetches a batch of URLs from the ACME server, and generates
AcmeResource instances.-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungResourceIterator(Login login, String field, URL start, BiFunction<Login, URL, T> creator) Creates a newResourceIterator. -
Methodenübersicht
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Iterator
forEachRemaining
-
Konstruktordetails
-
ResourceIterator
public ResourceIterator(Login login, String field, @Nullable URL start, BiFunction<Login, URL, T> creator) Creates a newResourceIterator.- Parameter:
login-Loginto bind this iterator tofield- Field name to be used in the JSON responsestart- URL of the first JSON array, may benullfor an empty iteratorcreator- Creator for anAcmeResourcethat is bound to the givenLoginandURL.
-
-
Methodendetails
-
hasNext
Checks if there is another object in the result.- Angegeben von:
hasNextin SchnittstelleIterator<T extends AcmeResource>- Löst aus:
AcmeProtocolException- if the next batch of URLs could not be fetched from the server
-
next
Returns the next object of the result.- Angegeben von:
nextin SchnittstelleIterator<T extends AcmeResource>- Löst aus:
AcmeProtocolException- if the next batch of URLs could not be fetched from the serverNoSuchElementException- if there are no more entries
-
remove
Unsupported operation, only here to satisfy theIteratorinterface.- Angegeben von:
removein SchnittstelleIterator<T extends AcmeResource>
-