edu.internet2.middleware.grouperClient.ws
Class GrouperClientWs
java.lang.Object
edu.internet2.middleware.grouperClient.ws.GrouperClientWs
public class GrouperClientWs
- extends Object
mostRecentRequest
public static String mostRecentRequest
- keep a reference to the most recent for testing
mostRecentResponse
public static String mostRecentResponse
- keep a reference to the most recent for testing
GrouperClientWs
public GrouperClientWs()
assignContentType
public GrouperClientWs assignContentType(String theContentType)
- assign the content type, defaults to xml
- Parameters:
theContentType
-
- Returns:
- this for chaining
executeService
public Object executeService(String urlSuffix,
Object toSend,
String labelForLog,
String clientVersion)
throws UnsupportedEncodingException,
HttpException,
IOException
- Parameters:
urlSuffix
- e.g. groups/aStem:aGroup/memberstoSend
- is the bean which will transform into XML, or just a string of XML to send...labelForLog
- label if the request is logged to fileclientVersion
-
- Returns:
- the response object
- Throws:
UnsupportedEncodingException
HttpException
IOException
handleFailure
public void handleFailure(Object responseContainer,
ResultMetadataHolder[] resultMetadataHolders,
String resultMessage)
- if failure, handle it
- Parameters:
responseContainer
- is the object that everything marshaled toresultMetadataHolders
- resultMessage
-
- Throws:
GcWebServiceError
- if there is a problem