Project JXTA

net.jxta.pipe
Class PipeMsgEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bynet.jxta.pipe.PipeMsgEvent
All Implemented Interfaces:
Serializable

public class PipeMsgEvent
extends EventObject

Container for Pipe Message events.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PipeMsgEvent(Object source, Message message, PipeID pipeID)
          Creates a new event
 
Method Summary
 Message getMessage()
          Returns the message associated with the event
 PipeID getPipeID()
          Returns the pipeID associated with the event
 
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

PipeMsgEvent

public PipeMsgEvent(Object source,
                    Message message,
                    PipeID pipeID)
Creates a new event

Parameters:
source - The PipeObject on which the message was received.
message - the message object
pipeID - the pipe id of the pipe on which the message was received.
Method Detail

getMessage

public Message getMessage()
Returns the message associated with the event

Returns:
message

getPipeID

public PipeID getPipeID()
Returns the pipeID associated with the event

Returns:
pipeID

JXTA J2SE