|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
aktbus.core.AktMessage | +--aktbus.kqml.KqmlMessage
Representing a KQML message as a subclass of AktMessage. According to Soton's encoding.
Fields inherited from class aktbus.core.AktMessage |
name_space |
Constructor Summary | |
KqmlMessage(java.lang.String body)
Construct a KqmlMessage by parsing a String. |
|
KqmlMessage(java.lang.String performative,
java.util.Collection params)
Create a KqmlMessage from a java.util.Collection of KqmlParam. |
|
KqmlMessage(java.lang.String performative,
KqmlParam[] params)
Construct a KqmlMessage from a performative (in a String) and an array of KqmlParam. |
|
KqmlMessage(java.lang.String performative,
java.util.Map params)
Create a KqmlMessage from a java.util.Map of KqmlParam. |
Method Summary | |
java.util.Map |
get_parameter_map()
Returns the set of KQML parameters as a java.util.Map of KqmlParam. |
java.util.Collection |
get_parameter_set()
Return the set of KQML parameters as a java.util.Collection of KqmlParam. |
java.lang.String |
get_performative()
Get the performative of a KqmlMessage. |
protected void |
initialise_namespace()
Initialise name space Map, overridding the one in AktMessage. |
Constructor Detail |
public KqmlMessage(java.lang.String body) throws org.xml.sax.SAXException, java.lang.Exception
body
- The String to be parsed.org.xml.sax.SAXException
- When a parsing error occurs.java.lang.Exception
- Other general errors.public KqmlMessage(java.lang.String performative, KqmlParam[] params) throws java.net.MalformedURLException, java.lang.Exception
performative
- The KQML performative in a String.param
- The KQML parameters in an array of KqmlParam.java.net.MalformedURLException
- If sender/receiver URL is not valid.java.lang.Exception
- Other general errors.public KqmlMessage(java.lang.String performative, java.util.Map params) throws java.net.MalformedURLException, java.lang.Exception
performative
- The KQML performative in a String.params
- A java.util.Map of KqmlParam.java.net.MalformedURLException
- If either sender/receiver URI is not valid.java.lang.Exception
- When other errors occur.public KqmlMessage(java.lang.String performative, java.util.Collection params) throws java.net.MalformedURLException, java.lang.Exception
performative
- The KQML performative in a String.param
- A java.util.Collection of KqmlParam.java.net.MalformedURLException
- When the sender/receiver URL string is not a valid HTTP URL.java.lang.Exception
- When other general errors occur.Method Detail |
public java.lang.String get_performative()
public java.util.Map get_parameter_map()
content
.
If you want to iterate through all KQML parameters,
use the get_parameter_set()
method instead.public java.util.Collection get_parameter_set()
get_parameter_map()
method instead.protected void initialise_namespace()
initialise_namespace
in class AktMessage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |