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.


Field Summary
private  java.lang.Object message
          The message.
private  ConnectionToClient originator
          The connection that originated the message
 
Constructor Summary
OriginatorMessage(ConnectionToClient originator, java.lang.Object message)
          Constructs an instance of an OriginatorMessage
 
Method Summary
 java.lang.Object getMessage()
          Returns the message's contents.
 ConnectionToClient getOriginator()
          Returns the originating connection.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

originator

private ConnectionToClient originator
The connection that originated the message

message

private java.lang.Object message
The message.
Constructor Detail

OriginatorMessage

public OriginatorMessage(ConnectionToClient originator,
                         java.lang.Object message)
Constructs an instance of an OriginatorMessage
Parameters:
originator - The client who created this message
message - The contents of the message
Method Detail

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.