DLESE Tools
v1.6.0

org.dlese.dpc.serviceclients.cat
Class SuggestStandards

java.lang.Object
  extended by org.dlese.dpc.serviceclients.cat.CATWebService
      extended by org.dlese.dpc.serviceclients.cat.SuggestStandards

public class SuggestStandards
extends CATWebService

See

Author:
Jonathan Ostwald

Field Summary
 
Fields inherited from class org.dlese.dpc.serviceclients.cat.CATWebService
baseUrl, password, username
 
Constructor Summary
SuggestStandards()
          Constructor for the SuggestStandards object
SuggestStandards(String username, String password, String baseUrl)
          Constructor for the SuggestStandards object supplying username, password and baseUrl
 
Method Summary
protected  String getMethod()
          Gets the method attribute of the CATWebService object
 List getSuggestions(CATRequestConstraints constraints)
          Gets the suggestions attribute of the SuggestStandards object
 List getSuggestions(String resourceUrl, Map optionalArgs)
           
static void main(String[] args)
          The main program for the SuggestStandards class
 
Methods inherited from class org.dlese.dpc.serviceclients.cat.CATWebService
getErrorMsg, getResponse, getResponse, pp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuggestStandards

public SuggestStandards()
Constructor for the SuggestStandards object


SuggestStandards

public SuggestStandards(String username,
                        String password,
                        String baseUrl)
Constructor for the SuggestStandards object supplying username, password and baseUrl

Parameters:
username - the client username
password - the client password
baseUrl - the service baseUrl
Method Detail

getMethod

protected String getMethod()
Description copied from class: CATWebService
Gets the method attribute of the CATWebService object

Specified by:
getMethod in class CATWebService
Returns:
The method value

getSuggestions

public List getSuggestions(CATRequestConstraints constraints)
                    throws Exception
Gets the suggestions attribute of the SuggestStandards object

Parameters:
constraints - search request contraints
Returns:
List of suggestions from CAT
Throws:
Exception - if request is not successful

getSuggestions

public List getSuggestions(String resourceUrl,
                           Map optionalArgs)
                    throws Exception
Parameters:
resourceUrl - url for resource for which suggestions are made
optionalArgs - additional search contraints
Returns:
suggested stds from CAT
Throws:
Exception - NOT YET DOCUMENTED

main

public static void main(String[] args)
The main program for the SuggestStandards class

Parameters:
args - The command line arguments

DLESE Tools
v1.6.0