org.gcube.data.oai.tmplugin.requests
Class WrapRepositoryRequest

java.lang.Object
  extended by org.gcube.data.oai.tmplugin.requests.Request
      extended by org.gcube.data.oai.tmplugin.requests.WrapRepositoryRequest
All Implemented Interfaces:
Serializable

public class WrapRepositoryRequest
extends Request
implements Serializable

A Request to bind the OAI Plugin to a single data source formed of all the records in one ore more sets of an OAI repository.

Author:
Fabio Simeoni
See Also:
Serialized Form

Constructor Summary
WrapRepositoryRequest()
           
WrapRepositoryRequest(String id, String url)
          Creates an instance with a given source identifier and the URL of a given OAI repository.
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
          Returns the identifier of the source to bind.
 int hashCode()
           
 void setId(String id)
          Returns the identifier of the source to bind.
 String toString()
          
 
Methods inherited from class org.gcube.data.oai.tmplugin.requests.Request
addAlternativesXPath, addSets, getAlternativesXPath, getContentXPath, getDescription, getMetadataFormat, getName, getRepositoryUrl, getSets, getTitleXPath, setContentXPath, setDescription, setMetadataFormat, setName, setRepositoryUrl, setTitleXPath
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrapRepositoryRequest

public WrapRepositoryRequest()

WrapRepositoryRequest

public WrapRepositoryRequest(String id,
                             String url)
                      throws IllegalArgumentException
Creates an instance with a given source identifier and the URL of a given OAI repository.

Parameters:
id - the source identifier
url - the URL
Throws:
IllegalArgumentException - if the identifier is null or empty
Method Detail

getId

public String getId()
Returns the identifier of the source to bind.

Returns:
the id

setId

public void setId(String id)
Returns the identifier of the source to bind.

Parameters:
id -

hashCode

public int hashCode()
Overrides:
hashCode in class Request

equals

public boolean equals(Object obj)
Overrides:
equals in class Request

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.