Project JXTA

net.jxta.discovery
Class DiscoveryEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--net.jxta.discovery.DiscoveryEvent

public class DiscoveryEvent
extends java.util.EventObject

Container for Discovery events.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DiscoveryEvent(java.lang.Object source, DiscoveryResponseMsg response, int queryid)
          Creates a new event
 
Method Summary
 int getQueryID()
          Returns The query id associated with the response returned in this event
 DiscoveryResponseMsg getResponse()
          Returns the response 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

DiscoveryEvent

public DiscoveryEvent(java.lang.Object source,
                      DiscoveryResponseMsg response,
                      int queryid)
Creates a new event
Parameters:
source - The object on which the Event initially occurred
queryid - The query id associated with the response returned in this event
See Also:
DiscoveryResponseMsg, ResolverResponseMsg
Method Detail

getResponse

public DiscoveryResponseMsg getResponse()
Returns the response associated with the event
Returns:
DiscoveryResponseMsg
See Also:
DiscoveryResponseMsg

getQueryID

public int getQueryID()
Returns The query id associated with the response returned in this event
Returns:
query id associated with the response
See Also:
DiscoveryResponseMsg

Project JXTA