se.kb.oai.pmh
Class ResponseBase

java.lang.Object
  extended by 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

Field Summary
static String OAI_NS_PREFIX
           
static String OAI_NS_URI
           
protected  Document response
           
protected  String responseDate
           
protected  ResumptionToken resumptionToken
           
protected  XPathWrapper xpath
           
 
Constructor Summary
ResponseBase(Document document)
          Create a ResponseBase from a response.
 
Method Summary
 Document getResponse()
          Get the xml-document of the full response from the server.
 String getResponseDate()
          Get the date the response was returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ResponseBase

public ResponseBase(Document document)
             throws ErrorResponseException
Create a ResponseBase from a response.

Parameters:
document - the response
Throws:
ErrorResponseException
Method Detail

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.