JXTA

net.jxta.protocol
Class RouteResponseMsg

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

Deprecated. This message is private to the Endpoint Router implementation and not part of the JXTA public API. It will be moved from this package.

@Deprecated
public abstract class RouteResponseMsg
extends Object

Sent by peers in response to Route Query Messages as part of the Endpoint Router Protocol (ERp). Contains a route advertisement for the destination peer. Route Response Messages are transmitted as responses within Resolver Response Message.

See Also:
RouteQueryMsg, JXTA Protocols Specification : Endpoint Routing Protocol

Constructor Summary
RouteResponseMsg()
          Deprecated.  
 
Method Summary
static String getAdvertisementType()
          Deprecated. All messages have a type (in xml this is !
 RouteAdvertisement getDestRoute()
          Deprecated. returns the destination route we were looking for
abstract  Document getDocument(MimeMediaType asMimeType)
          Deprecated. Write advertisement 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 responded
 void setDestRoute(RouteAdvertisement dst)
          Deprecated. set the destination route we were looking 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

RouteResponseMsg

public RouteResponseMsg()
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:ERR"

setDestRoute

public void setDestRoute(RouteAdvertisement dst)
Deprecated. 
set the destination route we were looking for

Parameters:
dst - destination route

getDestRoute

public RouteAdvertisement getDestRoute()
Deprecated. 
returns the destination route we were looking for

Returns:
route destination route advertisement

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 responded

Returns:
route RouteAdvertisement of the source peer that responded to the query

getDocument

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