public class Messages
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIVITY_TYPE |
static java.lang.String |
CONTENT |
static java.lang.String |
CONVERSATION_ID |
static java.lang.String |
IN_REPLY_TO |
static java.lang.String |
LANGUAGE |
static java.lang.String |
OPERATION |
static java.lang.String |
PARENT_SCOPE |
static java.lang.String |
PARENT_TYPE |
static java.lang.String |
PERFORMATIVE |
static java.lang.String |
REPLY_TO |
static java.lang.String |
REPLY_WITH |
static java.lang.String |
WHY_NOT_UNDERSTOOD |
Constructor and Description |
---|
Messages() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
content(Json j) |
static Json |
createMessage(Performative performative,
Activity activity) |
static Json |
createMessage(Performative performative,
java.lang.String type,
java.util.UUID activityId) |
static <T> T |
fromJson(Json j) |
static Json |
getReply(Json msg) |
static Json |
getReply(Json msg,
Performative performative) |
static Json |
getReply(Json msg,
Performative performative,
java.lang.Object content) |
static java.lang.Object |
getSender(Json msg)
Return the network identity of the sender of a given message.
|
static Json |
makeReply(Activity activity,
Performative performative,
java.lang.String replyWith) |
public static final java.lang.String PERFORMATIVE
public static final java.lang.String IN_REPLY_TO
public static final java.lang.String REPLY_WITH
public static final java.lang.String CONTENT
public static final java.lang.String LANGUAGE
public static final java.lang.String OPERATION
public static final java.lang.String REPLY_TO
public static final java.lang.String CONVERSATION_ID
public static final java.lang.String PARENT_SCOPE
public static final java.lang.String PARENT_TYPE
public static final java.lang.String ACTIVITY_TYPE
public static final java.lang.String WHY_NOT_UNDERSTOOD
public static <T> T fromJson(Json j)
public static <T> T content(Json j)
public static Json createMessage(Performative performative, Activity activity)
public static Json createMessage(Performative performative, java.lang.String type, java.util.UUID activityId)
public static Json getReply(Json msg, Performative performative, java.lang.Object content)
public static Json getReply(Json msg, Performative performative)
public static Json makeReply(Activity activity, Performative performative, java.lang.String replyWith)
public static Json getReply(Json msg)
public static java.lang.Object getSender(Json msg)
Return the network identity of the sender of a given message.
msg
-