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:
parent
2055261027
commit
18d9a1542a
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue