se.kb.oai.pmh
Class ResponseBase
java.lang.Object
se.kb.oai.pmh.ResponseBase
- Direct Known Subclasses:
- Identification, ListBase, Record
public abstract class ResponseBase
- extends Object
Abstract base class that represents a response from the OAI-PMH server.
- Author:
- Oskar Grenholm, National Library of Sweden
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OAI_NS_PREFIX
public static final String OAI_NS_PREFIX
- See Also:
- Constant Field Values
OAI_NS_URI
public static final String OAI_NS_URI
- See Also:
- Constant Field Values
response
protected Document response
xpath
protected XPathWrapper xpath
responseDate
protected String responseDate
resumptionToken
protected ResumptionToken resumptionToken
ResponseBase
public ResponseBase(Document document)
throws ErrorResponseException
- Create a
ResponseBase
from a response.
- Parameters:
document
- the response
- Throws:
ErrorResponseException
getResponse
public Document getResponse()
- Get the xml-document of the full response from the server.
- Returns:
- the response
getResponseDate
public String getResponseDate()
- Get the date the response was returned.
- Returns:
- the response date
Copyright © 2008. All Rights Reserved.