maito.datacollecting.oaipmh
Class OAIPMHDataSource

java.lang.Object
  extended by maito.datacollecting.oaipmh.OAIPMHDataSource
All Implemented Interfaces:
DataSource

public class OAIPMHDataSource
extends java.lang.Object
implements DataSource

A class that represents a data source using OAI-PMH to read data from a network repository.

Author:
Antti Laitinen

Constructor Summary
OAIPMHDataSource(java.util.Properties parameters, RecordParser recordParser)
           
 
Method Summary
 void update()
          Reads data from the OAI-PMH repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAIPMHDataSource

public OAIPMHDataSource(java.util.Properties parameters,
                        RecordParser recordParser)
                 throws DataSourceException
Parameters:
parameters - Must contain the following parameters:
  • location (base URL to the remote OAI-PMH service)
The following parameters are optional:
  • updated (The date when this source was last updated. If this parameter is not present, then the )
Throws:
DataSourceException
Method Detail

update

public void update()
            throws DataSourceException
Reads data from the OAI-PMH repository. If the data is successfully received it is then sent to the RecordParser.

Specified by:
update in interface DataSource
Throws:
DataSourceException