p2ps.pipe
Class MessageReceivedEvent
java.lang.Object
java.util.EventObject
p2ps.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
| Fields inherited from class java.util.EventObject |
source |
| 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 |
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
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