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.StringgetMessageData()Get the network message data representation.PolicyServiceMessage.ServiceOpgetOperation()Get the operation type.PolicyServiceRequestgetRequest()The request to which this repsonse has been received.java.lang.StringgetResponseMessage()The response descriptive text from ITIM.booleanisSuccess()Test if this response represents a successfulbooleanisValid()Test if the response format and mandatory data are present and correct.
-
-
-
Method Detail
-
getRequest
public PolicyServiceRequest getRequest()
Description copied from interface:PolicyServiceResponseThe request to which this repsonse has been received. Use for correlation purposes.- Specified by:
getRequestin interfacePolicyServiceResponse- Returns:
- The original request message instance.
- See Also:
PolicyServiceResponse.getRequest()
-
getMessageData
public java.lang.String getMessageData() throws java.io.IOExceptionDescription copied from interface:PolicyServiceMessageGet the network message data representation.- Specified by:
getMessageDatain interfacePolicyServiceMessage- Returns:
- The message data, or
nullif not set. - Throws:
java.io.IOException- See Also:
PolicyServiceMessage.getMessageData()
-
getOperation
public PolicyServiceMessage.ServiceOp getOperation()
Description copied from interface:PolicyServiceMessageGet the operation type.- Specified by:
getOperationin 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:PolicyServiceResponseThe response descriptive text from ITIM.- Specified by:
getResponseMessagein interfacePolicyServiceResponse- Returns:
- The text string if one was present in the response,
nullotherwise. - See Also:
PolicyServiceResponse.getResponseMessage()
-
isSuccess
public boolean isSuccess()
Description copied from interface:PolicyServiceResponseTest if this response represents a successful- Specified by:
isSuccessin interfacePolicyServiceResponse- Returns:
- true if response indicates success.
- See Also:
PolicyServiceResponse.isSuccess()
-
isValid
public boolean isValid()
Description copied from interface:PolicyServiceResponseTest if the response format and mandatory data are present and correct.- Specified by:
isValidin interfacePolicyServiceResponse- Returns:
- true if message is valid.
- See Also:
PolicyServiceResponse.isValid()
-
-