public class GrouperClientWs
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
mostRecentRequest
keep a reference to the most recent for testing
|
static java.lang.String |
mostRecentResponse
keep a reference to the most recent for testing
|
static java.lang.String |
READ_ONLY_FAILOVER_CONFIG_NAME
readonly failover config name
|
static java.lang.String |
READ_WRITE_FAILOVER_CONFIG_NAME
readwrite failover config name
|
Constructor and Description |
---|
GrouperClientWs() |
Modifier and Type | Method and Description |
---|---|
GrouperClientWs |
assignContentType(java.lang.String theContentType)
assign the content type, defaults to xml
|
void |
copyFrom(GrouperClientWs grouperClientWs)
copy from the argument to this object
|
java.lang.Object |
executeService(java.lang.String urlSuffix,
java.lang.Object toSend,
java.lang.String labelForLog,
java.lang.String clientVersion,
boolean readOnly) |
void |
handleFailure(java.lang.Object responseContainer,
ResultMetadataHolder[] resultMetadataHolders,
java.lang.String resultMessage)
if failure, handle it
|
public static java.lang.String mostRecentRequest
public static java.lang.String mostRecentResponse
public static final java.lang.String READ_ONLY_FAILOVER_CONFIG_NAME
public static final java.lang.String READ_WRITE_FAILOVER_CONFIG_NAME
public void copyFrom(GrouperClientWs grouperClientWs)
grouperClientWs
- public GrouperClientWs assignContentType(java.lang.String theContentType)
theContentType
- public java.lang.Object executeService(java.lang.String urlSuffix, java.lang.Object toSend, java.lang.String labelForLog, java.lang.String clientVersion, boolean readOnly)
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
- readOnly
- true if readonly, false if readwritejava.io.UnsupportedEncodingException
HttpException
java.io.IOException
public void handleFailure(java.lang.Object responseContainer, ResultMetadataHolder[] resultMetadataHolders, java.lang.String resultMessage)
responseContainer
- is the object that everything marshaled toresultMetadataHolders
- resultMessage
- GcWebServiceError
- if there is a problem