edu.internet2.middleware.grouperClient.ws
Class GrouperClientWs

java.lang.Object
  extended by edu.internet2.middleware.grouperClient.ws.GrouperClientWs

public class GrouperClientWs
extends Object


Field Summary
static String mostRecentRequest
          keep a reference to the most recent for testing
static String mostRecentResponse
          keep a reference to the most recent for testing
 
Constructor Summary
GrouperClientWs()
           
 
Method Summary
 GrouperClientWs assignContentType(String theContentType)
          assign the content type, defaults to xml
 Object executeService(String urlSuffix, Object toSend, String labelForLog, String clientVersion)
           
 void handleFailure(Object responseContainer, ResultMetadataHolder[] resultMetadataHolders, String resultMessage)
          if failure, handle it
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

GrouperClientWs

public GrouperClientWs()
Method Detail

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/members
toSend - is the bean which will transform into XML, or just a string of XML to send...
labelForLog - label if the request is logged to file
clientVersion -
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 to
resultMetadataHolders -
resultMessage -
Throws:
GcWebServiceError - if there is a problem