JXTA

net.jxta.impl.endpoint.router
Class EndpointRouterMessage

java.lang.Object
  extended by net.jxta.impl.endpoint.router.EndpointRouterMessage

public class EndpointRouterMessage
extends Object

Router Message element. This element is added to every message to carry route information for the EndpointRouter service.


Field Summary
static String DestTag
           
static String GatewayForwardTag
           
static String GatewayReverseTag
           
static String LastHopTag
           
static String MESSAGE_NAME
           
static String MESSAGE_NS
           
static String Name
           
static String SrcTag
           
 
Constructor Summary
EndpointRouterMessage(Message message, boolean removeMsg)
           
 
Method Summary
 void clearAll()
           
 String display()
           
 EndpointAddress getDestAddress()
           
 Vector<AccessPointAdvertisement> getForwardHops()
           
 EndpointAddress getLastHop()
           
 Vector<AccessPointAdvertisement> getReverseHops()
           
 RouteAdvertisement getRouteAdv()
           
 EndpointAddress getSrcAddress()
           
 boolean isDirty()
           
 boolean msgExists()
           
 void prependReverseHop(AccessPointAdvertisement apa)
           
 void setDestAddress(EndpointAddress address)
           
 void setForwardHops(Vector<AccessPointAdvertisement> fhops)
           
 void setLastHop(EndpointAddress lhop)
           
 void setReverseHops(Vector<AccessPointAdvertisement> rhops)
           
 void setRouteAdv(RouteAdvertisement radv)
           
 void setSrcAddress(EndpointAddress address)
           
 void updateMessage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_NS

public static final String MESSAGE_NS
See Also:
Constant Field Values

MESSAGE_NAME

public static final String MESSAGE_NAME
See Also:
Constant Field Values

Name

public static final String Name
See Also:
Constant Field Values

SrcTag

public static final String SrcTag
See Also:
Constant Field Values

DestTag

public static final String DestTag
See Also:
Constant Field Values

LastHopTag

public static final String LastHopTag
See Also:
Constant Field Values

GatewayForwardTag

public static final String GatewayForwardTag
See Also:
Constant Field Values

GatewayReverseTag

public static final String GatewayReverseTag
See Also:
Constant Field Values
Constructor Detail

EndpointRouterMessage

public EndpointRouterMessage(Message message,
                             boolean removeMsg)
Method Detail

msgExists

public boolean msgExists()

isDirty

public boolean isDirty()

updateMessage

public void updateMessage()

setSrcAddress

public void setSrcAddress(EndpointAddress address)

getSrcAddress

public EndpointAddress getSrcAddress()

setDestAddress

public void setDestAddress(EndpointAddress address)

getDestAddress

public EndpointAddress getDestAddress()

setLastHop

public void setLastHop(EndpointAddress lhop)

getLastHop

public EndpointAddress getLastHop()

setForwardHops

public void setForwardHops(Vector<AccessPointAdvertisement> fhops)

getForwardHops

public Vector<AccessPointAdvertisement> getForwardHops()

prependReverseHop

public void prependReverseHop(AccessPointAdvertisement apa)

setReverseHops

public void setReverseHops(Vector<AccessPointAdvertisement> rhops)

getReverseHops

public Vector<AccessPointAdvertisement> getReverseHops()

getRouteAdv

public RouteAdvertisement getRouteAdv()

setRouteAdv

public void setRouteAdv(RouteAdvertisement radv)

display

public String display()

clearAll

public void clearAll()

JXSE