|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.softamis.net.exchange.support.MessageContent<K,V,A>
K
- type of keys used to identify registry itemsV
- type of values stored in the registrypublic class MessageContent<K extends java.io.Serializable,V extends java.io.Serializable,A extends java.io.Serializable>
Class that represents internal data that is sent as network notification. Data stored in this
class will be transfered by network in serializable form (which could be obtained via
proper implementation of CommunicationProtocol
CommunicationProtocol
Field Summary | |
---|---|
protected A |
fFrom
Origin of the message |
protected ItemEntry<K,V> |
fItemEntry
Data for item |
protected byte |
fMessageType
Type of message |
protected java.lang.String |
fSignature
Signature of notification used to determine whether this is own notification |
protected A |
fTo
Destination of the message |
Constructor Summary | |
---|---|
MessageContent()
|
|
MessageContent(java.lang.String aSignature)
|
Method Summary | |
---|---|
protected boolean |
equals(java.lang.String aFirst,
java.lang.String aSecond)
|
A |
getFrom()
Returns origin of the message |
ItemEntry<K,V> |
getItemEntry()
Returns data for item |
byte |
getMessageType()
Returns type of notification |
java.lang.String |
getSignature()
Returns signature of notification used to determine whether this is own notification |
A |
getTo()
Returns destination of the message |
protected boolean |
isAcceptSignature(java.lang.String aSignature)
|
protected void |
readContent(java.io.ObjectInput aIn)
|
boolean |
readExternal(java.io.ObjectInput aIn)
|
void |
setFrom(A aFrom)
Sets origin of the message |
void |
setItemEntry(ItemEntry<K,V> aItemEntry)
Sets data for item |
void |
setMessageType(byte aMessageType)
Sets type of notification |
void |
setSignature(java.lang.String aSignature)
Sets signature of notification used to determine whether this is own notification |
void |
setTo(A aTo)
Sets destination of the message |
void |
writeExternal(java.io.ObjectOutput aOut)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected byte fMessageType
CommunicationHelper
protected A extends java.io.Serializable fTo
protected A extends java.io.Serializable fFrom
protected java.lang.String fSignature
protected ItemEntry<K extends java.io.Serializable,V extends java.io.Serializable> fItemEntry
Constructor Detail |
---|
public MessageContent()
public MessageContent(java.lang.String aSignature)
Method Detail |
---|
public byte getMessageType()
public void setMessageType(byte aMessageType)
aMessageType
- type of messagepublic ItemEntry<K,V> getItemEntry()
public void setItemEntry(ItemEntry<K,V> aItemEntry)
aItemEntry
- data for itempublic A getTo()
public void setTo(A aTo)
aTo
- destination of the messagepublic A getFrom()
public void setFrom(A aFrom)
aFrom
- origin of the messagepublic java.lang.String getSignature()
public void setSignature(java.lang.String aSignature)
aSignature
- signaturepublic void writeExternal(java.io.ObjectOutput aOut) throws java.io.IOException
java.io.IOException
public boolean readExternal(java.io.ObjectInput aIn) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
protected boolean isAcceptSignature(java.lang.String aSignature)
protected boolean equals(java.lang.String aFirst, java.lang.String aSecond)
protected void readContent(java.io.ObjectInput aIn) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |