Package com.sun.identity.policy.remote
Class PolicyService
- java.lang.Object
-
- com.sun.identity.policy.remote.PolicyService
-
public class PolicyService extends Object
ThisPolicyServiceclass repolicyResents a PolicyService XML document. The PolicyService DTD is defined as the following:
-
-
Field Summary
Fields Modifier and Type Field Description static intPOLICY_NOTIFICATION_IDPolicy Notification ID.static intPOLICY_REQUEST_IDPolicy Request ID.static intPOLICY_RESPONSE_IDPolicy Response ID.static StringPOLICY_SERVICEPolicy Service name.
-
Constructor Summary
Constructors Constructor Description PolicyService()Default Constructor forPolicyService.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMethodID()Returns the method id of the Policy Service.PolicyNotificationgetPolicyNotification()Returns thePolicyNotificationobject.PolicyRequestgetPolicyRequest()Returns thePolicyRequestobject.PolicyResponsegetPolicyResponse()Returns thePolicyResponseobject.StringgetRevision()Returns the service revision number of the Policy Service.StringgetVersion()Returns the version number of the Policy Service.static PolicyServiceparseXML(String xml)ReturnsPolicyServiceobject constructed from XML.voidsetMethodID(int id)Sets the method id of the Policy Service.voidsetPolicyNotification(PolicyNotification noti)Sets thePolicyNotificationof the Policy Service.voidsetPolicyRequest(PolicyRequest req)Sets thePolicyRequestof the Policy Service.voidsetPolicyResponse(PolicyResponse res)Sets thePolicyResponseof the Policy Service.voidsetRevision(String revision)Sets the service revision number for the Policy Service.voidsetVersion(String ver)Sets the version for the Policy Service.StringtoXMLString()Returns string representation of this object.
-
-
-
Field Detail
-
POLICY_SERVICE
public static final String POLICY_SERVICE
Policy Service name.- See Also:
- Constant Field Values
-
POLICY_REQUEST_ID
public static final int POLICY_REQUEST_ID
Policy Request ID.- See Also:
- Constant Field Values
-
POLICY_RESPONSE_ID
public static final int POLICY_RESPONSE_ID
Policy Response ID.- See Also:
- Constant Field Values
-
POLICY_NOTIFICATION_ID
public static final int POLICY_NOTIFICATION_ID
Policy Notification ID.- See Also:
- Constant Field Values
-
-
Method Detail
-
getRevision
public String getRevision()
Returns the service revision number of the Policy Service.- Returns:
- the service revision number of the Policy Service.
-
setRevision
public void setRevision(String revision)
Sets the service revision number for the Policy Service.- Parameters:
revision- the revision
-
getVersion
public String getVersion()
Returns the version number of the Policy Service.- Returns:
- the version of the Policy Service.
-
setVersion
public void setVersion(String ver)
Sets the version for the Policy Service.- Parameters:
ver- the version.
-
getMethodID
public int getMethodID()
Returns the method id of the Policy Service.- Returns:
- the method id of the Policy Service.
-
setMethodID
public void setMethodID(int id)
Sets the method id of the Policy Service.- Parameters:
id- the method id of this Policy Service
-
getPolicyRequest
public PolicyRequest getPolicyRequest()
Returns thePolicyRequestobject.- Returns:
- the
PolicyRequestobject.
-
setPolicyRequest
public void setPolicyRequest(PolicyRequest req)
Sets thePolicyRequestof the Policy Service.- Parameters:
req- thePolicyRequestof this Policy Service
-
getPolicyResponse
public PolicyResponse getPolicyResponse()
Returns thePolicyResponseobject.- Returns:
- the
PolicyResponseobject.
-
setPolicyResponse
public void setPolicyResponse(PolicyResponse res)
Sets thePolicyResponseof the Policy Service.- Parameters:
res- thePolicyResponseof this Policy Service.
-
getPolicyNotification
public PolicyNotification getPolicyNotification()
Returns thePolicyNotificationobject.- Returns:
- the PolicyNotification object
-
setPolicyNotification
public void setPolicyNotification(PolicyNotification noti)
Sets thePolicyNotificationof the Policy Service.- Parameters:
noti- ThePolicyNotificationof this Policy Service.
-
parseXML
public static PolicyService parseXML(String xml) throws PolicyEvaluationException
ReturnsPolicyServiceobject constructed from XML.- Parameters:
xml- the XML document for thePolicyServiceobject.- Returns:
- constructed
PolicyServiceobject. - Throws:
PolicyEvaluationException
-
toXMLString
public String toXMLString()
Returns string representation of this object.- Returns:
- string representation of this object.
-
-