ClientMessage

public class ClientMessage extends Message

Class which represents client messages. Client messages is a way to extend the Entity API with special properties which may be used by plug-ins.

If no plug-in handles the client message, it is printed back to the response unaltered.

Client message can have arbitrary key-value (string-string typed) tuples properties.

Author:

Timm Fitschen (t.fitschen@indiscale.com)

Constructors

ClientMessage

public ClientMessage(String type, String body)

Methods

addToElement

public void addToElement(Element parent)

fromXML

public static ClientMessage fromXML(Element pe)

NB: This is the only place where properties are set in this class.

getProperty

public String getProperty(String key)

hashCode

public int hashCode()

toElement

public Element toElement()

toString

public String toString()