p2ps.pipe
Class MessageReceivedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byp2ps.pipe.MessageReceivedEvent
All Implemented Interfaces:
java.io.Serializable

public class MessageReceivedEvent
extends java.util.EventObject

The event that is generated when a message is received

Version:
$Revision: 295 $
Author:
Ian Wang
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MessageReceivedEvent(InputPipe pipe, byte[] message)
          Construct an message received event
MessageReceivedEvent(InputPipe pipe, OutputPipe replypipe, byte[] message)
          Construct an message received event with a specified reply pipe
 
Method Summary
 InputPipe getInputPipe()
           
 byte[] getMessage()
           
 OutputPipe getReplyPipe()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageReceivedEvent

public MessageReceivedEvent(InputPipe pipe,
                            byte[] message)
Construct an message received event


MessageReceivedEvent

public MessageReceivedEvent(InputPipe pipe,
                            OutputPipe replypipe,
                            byte[] message)
Construct an message received event with a specified reply pipe

Method Detail

getInputPipe

public InputPipe getInputPipe()
Returns:
the input pipe the message was received on

getReplyPipe

public OutputPipe getReplyPipe()
Returns:
the output pipe to which the direct responses to this connection event should be sent (null if no reply pipe).

getMessage

public byte[] getMessage()
Returns:
the message