Class ITIMPolicyServiceResponseImpl
- java.lang.Object
-
- com.ibm.di.plugin.pwstore.itim.policy.impl.ITIMPolicyServiceResponseImpl
-
- All Implemented Interfaces:
PolicyServiceMessage
,PolicyServiceResponse
public final class ITIMPolicyServiceResponseImpl extends java.lang.Object implements PolicyServiceResponse
Represents and parses responses from the ITIM password policy servlet.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.di.plugin.pwstore.itim.policy.PolicyServiceMessage
PolicyServiceMessage.ServiceOp
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessageData()
Get the network message data representation.PolicyServiceMessage.ServiceOp
getOperation()
Get the operation type.PolicyServiceRequest
getRequest()
The request to which this repsonse has been received.java.lang.String
getResponseMessage()
The response descriptive text from ITIM.boolean
isSuccess()
Test if this response represents a successfulboolean
isValid()
Test if the response format and mandatory data are present and correct.
-
-
-
Method Detail
-
getRequest
public PolicyServiceRequest getRequest()
Description copied from interface:PolicyServiceResponse
The request to which this repsonse has been received. Use for correlation purposes.- Specified by:
getRequest
in interfacePolicyServiceResponse
- Returns:
- The original request message instance.
- See Also:
PolicyServiceResponse.getRequest()
-
getMessageData
public java.lang.String getMessageData() throws java.io.IOException
Description copied from interface:PolicyServiceMessage
Get the network message data representation.- Specified by:
getMessageData
in interfacePolicyServiceMessage
- Returns:
- The message data, or
null
if not set. - Throws:
java.io.IOException
- See Also:
PolicyServiceMessage.getMessageData()
-
getOperation
public PolicyServiceMessage.ServiceOp getOperation()
Description copied from interface:PolicyServiceMessage
Get the operation type.- Specified by:
getOperation
in interfacePolicyServiceMessage
- Returns:
- The operation type instance. Will be one of the references
defined on
PolicyServiceMessage.ServiceOp
. - See Also:
PolicyServiceMessage.getOperation()
-
getResponseMessage
public java.lang.String getResponseMessage()
Description copied from interface:PolicyServiceResponse
The response descriptive text from ITIM.- Specified by:
getResponseMessage
in interfacePolicyServiceResponse
- Returns:
- The text string if one was present in the response,
null
otherwise. - See Also:
PolicyServiceResponse.getResponseMessage()
-
isSuccess
public boolean isSuccess()
Description copied from interface:PolicyServiceResponse
Test if this response represents a successful- Specified by:
isSuccess
in interfacePolicyServiceResponse
- Returns:
- true if response indicates success.
- See Also:
PolicyServiceResponse.isSuccess()
-
isValid
public boolean isValid()
Description copied from interface:PolicyServiceResponse
Test if the response format and mandatory data are present and correct.- Specified by:
isValid
in interfacePolicyServiceResponse
- Returns:
- true if message is valid.
- See Also:
PolicyServiceResponse.isValid()
-
-