com.ibm.security.certclient.base
Class PkEvent
- java.lang.Object
java.util.EventObject
com.ibm.security.certclient.base.PkEvent
All implemented interfaces:
Direct known subclasses:
- public abstract class PkEvent
- extends EventObject
Author:
Rod Mancisidor
See Also:
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
msg
Message encapsulated by this event.
|
| Fields inherited from class java.util.EventObject |
|---|
source |
Constructor Summary
| Modifier | Constructor and Description |
|---|---|
|
PkEvent(Object source,Object msg)
Constructs a
PkEvent.
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
getMsg()
Returns the message used to create this event.
|
|
toString()
Returns a string representation of this event.
|
|
|
write(PkEventFormatter formatter,OutputStream outputStream)
Streams out this event to the
outputStream using the
formatter.
|
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail
msg
- protected transient Object msg
Message encapsulated by this event. Its class depends on the formatter
used to parse the message. It can be null, for example when the message
was not parsed, but synthethized.
Constructor Detail
PkEvent
Constructs a
PkEvent.
Parameters:
source - The object that constructs the event. Usually, but not
necessarily, the source is an instance of a
subclass of * PkActiveSource. msg - The message that was parsed in order to create this event.
msg may be null when the event is not
built from a message. The class of msg depends
on the PkEventFormatter used to create this event. Method Detail
getMsg
- public Object getMsg()
Returns the message used to create this event.
write
- public abstract void write(PkEventFormatter formatter,
- OutputStream outputStream)
- throws IOException
- PkException
Streams out this event to the
outputStream using the
formatter.
Parameters:
formatter - The PkEventFormatter that will write the
event. outputStream - The OuputStream where the
formatter will write the event. Throws:
IOException - if the write operation fails for any reason. toString
- public String toString()
Returns a string representation of this event.
Overrides:
toString in class EventObject