cgl.narada.discovery.topics.messages
Class TopicDiscoveryResponse

java.lang.Object
  extended by cgl.narada.discovery.topics.messages.TopicDiscoveryResponse
All Implemented Interfaces:
Serializable

public class TopicDiscoveryResponse
extends Object
implements Serializable

Created on Apr 8, 2005

See Also:
Serialized Form

Constructor Summary
TopicDiscoveryResponse()
           
 
Method Summary
 void add(SignedTopicAdvertisement ad)
           
static TopicDiscoveryResponse createObjectFromBytes(byte[] objectBytes)
          Unmarshalls the bytes as a TopicDiscoveryResponse object
 byte[] getBytes()
          Marshalls the object into an array of bytes.
 int getMatchingTopicCount()
           
 SignedTopicAdvertisement[] getMatchingTopics()
           
 Collection getMatchingTopicsCollection()
           
 String toString()
          For debugging purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopicDiscoveryResponse

public TopicDiscoveryResponse()
Method Detail

add

public void add(SignedTopicAdvertisement ad)

getMatchingTopicCount

public int getMatchingTopicCount()

getMatchingTopicsCollection

public Collection getMatchingTopicsCollection()

getMatchingTopics

public SignedTopicAdvertisement[] getMatchingTopics()

getBytes

public byte[] getBytes()
Marshalls the object into an array of bytes.

Returns:
an array of bytes representing the marshaller object, null if error occurs

createObjectFromBytes

public static TopicDiscoveryResponse createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a TopicDiscoveryResponse object

Parameters:
objectBytes -
Returns:
TopicDiscoveryResponse if successful, null if error occurs

toString

public String toString()
For debugging purposes

Overrides:
toString in class Object


For comments and suggestions please send e-mail to The NaradaBrokering Project