oracle.panama.util
Class NotificationEvent
java.lang.Object
|
+--java.util.EventObject
|
+--oracle.panama.util.NotificationEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class NotificationEvent
- extends java.util.EventObject
The notification event. Sent to all notification listeners.
- Since:
- PANAMA_10
- See Also:
- Serialized Form
NotificationEvent(oracle.panama.core.parm.asynch.Message message)
Constructs a notification event. |
NotificationEvent(java.lang.Object source,
java.lang.String address,
java.lang.String addressType,
java.lang.String subject,
java.lang.String message)
Constructs a notification event. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NotificationEvent
public NotificationEvent(oracle.panama.core.parm.asynch.Message message)
- Constructs a notification event.
In this case the source is expected to be the notification queue.
- Parameters:
message
- the message.
NotificationEvent
public NotificationEvent(java.lang.Object source,
java.lang.String address,
java.lang.String addressType,
java.lang.String subject,
java.lang.String message)
- Constructs a notification event.
- Parameters:
source
- the source object.address
- the address to send this message to.addressType
- the address type, name of logical device.subject
- the subject of this message.message
- the message to send.
getAddress
public java.lang.String getAddress()
- Returns the address.
- Returns:
- the agent address.
getAddressType
public java.lang.String getAddressType()
- Returns the address type.
- Returns:
- the agent address type, corresponds to the name of the logical device.
getMessage
public java.lang.String getMessage()
- Returns the message.
- Returns:
- the message as a ready markup document for the logical agent device.
getSubject
public java.lang.String getSubject()
- Returns the subject.
- Returns:
- the subject or null if not defined.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.EventObject