JXTA

net.jxta.impl.protocol
Class RouteQuery

java.lang.Object
  extended by net.jxta.protocol.RouteQueryMsg
      extended by net.jxta.impl.protocol.RouteQuery

public class RouteQuery
extends RouteQueryMsg

RouteQuery message used by the Endpoint Routing protocol to query for route


Constructor Summary
RouteQuery()
          Default Constructor
RouteQuery(PeerID dest, RouteAdvertisement srcRoute, Collection<PeerID> badhops)
          Deprecated. Use default constructor and accessors.
RouteQuery(XMLElement doc)
          Construct from an XML document fragment.
 
Method Summary
 StructuredDocument getDocument(MimeMediaType asMimeType)
          Write message into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested.
 String toString()
          return a string representation of this RouteQuery doc
 
Methods inherited from class net.jxta.protocol.RouteQueryMsg
addBadHop, getAdvertisementType, getBadHops, getDestPeerID, getSrcRoute, setBadHops, setDestPeerID, setSrcRoute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RouteQuery

public RouteQuery()
Default Constructor


RouteQuery

@Deprecated
public RouteQuery(PeerID dest,
                             RouteAdvertisement srcRoute,
                             Collection<PeerID> badhops)
Deprecated. Use default constructor and accessors.

Constructs a RouteQuery

Parameters:
dest - dest PeerID
srcRoute - source source
badhops - lis of AccessPointAdvertisements

RouteQuery

public RouteQuery(XMLElement doc)
Construct from an XML document fragment.

Parameters:
doc - the element
Method Detail

getDocument

public StructuredDocument getDocument(MimeMediaType asMimeType)
Write message into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested. Two standard document forms are defined. "text/text" encodes the document in a form nice for printing out, and "text/xml" which provides an XML representation.

Specified by:
getDocument in class RouteQueryMsg
Parameters:
asMimeType - mime-type format requested
Returns:
Document representation of the document as an advertisement

toString

public String toString()
return a string representation of this RouteQuery doc

Overrides:
toString in class Object

JXSE