|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.serviceclients.cat.CATWebService
public abstract class CATWebService
Field Summary | |
---|---|
protected String |
baseUrl
|
protected String |
password
|
protected String |
username
|
Constructor Summary | |
---|---|
CATWebService()
|
|
CATWebService(String username,
String password,
String baseUrl)
Constructor for the CATWebService object |
Method Summary | |
---|---|
protected String |
getErrorMsg(Element errorElement)
Gets the errorMsg attribute of the CATWebService object |
protected abstract String |
getMethod()
Gets the method attribute of the CATWebService object |
Document |
getResponse(CATRequestConstraints constraints)
Submit a request to the CAT service and return the response as a Document |
Document |
getResponse(Map argMap)
Gets the response attribute of the CATWebService object |
protected static void |
pp(Node node)
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String baseUrl
protected String username
protected String password
Constructor Detail |
---|
public CATWebService()
public CATWebService(String username, String password, String baseUrl)
username
- username for authenticating to the CAT Web Servicepassword
- password for authenticating to the CAT Web ServiceMethod Detail |
---|
protected abstract String getMethod()
public Document getResponse(CATRequestConstraints constraints) throws Exception
constraints
- constraints submitted to CAT Web Service
Exception
- if a response could not be obtained, or if the
response contains an error from the server.public Document getResponse(Map argMap) throws Exception
argMap
- query parameters as key/value pairs
Exception
- if a response could not be obtained, or if the
response contains an error from the server.protected String getErrorMsg(Element errorElement)
errorElement
- error element from a CAT Service response
protected static void pp(Node node)
node
- Description of the Parameter
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |