ocsf.server
Class OriginatorMessage
java.lang.Object
|
+--ocsf.server.OriginatorMessage
- public class OriginatorMessage
- extends java.lang.Object
A message class used by the Observable layer of the OCSF in order to conserve
information about the originator of a message.
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
originator
private ConnectionToClient originator
- The connection that originated the message
message
private java.lang.Object message
- The message.
OriginatorMessage
public OriginatorMessage(ConnectionToClient originator,
java.lang.Object message)
- Constructs an instance of an OriginatorMessage
- Parameters:
originator
- The client who created this messagemessage
- The contents of the message
getOriginator
public ConnectionToClient getOriginator()
- Returns the originating connection.
- Returns:
- The connection from which the message originated.
getMessage
public java.lang.Object getMessage()
- Returns the message's contents.
- Returns:
- The content of the message.