|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gcube.common.OAIResumptionStream
public class OAIResumptionStream
This class is used internally by other classes to handle all of the OAI responses which represent a list of values: OAIRecordList, OAIMetadataFormatList, and OAISetList. This is the class that allows the other classes to implement the forward-only cursor and transparently handle resumptionTokens, flow control, and other nuances of the OAI protocol. This is a private, internal class, and it is included for information only.
| Constructor Summary | |
|---|---|
OAIResumptionStream(OAIRepository repo,
String u,
String v)
Constructs an OAIResumptionStream object with the given OAIRepository, baseURL, and verb. |
|
OAIResumptionStream(OAIRepository repo,
String u,
String v,
String params)
Constructs an OAIResumptionStream object with the given OAIRepository, baseURL, verb, and query parameters. |
|
| Method Summary | |
|---|---|
void |
close()
|
String |
getBaseURL()
Returns the BASE-URL of the query. |
int |
getCompleteSize()
Return the complete size of a returned list (if possible). |
int |
getIndex()
Return the index of the current record: 0 to CompleteListSize-1 |
Node |
getItem()
Returns an XML node for the current object in the list. |
String |
getParams()
Returns the query string parameters used for the request (minus the verb parameter). |
OAIRepository |
getRepository()
Returns the OAIRepository object from which this list was created. |
String |
getRequestURL()
Return the requestURL returned by the most recent response |
String |
getResponseDate()
Return the responseDate returned by the most recent response |
int |
getResponseSize()
Return the number of items contained in the most recent response |
int |
getResumptionCursor()
Return the index which starts the most recent response. |
String |
getResumptionExpirationDate()
Return the expiration date of the current resumptionToken or an empty string if there is none |
String |
getVerb()
The verb parameter used for this request. |
boolean |
isResponseValid()
Returns true if the response appears to be valid (well-formed, and if the Validation if Very Strict also valid according to the XML Schemas); if the Validation is Loose and the record is not well-formed, false is returned |
boolean |
more()
Returns true if there are more objects which can be returned; else false. |
void |
moveNext()
Moves the cursor location to the next object in the list. |
void |
requery()
This will reset the entire list to the beginning, redoing the query from scratch. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OAIResumptionStream(OAIRepository repo,
String u,
String v)
throws OAIException
OAIException
public OAIResumptionStream(OAIRepository repo,
String u,
String v,
String params)
throws OAIException
OAIException| Method Detail |
|---|
public int getCompleteSize()
throws OAIException
OAIException
public int getResumptionCursor()
throws OAIException
OAIException
public String getResumptionExpirationDate()
throws OAIException
OAIException
public int getIndex()
throws OAIException
OAIExceptionpublic boolean isResponseValid()
public boolean more()
throws OAIException
OAIException
public void moveNext()
throws OAIException
OAIException
public String getBaseURL()
throws OAIException
OAIException
public String getResponseDate()
throws OAIException
OAIException
public String getRequestURL()
throws OAIException
OAIException
public Node getItem()
throws OAIException
OAIException
public String getParams()
throws OAIException
OAIExceptionpublic OAIRepository getRepository()
public String getVerb()
throws OAIException
OAIException
public void requery()
throws OAIException
OAIException
public int getResponseSize()
throws OAIException
OAIExceptionpublic void close()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||