public class GrouperClientWs extends Object
Modifier and Type | Field and Description |
---|---|
static String |
mostRecentRequest
keep a reference to the most recent for testing
|
static String |
mostRecentResponse
keep a reference to the most recent for testing
|
static String |
READ_ONLY_FAILOVER_CONFIG_NAME
readonly failover config name
|
static String |
READ_WRITE_FAILOVER_CONFIG_NAME
readwrite failover config name
|
Constructor and Description |
---|
GrouperClientWs() |
Modifier and Type | Method and Description |
---|---|
GrouperClientWs |
assignContentType(String theContentType)
assign the content type, defaults to xml
|
GrouperClientWs |
assignWsEndpoint(String theWsEndpoint)
endpoint to grouper WS, e.g.
|
GrouperClientWs |
assignWsPass(String theWsPass)
ws pass
|
GrouperClientWs |
assignWsUser(String theWsUser)
ws user
|
void |
copyFrom(GrouperClientWs grouperClientWs)
copy from the argument to this object
|
Object |
executeService(String urlSuffix,
Object toSend,
String labelForLog,
String clientVersion,
boolean readOnly) |
void |
handleFailure(Object responseContainer,
ResultMetadataHolder[] resultMetadataHolders,
String resultMessage)
if failure, handle it
|
public static String mostRecentRequest
public static String mostRecentResponse
public static final String READ_ONLY_FAILOVER_CONFIG_NAME
public static final String READ_WRITE_FAILOVER_CONFIG_NAME
public void copyFrom(GrouperClientWs grouperClientWs)
grouperClientWs
- public GrouperClientWs assignContentType(String theContentType)
theContentType
- public Object executeService(String urlSuffix, Object toSend, String labelForLog, 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 readwritepublic void handleFailure(Object responseContainer, ResultMetadataHolder[] resultMetadataHolders, String resultMessage)
responseContainer
- is the object that everything marshaled toresultMetadataHolders
- resultMessage
- GcWebServiceError
- if there is a problempublic GrouperClientWs assignWsEndpoint(String theWsEndpoint)
theWsEndpoint
- public GrouperClientWs assignWsPass(String theWsPass)
theWsPass
- public GrouperClientWs assignWsUser(String theWsUser)
theWsUser
- Copyright © 2016 Internet2. All rights reserved.