Project JXTA

net.jxta.impl.protocol
Class DiscoveryResponse

java.lang.Object
  |
  +--net.jxta.protocol.DiscoveryResponseMsg
        |
        +--net.jxta.impl.protocol.DiscoveryResponse

public class DiscoveryResponse
extends net.jxta.protocol.DiscoveryResponseMsg

DsicoveryRespponse

Since:
1.0

Fields inherited from class net.jxta.protocol.DiscoveryResponseMsg
count, type
 
Constructor Summary
DiscoveryResponse(java.io.InputStream stream)
          Construct a doc from InputStream
DiscoveryResponse(int count, int type, java.lang.String peeradv, java.lang.String attr, java.lang.String value, java.util.Enumeration responses)
          Construct a doc from strings
DiscoveryResponse(net.jxta.document.TextElement doc)
          Construct from a StructuredDocument
 
Method Summary
 net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType asMimeType)
          return a Document represetation of this object
 void readIt(net.jxta.document.TextElement doc)
           
 java.lang.String toString()
          return the string representaion of this doc
 
Methods inherited from class net.jxta.protocol.DiscoveryResponseMsg
getAdvertisementType, getDiscoveryType, getPeerAdv, getQueryAttr, getQueryValue, getResponseCount, getResponses, setDiscoveryType, setPeerAdv, setQueryAttr, setQueryValue, setResponseCount, setResponses
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiscoveryResponse

public DiscoveryResponse(java.io.InputStream stream)
                  throws java.lang.Exception
Construct a doc from InputStream

DiscoveryResponse

public DiscoveryResponse(net.jxta.document.TextElement doc)
Construct from a StructuredDocument

DiscoveryResponse

public DiscoveryResponse(int count,
                         int type,
                         java.lang.String peeradv,
                         java.lang.String attr,
                         java.lang.String value,
                         java.util.Enumeration responses)
Construct a doc from strings
Method Detail

readIt

public void readIt(net.jxta.document.TextElement doc)

getDocument

public net.jxta.document.Document getDocument(net.jxta.document.MimeMediaType asMimeType)
                                       throws java.lang.Exception
return a Document represetation of this object
Overrides:
getDocument in class net.jxta.protocol.DiscoveryResponseMsg

toString

public java.lang.String toString()
return the string representaion of this doc
Overrides:
toString in class java.lang.Object

Project JXTA