|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.Harvester
public class Harvester
| Constructor Summary | |
|---|---|
Harvester(String baseUrl)
Constructs the harvester using a repository URL. |
|
| Method Summary | |
|---|---|
Record |
getRecord(String identifier,
String metadataPrefix)
Returns a Record object harvested by his identifier using 'oai_dc' as metadataPrefix |
ResumptionToken |
getResumptionToken()
|
Identify |
identify()
Returns an Identify object containing information about the OAI respository. |
List<Header> |
listIdentifiers(String metadataPrefix)
Returns a List of Header type. |
List<Header> |
listIdentifiers(String from,
String until,
String set,
String metadataPrefix)
Returns a List of Header type, using selective harvesting. |
List<MetadataFormat> |
listMetadataFormats()
Returns a List of MetadataFormats supported by the repository. |
List<MetadataFormat> |
listMetadataFormats(String identifier)
Returns a List of MetadataFormats from a given identifier. |
RecordIterator |
listRecords(String metadataPrefix)
Harvest all the Records from a repository |
RecordIterator |
listRecords(String from,
String until,
String set,
String metadataPrefix)
Selective harvest of Records from a repository |
List<Set> |
listSets()
Returns a List of Set type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Harvester(String baseUrl)
throws Exception
baseUrl - A repository valid URL.
Exception| Method Detail |
|---|
public Identify identify()
throws Exception
Identify object containing information about the OAI respository.
Identify object.
Exception
public List<Header> listIdentifiers(String from,
String until,
String set,
String metadataPrefix)
throws Exception
Header type, using selective harvesting.
from - A date.until - A date.set - A set name supported by the respository.
List
Exception
public List<Header> listIdentifiers(String metadataPrefix)
throws Exception
Header type.
List of headers.
Exception
public List<MetadataFormat> listMetadataFormats()
throws Exception
MetadataFormats supported by the repository.
List of MetadataFormats.
Exception
public List<MetadataFormat> listMetadataFormats(String identifier)
throws Exception
MetadataFormats from a given identifier.
identifier - valid OAI document identifier.
List
Exception
public List<Set> listSets()
throws Exception
Set type.
List
Exception
public Record getRecord(String identifier,
String metadataPrefix)
throws Exception
identifier - A OAI document identifier.
Exception
public RecordIterator listRecords(String from,
String until,
String set,
String metadataPrefix)
throws Exception
Records from a repository
from - A date.until - A date.set - A set supported by the repository.
RecordIterator
Exception
public RecordIterator listRecords(String metadataPrefix)
throws FileNotFoundException,
Exception
Records from a repository
RecordIterator
FileNotFoundException
Exception
public ResumptionToken getResumptionToken()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||