mam.internetworking.messages
Class RoutableMessage

Direct Known Subclasses:
RoutesQueryMessage, RoutesUpdateMessage, WrappedObjectMessage

public class RoutableMessage
implements Serializable


Field Summary
 final static intDEFAULT_TIME_TO_LIVE
           
 protected byte[]m_desKeyData
           
 protected RoutingTagm_destination
           
 (package private) MamIdm_id
           
 protected byte[]m_message
           
 protected byte[]m_signature
           
 (package private) InetAddressm_sourceAddress
           
 (package private) intm_sourcePort
           
 (package private) URLm_sourceUrl
           
 (package private) intm_timeToLive
           
 protected intm_type
           
 final static intTYPE_ROUTES_QUERY_MESSAGE
           
 final static intTYPE_ROUTES_UPDATE_MESSAGE
           
 final static intTYPE_TEST_ROUTABLE_MESSAGE
           
 final static intTYPE_WRAPPED_OBJECT_MESSAGE
           

Method Summary
 RoutingTaggetDestination()
           
 MamIdgetId()
           
 byte[]getMessage()
           
 byte[]getSignature()
           
 InetAddressgetSourceAddress()
           
 intgetSourcePort()
           
 URLgetSourceUrl()
           
 intgetType()
           
 protected voidsetDestination(RoutingTag destination)
           
 voidsetMessage(byte[] message)
           
 voidsetSource(URL sourceUrl, InetAddress sourceAddress, int sourcePort)
           
 protected voidsetType(int type)
           
 StringtoDebugString()
           

Field Detail

DEFAULT_TIME_TO_LIVE

public final static int DEFAULT_TIME_TO_LIVE

m_desKeyData

protected byte[] m_desKeyData

m_destination

protected RoutingTag m_destination

m_id

MamId m_id

m_message

protected byte[] m_message

m_signature

protected byte[] m_signature

m_sourceAddress

InetAddress m_sourceAddress

m_sourcePort

int m_sourcePort

m_sourceUrl

URL m_sourceUrl

m_timeToLive

int m_timeToLive

m_type

protected int m_type

TYPE_ROUTES_QUERY_MESSAGE

public final static int TYPE_ROUTES_QUERY_MESSAGE

TYPE_ROUTES_UPDATE_MESSAGE

public final static int TYPE_ROUTES_UPDATE_MESSAGE

TYPE_TEST_ROUTABLE_MESSAGE

public final static int TYPE_TEST_ROUTABLE_MESSAGE

TYPE_WRAPPED_OBJECT_MESSAGE

public final static int TYPE_WRAPPED_OBJECT_MESSAGE
Method Detail

getDestination

public RoutingTag getDestination()

getId

public MamId getId()

getMessage

public byte[] getMessage()

getSignature

public byte[] getSignature()

getSourceAddress

public InetAddress getSourceAddress()

getSourcePort

public int getSourcePort()

getSourceUrl

public URL getSourceUrl()

getType

public int getType()

setDestination

protected void setDestination(RoutingTag destination)

setMessage

public void setMessage(byte[] message)

setSource

public void setSource(URL sourceUrl, InetAddress sourceAddress, int sourcePort)

setType

protected void setType(int type)

toDebugString

public String toDebugString()

Association Links

to Class mam.id.MamId

to Class java.net.URL

to Class java.net.InetAddress

to Class mam.internetworking.RoutingTag