org.fcrepo.oai
Class SimpleResumptionToken

java.lang.Object
  extended by org.fcrepo.oai.SimpleResumptionToken
All Implemented Interfaces:
ResumptionToken

public class SimpleResumptionToken
extends Object
implements ResumptionToken

A simple implementation of ResumptionToken that provides getters on the values passed in the constructor.

Author:
Chris Wilper

Constructor Summary
SimpleResumptionToken(String value, Date expirationDate, long completeListSize, long cursor)
           
 
Method Summary
 long getCompleteListSize()
          Get the size of the list.
 long getCursor()
          Get the position in the list that this record starts at.
 Date getExpirationDate()
          Get the expiration date of the token.
 String getValue()
          Get the value of the token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleResumptionToken

public SimpleResumptionToken(String value,
                             Date expirationDate,
                             long completeListSize,
                             long cursor)
Method Detail

getValue

public String getValue()
Description copied from interface: ResumptionToken
Get the value of the token. A null value indicates that the associated list is complete.

Specified by:
getValue in interface ResumptionToken

getExpirationDate

public Date getExpirationDate()
Description copied from interface: ResumptionToken
Get the expiration date of the token. A null value indicates an unknown or unprovided expiration date.

Specified by:
getExpirationDate in interface ResumptionToken

getCompleteListSize

public long getCompleteListSize()
Description copied from interface: ResumptionToken
Get the size of the list. A negative value indicates an unknown or unprovided list size.

Specified by:
getCompleteListSize in interface ResumptionToken

getCursor

public long getCursor()
Description copied from interface: ResumptionToken
Get the position in the list that this record starts at. A negative value indicates an unknown or unprovided position.

Specified by:
getCursor in interface ResumptionToken


Copyright © 2012 DuraSpace. All Rights Reserved.