Class SuggestStandards

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

public class SuggestStandards extends CATWebService
See
Author:
Jonathan Ostwald
  • Constructor Details

    • 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 Details

    • 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