dk.statsbiblioteket.doms.summa.oai
Class ListRecordsResponse

java.lang.Object
  extended by dk.statsbiblioteket.doms.summa.oai.Response
      extended by dk.statsbiblioteket.doms.summa.oai.ListRecordsResponse
All Implemented Interfaces:
java.lang.Iterable<Record>

public class ListRecordsResponse
extends Response
implements java.lang.Iterable<Record>

A Response for an oai request with verb ListRecords.

Version:
summaStorage-0.2 - build date 01/29/2007 11:57

Nested Class Summary
private  class ListRecordsResponse.ResumingIterator
          Helper class to transparently iterate over a ListRecords response automatically fetching the next page in case of resumption tokens.
 
Field Summary
private  IdentifyResponse id
           
private  Log log
           
(package private)  ListRecordsResponseSAXParser parser
           
private  java.lang.String responseDate
           
private  java.lang.String resumptionToken
           
private  java.lang.String serviceURL
           
private  java.lang.String verb
           
 
Constructor Summary
ListRecordsResponse(java.io.InputStream in, IdentifyResponse id)
           
 
Method Summary
 java.lang.String getResponseDate()
           
 java.lang.String getResumptionToken()
           
 java.lang.String getServiceURL()
           
 java.lang.String getVerb()
           
 boolean isParsing()
           
 java.util.Iterator<Record> iterator()
           
 Response parse()
           
 
Methods inherited from class dk.statsbiblioteket.doms.summa.oai.Response
getInputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private final Log log

responseDate

private java.lang.String responseDate

serviceURL

private java.lang.String serviceURL

verb

private java.lang.String verb

resumptionToken

private java.lang.String resumptionToken

parser

ListRecordsResponseSAXParser parser

id

private IdentifyResponse id
Constructor Detail

ListRecordsResponse

public ListRecordsResponse(java.io.InputStream in,
                           IdentifyResponse id)
Method Detail

parse

public Response parse()
Specified by:
parse in class Response

getResponseDate

public java.lang.String getResponseDate()
Specified by:
getResponseDate in class Response

getVerb

public java.lang.String getVerb()
Specified by:
getVerb in class Response

getServiceURL

public java.lang.String getServiceURL()
Specified by:
getServiceURL in class Response

iterator

public java.util.Iterator<Record> iterator()
Specified by:
iterator in interface java.lang.Iterable<Record>

getResumptionToken

public java.lang.String getResumptionToken()
Specified by:
getResumptionToken in class Response

isParsing

public boolean isParsing()
Specified by:
isParsing in class Response