Package org.dlese.dpc.serviceclients.cat
Class SuggestStandards
java.lang.Object
org.dlese.dpc.serviceclients.cat.CATWebService
org.dlese.dpc.serviceclients.cat.SuggestStandards
See
- Author:
- Jonathan Ostwald
-
Field Summary
Fields inherited from class org.dlese.dpc.serviceclients.cat.CATWebService
baseUrl, password, username -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the SuggestStandards objectSuggestStandards(String username, String password, String baseUrl) Constructor for the SuggestStandards object supplying username, password and baseUrl -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGets the method attribute of the CATWebService objectgetSuggestions(String resourceUrl, Map optionalArgs) getSuggestions(CATRequestConstraints constraints) Gets the suggestions attribute of the SuggestStandards objectstatic voidThe main program for the SuggestStandards classMethods inherited from class org.dlese.dpc.serviceclients.cat.CATWebService
getErrorMsg, getResponse, getResponse, pp
-
Constructor Details
-
SuggestStandards
public SuggestStandards()Constructor for the SuggestStandards object -
SuggestStandards
Constructor for the SuggestStandards object supplying username, password and baseUrl- Parameters:
username- the client usernamepassword- the client passwordbaseUrl- the service baseUrl
-
-
Method Details
-
getMethod
Description copied from class:CATWebServiceGets the method attribute of the CATWebService object- Specified by:
getMethodin classCATWebService- Returns:
- The method value
-
getSuggestions
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
- Parameters:
resourceUrl- url for resource for which suggestions are madeoptionalArgs- additional search contraints- Returns:
- suggested stds from CAT
- Throws:
Exception- NOT YET DOCUMENTED
-
main
The main program for the SuggestStandards class- Parameters:
args- The command line arguments
-