Package org.lockss.laaws.rs.impl
Class ArtifactContinuationToken
java.lang.Object
org.lockss.laaws.rs.impl.ArtifactContinuationToken
The continuation token used to paginate through a list of artifacts.
- Author:
- Fernando GarcĂa-Loygorri
-
Constructor Summary
ConstructorsConstructorDescriptionArtifactContinuationToken(String webRequestContinuationToken) Constructor from a web request continuation token.ArtifactContinuationToken(String namespace, String auid, String uri, Integer version, Integer iteratorHashCode) Constructor from members. -
Method Summary
Modifier and TypeMethodDescriptiongetAuid()Provides the archival unit identifier of the last artifact transferred.Provides the hash code of the iterator used.Provides the namespace of the last artifact transferred.getUri()Provides the URI of the last artifact transferred.Provides the version of the last artifact transferred.toString()Provides this object in the form of a web response continuation token.
-
Constructor Details
-
ArtifactContinuationToken
public ArtifactContinuationToken(String webRequestContinuationToken) throws IllegalArgumentException Constructor from a web request continuation token.- Parameters:
webRequestContinuationToken- A String with the web request continuation token.- Throws:
IllegalArgumentException- if the web request continuation token is not syntactically valid.
-
ArtifactContinuationToken
public ArtifactContinuationToken(String namespace, String auid, String uri, Integer version, Integer iteratorHashCode) Constructor from members.- Parameters:
namespace- A String with the namespace of the last artifact transferred.auid- A String with the archival unit identifier of the last artifact transferred.uri- A String with the URI of the last artifact transferred.version- An Integer with the version of the last artifact transferred.iteratorHashCode- An Integer with the hash code of the iterator used.
-
-
Method Details
-
getNamespace
Provides the namespace of the last artifact transferred.- Returns:
- a String with the namespace of the last artifact transferred.
-
getAuid
Provides the archival unit identifier of the last artifact transferred.- Returns:
- a String with the archival unit identifier of the last artifact transferred.
-
getUri
Provides the URI of the last artifact transferred.- Returns:
- a String with the URI of the last artifact transferred.
-
getVersion
Provides the version of the last artifact transferred.- Returns:
- an Integer with the version of the last artifact transferred.
-
getIteratorHashCode
Provides the hash code of the iterator used.- Returns:
- an Integer with the hash code of the iterator used.
-
toWebResponseContinuationToken
Provides this object in the form of a web response continuation token.- Returns:
- a String with this object in the form of a web response continuation token.
-
toString
-