Added a constuctor for ResumptionToken that takes an id and an expiration date.

git-svn-id: https://oai4j-client.svn.sourceforge.net/svnroot/oai4j-client/trunk@21 201c9376-5148-0410-b534-98494c770f31
This commit is contained in:
bobcat_zed 2008-11-18 20:32:52 +00:00
parent 2055261027
commit 18d9a1542a
1 changed files with 11 additions and 0 deletions

View File

@ -49,6 +49,17 @@ public class ResumptionToken {
this.id = element.getTextTrim();
this.expirationDate = element.attributeValue("expirationDate");
}
/**
* Create a <code>ResumptionToken</code> from the an id and an expiration date.
*
* @param id
* @param date
*/
public ResumptionToken(String id, String expirationDate) {
this.id = id;
this.expirationDate = expirationDate;
}
/**
* Get the id of this resumption token.