public abstract class ImmutableMessage
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
metadata
Metadata
|
Constructor and Description |
---|
ImmutableMessage(java.lang.String metadata) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
genMetadata(ImmutableMessage orig,
java.lang.String key,
java.lang.String val)
Convenience function to create a new metadata String from a message's metadata and a new
key=val pair.
|
java.lang.String |
genMetadata(java.lang.String key,
java.lang.String val)
Convenience function to create a new metadata String from this message's metadata and a new
key=val pair.
|
static java.lang.String |
genMetadataEntry(java.lang.String key,
java.lang.String val)
Convenience function to generate a key=val pair.
|
java.lang.String |
getMetadata()
Retrieves the metadata
|
static java.util.Map<java.lang.String,java.lang.String> |
getMetadata(java.lang.String mData)
Convenience function to split metadata of the form &key1=val1&key2=val2...
|
public java.lang.String getMetadata()
public static java.util.Map<java.lang.String,java.lang.String> getMetadata(java.lang.String mData)
mData
- original metadatapublic java.lang.String genMetadata(java.lang.String key, java.lang.String val)
key
- keyval
- valuepublic static java.lang.String genMetadata(ImmutableMessage orig, java.lang.String key, java.lang.String val)
orig
- metadata of existing metadatakey
- keyval
- valuepublic static java.lang.String genMetadataEntry(java.lang.String key, java.lang.String val)
key
- keyval
- value