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

java.lang.Object
  extended by org.gcube.data.oai.tmplugin.requests.Request
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WrapRepositoryRequest, WrapSetsRequest

public abstract class Request
extends Object
implements Serializable

Base implementation for plugin requests

Author:
Fabio Simeoni, Lucio Lelii (CNR)
See Also:
Serialized Form

Method Summary
 void addAlternativesXPath(String... path)
          Adds an alternativesXPath
 void addSets(String... setIds)
          Adds a sets
 boolean equals(Object obj)
           
 List<String> getAlternativesXPath()
          Returns the alternatives path of the source to bind.
 String getContentXPath()
           
 String getDescription()
          Returns a description of the source to bind.
 String getMetadataFormat()
           
 String getName()
          Returns a name for the source to bind.
 String getRepositoryUrl()
          Returns the URL of the target OAI repository
 List<String> getSets()
           
 String getTitleXPath()
           
 int hashCode()
           
 void setContentXPath(String path)
          Sets a contentXPath
 void setDescription(String description)
          Sets a description for the source to bind.
 void setMetadataFormat(String metadataFormat)
          Adds a MetadataFormat
 void setName(String name)
          Sets a name for the source to bind.
 void setRepositoryUrl(String path)
          Sets RepositoryUrl
 void setTitleXPath(String path)
          Sets a titleXPath
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRepositoryUrl

public String getRepositoryUrl()
Returns the URL of the target OAI repository


getName

public String getName()
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

getDescription

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

Returns:
description

setDescription

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

Parameters:
description - the description

getAlternativesXPath

public List<String> getAlternativesXPath()
Returns the alternatives path of the source to bind.


getContentXPath

public String getContentXPath()

getTitleXPath

public String getTitleXPath()

getMetadataFormat

public String getMetadataFormat()

getSets

public List<String> getSets()

addSets

public void addSets(String... setIds)
Adds a sets


setContentXPath

public void setContentXPath(String path)
Sets a contentXPath


setRepositoryUrl

public void setRepositoryUrl(String path)
Sets RepositoryUrl


setTitleXPath

public void setTitleXPath(String path)
Sets a titleXPath


addAlternativesXPath

public void addAlternativesXPath(String... path)
Adds an alternativesXPath


setMetadataFormat

public void setMetadataFormat(String metadataFormat)
Adds a MetadataFormat


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2013. All Rights Reserved.