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

Constructor Summary
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.
 
Method Summary
TypeMethod
 java.lang.String getAddress()
          Returns the address.
 java.lang.String getAddressType()
          Returns the address type.
 java.lang.String getMessage()
          Returns the message.
 java.lang.String getSubject()
          Returns the subject.
 java.lang.String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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