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

java.lang.Object
  extended by org.gcube.data.oai.tmplugin.requests.Request
      extended by org.gcube.data.oai.tmplugin.requests.WrapSetsRequest

public class WrapSetsRequest
extends Request

A Request to bind the OAI Plugin to one or more sets of an OAI repository.

Author:
Fabio Simeoni

Constructor Summary
protected WrapSetsRequest()
           
  WrapSetsRequest(String prefix, String url)
          Creates an instance with the URL of an OAI repository and a prefix for the names of the sets to use as the names of the corresponding sources.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String idPrefix()
          Returns the prefix for the name of the sources 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

WrapSetsRequest

protected WrapSetsRequest()

WrapSetsRequest

public WrapSetsRequest(String prefix,
                       String url)
                throws IllegalArgumentException
Creates an instance with the URL of an OAI repository and a prefix for the names of the sets to use as the names of the corresponding sources.

Parameters:
prefix - the prefix
url - the URL
Throws:
IllegalArgumentException - if the prefix is null or empty
Method Detail

idPrefix

public String idPrefix()
Returns the prefix for the name of the sources to bind.

Returns:
the prefix

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.