JXTA

net.jxta.protocol
Class RouteQueryMsg

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

Deprecated. This class will be removed from the public JXTA API. It is used only by the standard router message transport implementation and is of no use to applications.

@Deprecated
public abstract class RouteQueryMsg
extends Object

This class defines the EndpointRouter RouteQuery message "Query"

This message is part of the Endpoint Routing Protocol.

See Also:
RouteResponseMsg

Constructor Summary
RouteQueryMsg()
          Deprecated.  
 
Method Summary
 void addBadHop(PeerID badHop)
          Deprecated. Adds a bad hop to the list of those known to be bad for this route.
static String getAdvertisementType()
          Deprecated. All messages have a type (in xml this is !
 Set<PeerID> getBadHops()
          Deprecated. returns the bad hops know to the route
 PeerID getDestPeerID()
          Deprecated. returns the destination peer ID we are looking for
abstract  Document getDocument(MimeMediaType asMimeType)
          Deprecated. Write message into a document. asMimeType is a mime media-type specification and provides the form of the document which is being requested.
 RouteAdvertisement getSrcRoute()
          Deprecated. returns the route of the src peer that issued the routequery
 void setBadHops(Collection<PeerID> hops)
          Deprecated. Set the bad hops known into that route
 void setDestPeerID(PeerID pid)
          Deprecated. set the destination PeerID we are searching a route for
 void setSrcRoute(RouteAdvertisement route)
          Deprecated. set the Route advertisement of the source peer that is originating the query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouteQueryMsg

public RouteQueryMsg()
Deprecated. 
Method Detail

getAdvertisementType

public static String getAdvertisementType()
Deprecated. 
All messages have a type (in xml this is !doctype) which identifies the message

Returns:
String "jxta:ERQ"

setDestPeerID

public void setDestPeerID(PeerID pid)
Deprecated. 
set the destination PeerID we are searching a route for

Parameters:
pid - destination peerID

getDestPeerID

public PeerID getDestPeerID()
Deprecated. 
returns the destination peer ID we are looking for

Returns:
pid PeerID of the route destination

setSrcRoute

public void setSrcRoute(RouteAdvertisement route)
Deprecated. 
set the Route advertisement of the source peer that is originating the query

Parameters:
route - RouteAdvertisement of the source

getSrcRoute

public RouteAdvertisement getSrcRoute()
Deprecated. 
returns the route of the src peer that issued the routequery

Returns:
route RouteAdvertisement of the source peer

addBadHop

public void addBadHop(PeerID badHop)
Deprecated. 
Adds a bad hop to the list of those known to be bad for this route.

Parameters:
badHop - The known bad hop for the route.

setBadHops

public void setBadHops(Collection<PeerID> hops)
Deprecated. 
Set the bad hops known into that route

Parameters:
hops - RouteAdvertisement of the source

getBadHops

public Set<PeerID> getBadHops()
Deprecated. 
returns the bad hops know to the route

Returns:
The known bad hops for the route

getDocument

public abstract Document getDocument(MimeMediaType asMimeType)
Deprecated. 
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.

Parameters:
asMimeType - mime-type format requested
Returns:
Document representation of the document as an advertisement

JXSE