Package org.dlese.dpc.serviceclients.cat
Class CATWebService
java.lang.Object
org.dlese.dpc.serviceclients.cat.CATWebService
- Direct Known Subclasses:
GetAllStandardsDocuments,GetStandard,SuggestStandards
- Author:
- Jonathan Ostwald
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCATWebService(String username, String password, String baseUrl) Constructor for the CATWebService object -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetErrorMsg(org.dom4j.Element errorElement) Gets the errorMsg attribute of the CATWebService objectprotected abstract StringGets the method attribute of the CATWebService objectorg.dom4j.DocumentgetResponse(Map argMap) Gets the response attribute of the CATWebService objectorg.dom4j.DocumentgetResponse(CATRequestConstraints constraints) Submit a request to the CAT service and return the response as a Documentprotected static voidpp(org.dom4j.Node node) Description of the Method
-
Field Details
-
baseUrl
-
username
-
password
-
-
Constructor Details
-
CATWebService
public CATWebService() -
CATWebService
Constructor for the CATWebService object- Parameters:
username- username for authenticating to the CAT Web Servicepassword- password for authenticating to the CAT Web Service
-
-
Method Details
-
getMethod
Gets the method attribute of the CATWebService object- Returns:
- The method value
-
getResponse
Submit a request to the CAT service and return the response as a Document- Parameters:
constraints- constraints submitted to CAT Web Service- Returns:
- The response value
- Throws:
Exception- if a response could not be obtained, or if the response contains an error from the server.
-
getResponse
Gets the response attribute of the CATWebService object- Parameters:
argMap- query parameters as key/value pairs- Returns:
- The response value
- Throws:
Exception- if a response could not be obtained, or if the response contains an error from the server.
-
getErrorMsg
Gets the errorMsg attribute of the CATWebService object- Parameters:
errorElement- error element from a CAT Service response- Returns:
- The errorMsg value
-
pp
protected static void pp(org.dom4j.Node node) Description of the Method- Parameters:
node- Description of the Parameter
-