Package com.sun.identity.policy.remote
Class PolicyResponse
- java.lang.Object
-
- com.sun.identity.policy.remote.PolicyResponse
-
public class PolicyResponse extends Object
ThisPolicyResponserepresents a PolicyResponse XML document. The PolicyResponse DTD is defined as the following:
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPP_SSO_TOKEN_INVALIDException message if Application SSO Token is invalidstatic intPOLICY_ADD_LISTENER_RESPONSEAdd Policy Listener Resource ID.static intPOLICY_ADVICES_HANDLEABLE_BY_AM_RESPONSEPolicy Advices Handleable by OpenAM Response ID.static intPOLICY_EXCEPTIONPolicy Exception ID.static intPOLICY_REMOVE_LISTENER_RESPONSERemove Policy Listener Resource ID.static intPOLICY_RESPONSE_RESOURCE_RESULTPolicy Response Resource Result ID.
-
Constructor Summary
Constructors Constructor Description PolicyResponse()Default constructor forPolicyResponse.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdvicesHandleableByAMResponsegetAdvicesHandleableByAMResponse()Returns theAdvicesHandleableByAMResponseobject.StringgetExceptionMsg()Returns the exception response.longgetIssueInstant()Returns the issue instantintgetMethodID()Returns the method ID of the Policy Response.StringgetRequestId()Returns the request ID.SetgetResourceResults()Returns the set of the sub resource results.static PolicyResponseparseXML(Node pNode)ReturnsPolicyResponseobject constructed from XML.voidsetAdvicesHandleableByAMResponse(AdvicesHandleableByAMResponse advicesHandleableByAMResponse)Set theAdvicesHandleableByAMResponse.voidsetExceptionMsg(String exMsg)Sets the exception response.voidsetIssueInstant(long issueInst)Sets the issue instantvoidsetMethodID(int id)Sets the method ID of the Policy Response.voidsetRequestId(String reqId)Sets the request ID.voidsetResourceResults(Set set)Sets the set of the sub resource results.StringtoXMLString()Returns string representation of this object.
-
-
-
Field Detail
-
POLICY_RESPONSE_RESOURCE_RESULT
public static final int POLICY_RESPONSE_RESOURCE_RESULT
Policy Response Resource Result ID.- See Also:
- Constant Field Values
-
POLICY_ADD_LISTENER_RESPONSE
public static final int POLICY_ADD_LISTENER_RESPONSE
Add Policy Listener Resource ID.- See Also:
- Constant Field Values
-
POLICY_REMOVE_LISTENER_RESPONSE
public static final int POLICY_REMOVE_LISTENER_RESPONSE
Remove Policy Listener Resource ID.- See Also:
- Constant Field Values
-
POLICY_EXCEPTION
public static final int POLICY_EXCEPTION
Policy Exception ID.- See Also:
- Constant Field Values
-
POLICY_ADVICES_HANDLEABLE_BY_AM_RESPONSE
public static final int POLICY_ADVICES_HANDLEABLE_BY_AM_RESPONSE
Policy Advices Handleable by OpenAM Response ID.- See Also:
- Constant Field Values
-
APP_SSO_TOKEN_INVALID
public static final String APP_SSO_TOKEN_INVALID
Exception message if Application SSO Token is invalid- See Also:
- Constant Field Values
-
-
Method Detail
-
getMethodID
public int getMethodID()
Returns the method ID of the Policy Response.- Returns:
- the method ID.
-
setMethodID
public void setMethodID(int id)
Sets the method ID of the Policy Response.- Parameters:
id- the method ID.
-
getRequestId
public String getRequestId()
Returns the request ID.- Returns:
- the request ID.
-
setRequestId
public void setRequestId(String reqId)
Sets the request ID.- Parameters:
reqId- the ID of the request.
-
getIssueInstant
public long getIssueInstant()
Returns the issue instant- Returns:
- the issue instant
-
setIssueInstant
public void setIssueInstant(long issueInst)
Sets the issue instant- Parameters:
issueInst- issue instant
-
getResourceResults
public Set getResourceResults()
Returns the set of the sub resource results.- Returns:
- the sub resource result set.
-
setResourceResults
public void setResourceResults(Set set)
Sets the set of the sub resource results.- Parameters:
set- the sub resource result set.
-
getAdvicesHandleableByAMResponse
public AdvicesHandleableByAMResponse getAdvicesHandleableByAMResponse()
Returns theAdvicesHandleableByAMResponseobject.- Returns:
AdvicesHandleableByAMResponseobject.
-
setAdvicesHandleableByAMResponse
public void setAdvicesHandleableByAMResponse(AdvicesHandleableByAMResponse advicesHandleableByAMResponse)
Set theAdvicesHandleableByAMResponse.- Parameters:
advicesHandleableByAMResponse- theAdvicesHandleableByAMResponse.
-
getExceptionMsg
public String getExceptionMsg()
Returns the exception response.- Returns:
- the exception response.
-
setExceptionMsg
public void setExceptionMsg(String exMsg)
Sets the exception response.- Parameters:
exMsg- the exception response.
-
parseXML
public static PolicyResponse parseXML(Node pNode) throws PolicyEvaluationException
ReturnsPolicyResponseobject constructed from XML.- Parameters:
pNode- the XML DOM node for thePolicyResponseobject.- Returns:
- constructed
PolicyResponseobject. - Throws:
PolicyEvaluationException
-
toXMLString
public String toXMLString()
Returns string representation of this object.- Returns:
- string representation of this object.
-
-