|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.kb.oai.pmh.OaiPmhServer
public class OaiPmhServer
Class that acts as a facade for an OAI-PMH server. Has methods that corresponds to the different verbs in the OAI-PMH specification and that will return appropriate objects based on the response.
For more about the different verbs, requests and responses in the OAI-PMH specification, see http://www.openarchives.org/OAI/openarchivesprotocol.html.
| Constructor Summary | |
|---|---|
OaiPmhServer(String url)
Creates an OaiPmhServer with the given base URL. |
|
OaiPmhServer(URL url)
Creates an OaiPmhServer with the given base URL. |
|
| Method Summary | |
|---|---|
String |
getBaseUrl()
Get the base URL to the OAI-PMH server. |
Record |
getRecord(String identifier,
String metadataPrefix)
Send a GetRecord request to the OAI-PMH server with the specified parameters. |
Identification |
identify()
Send a request for the OAI-PMH server to Identify it self. |
IdentifiersList |
listIdentifiers(ResumptionToken resumptionToken)
List next set of identifiers not returned in the previous response from a call to listIdentifiers(). |
IdentifiersList |
listIdentifiers(String metadataPrefix)
Send a request to the OAI-PMH server that it should list all identifiers that has metadata in the specified format. |
IdentifiersList |
listIdentifiers(String metadataPrefix,
String from,
String until,
String set)
Send a request to the OAI-PMH server that it should list all identifiers that matches the given parameters. |
MetadataFormatsList |
listMetadataFormats()
Ask the OAI-PMH server to list all metadata formats it holds. |
MetadataFormatsList |
listMetadataFormats(String identifier)
Ask the OAI-PMH server to list all metadata formats it holds for the specified identifier. |
RecordsList |
listRecords(ResumptionToken resumptionToken)
List next set of records not returned in the previous response from a call to listRecords(). |
RecordsList |
listRecords(String metadataPrefix)
Send a request for the OAI-PMH server to return a list of Records. |
RecordsList |
listRecords(String metadataPrefix,
String from,
String until,
String set)
Send a request for the OAI-PMH server to return a list of Records. |
SetsList |
listSets()
List all sets the OAI-PMH server has. |
SetsList |
listSets(ResumptionToken resumptionToken)
List next set of sets not returned in the previous response from a call to listSets(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OaiPmhServer(String url)
OaiPmhServer with the given base URL.
url - base URL that points to an OAI-PMH serverpublic OaiPmhServer(URL url)
OaiPmhServer with the given base URL.
url - base URL that points to an OAI-PMH server| Method Detail |
|---|
public String getBaseUrl()
public Record getRecord(String identifier,
String metadataPrefix)
throws OAIException
identifier - id to get a Record formetadataPrefix - which metadata format
OAIException
public Identification identify()
throws OAIException
OAIException
public IdentifiersList listIdentifiers(String metadataPrefix)
throws OAIException
metadataPrefix - which metadata format
OAIException
public IdentifiersList listIdentifiers(String metadataPrefix,
String from,
String until,
String set)
throws OAIException
metadataPrefix - which metadata formatfrom - a start date, optional (may be null)until - a stop date, optional (may be null)set - a specific set, optional (may be null)
OAIException
public IdentifiersList listIdentifiers(ResumptionToken resumptionToken)
throws OAIException
resumptionToken - a resumption token returned from a previous call
OAIException
public RecordsList listRecords(String metadataPrefix)
throws OAIException
metadataPrefix - which metadata format
OAIException
public RecordsList listRecords(String metadataPrefix,
String from,
String until,
String set)
throws OAIException
metadataPrefix - which metadata formatfrom - a start date, optional (may be null)until - a stop date, optional (may be null)set - a specific set, optional (may be null)
OAIException
public RecordsList listRecords(ResumptionToken resumptionToken)
throws OAIException
resumptionToken - a resumption token returned from a previous call
OAIException
public MetadataFormatsList listMetadataFormats()
throws OAIException
OAIException
public MetadataFormatsList listMetadataFormats(String identifier)
throws OAIException
OAIException
public SetsList listSets()
throws OAIException
OAIException
public SetsList listSets(ResumptionToken resumptionToken)
throws OAIException
resumptionToken -
OAIException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||