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

public class WrapRepositoryRequest
extends Request

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

Constructor Summary
protected WrapRepositoryRequest()
           
  WrapRepositoryRequest(String id, String url)
          Creates an instance with a given source identifier and the URL of a given OAI repository.
 
Method Summary
 String description()
          Returns a description of the source to bind.
 boolean equals(Object obj)
           
 int hashCode()
           
 String id()
          Returns the identifier of the source to bind.
 String name()
          Returns a name for the source to bind.
 void setDescription(String description)
          Sets a description for the source to bind.
 void setName(String name)
          Sets a name for the source to bind.
 
Methods inherited from class org.gcube.data.oai.tmplugin.requests.Request
addSets, repositoryUrl, sets
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrapRepositoryRequest

protected 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

id

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

Returns:
the identifier

name

public String name()
Returns a name for the source to bind.

Returns:
the name

setName

public void setName(String name)
Sets a name for the source to bind.

Parameters:
name - the name

description

public String description()
Returns a description of the source to bind.

Returns:
the description

setDescription

public void setDescription(String description)
Sets a description for the source to bind.

Parameters:
description - the description

hashCode

public int hashCode()
Overrides:
hashCode in class Request

equals

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


Copyright © 2012. All Rights Reserved.