Package com.sun.identity.policy.remote
Class PolicyListenerRequest
- java.lang.Object
-
- com.sun.identity.policy.remote.PolicyListenerRequest
-
- All Implemented Interfaces:
PolicyListener
public class PolicyListenerRequest extends Object implements PolicyListener
ThisPolicyListenerRequestclass represents an AddPolicyListener XML document. The AddPolicyListener DTD is defined as the following:
-
-
Constructor Summary
Constructors Constructor Description PolicyListenerRequest()Default constructor forPolicyListenerRequest
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNotificationURL()Returns the notification URL to which the notification is sent.StringgetServiceName()Returns the service name on which this listener listens.StringgetServiceTypeName()Returns the service name on which the listener listens.static PolicyListenerRequestparseXML(Node pNode)ReturnsPolicyListenerRequestobject constructed from a XML.voidpolicyChanged(PolicyEvent evt)Handles policy change event.voidsetNotificationURL(String url)Sets the notification URL to which the notification is sent.voidsetServiceName(String name)Sets the service name on which this listener listensStringtoXMLString()Returns a XML representation of this object.
-
-
-
Method Detail
-
getServiceName
public String getServiceName()
Returns the service name on which this listener listens.- Returns:
- service name.
-
setServiceName
public void setServiceName(String name)
Sets the service name on which this listener listens- Parameters:
name- Service name.
-
getNotificationURL
public String getNotificationURL()
Returns the notification URL to which the notification is sent.- Returns:
- notification URL
-
setNotificationURL
public void setNotificationURL(String url)
Sets the notification URL to which the notification is sent.- Parameters:
url- the notification URL.
-
parseXML
public static PolicyListenerRequest parseXML(Node pNode) throws PolicyEvaluationException
ReturnsPolicyListenerRequestobject constructed from a XML.- Parameters:
pNode- the XML DOM node for thePolicyListenerRequestobject.- Returns:
- constructed
PolicyListenerRequestobject. - Throws:
PolicyEvaluationException
-
toXMLString
public String toXMLString()
Returns a XML representation of this object.- Returns:
- a XML representation of this object.
-
getServiceTypeName
public String getServiceTypeName()
Returns the service name on which the listener listens.- Specified by:
getServiceTypeNamein interfacePolicyListener- Returns:
- service name.
-
policyChanged
public void policyChanged(PolicyEvent evt)
Handles policy change event.- Specified by:
policyChangedin interfacePolicyListener- Parameters:
evt- the policy event regarding the policy change.- See Also:
PolicyEvent
-
-