public class MessageDto
extends java.lang.Object
It is built and processed by the plugin and you don't have to modify it.
You only need to transfer it via the network by serializing and deserializing it on your own.
However, it is necessary in some contexts to access certain information such as the sessionId in the case of asynchronous communication or the serverNodeId in the case of synchronous communication with several server instances.
Note that you can extend it or encapsulate it in another object if you need to transport other technical information related to the network infrastructure for example.
| Modifier and Type | Class and Description |
|---|---|
static class |
MessageDto.Action
Action enum (for internal use only).
|
| Constructor and Description |
|---|
MessageDto()
Constructor.
|
MessageDto(MessageDto from)
Constructor by copy.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAction()
Gets the name of the internal action to perform in case of a request, or the original action
performed in case of a response.
|
java.lang.String |
getBody()
Gets the body content.
|
java.lang.String |
getClientNodeId()
Gets the client node id.
|
java.lang.String |
getLocalReaderName()
Gets the name of the local reader name associated to the transaction.
|
java.lang.String |
getRemoteReaderName()
Gets the name of the remote reader associated to the transaction.
|
java.lang.String |
getServerNodeId()
Gets the server node id.
In case of a multi-server environment, this field will permit to client or load balancer to identify the target server to access. |
java.lang.String |
getSessionId()
Gets the session id.
In case of a full duplex communication, this field will permit to client and server to identify the socket. This id is also useful for debugging. |
MessageDto |
setAction(java.lang.String action)
This setter method must only be used during the deserialization process.
|
MessageDto |
setBody(java.lang.String body)
This setter method must only be used during the deserialization process.
|
MessageDto |
setClientNodeId(java.lang.String clientNodeId)
This setter method must only be used during the deserialization process.
|
MessageDto |
setLocalReaderName(java.lang.String localReaderName)
This setter method must only be used during the deserialization process.
|
MessageDto |
setRemoteReaderName(java.lang.String remoteReaderName)
This setter method must only be used during the deserialization process.
|
MessageDto |
setServerNodeId(java.lang.String serverNodeId)
This setter method must only be used during the deserialization process.
|
MessageDto |
setSessionId(java.lang.String sessionId)
This setter method must only be used during the deserialization process.
|
public MessageDto()
public MessageDto(MessageDto from)
from - The source dto to copy.public final java.lang.String getSessionId()
public final MessageDto setSessionId(java.lang.String sessionId)
sessionId - The session id to set.public final java.lang.String getAction()
public final MessageDto setAction(java.lang.String action)
action - The action to set.public final java.lang.String getClientNodeId()
public final MessageDto setClientNodeId(java.lang.String clientNodeId)
clientNodeId - The client node id to set.public final java.lang.String getServerNodeId()
public final MessageDto setServerNodeId(java.lang.String serverNodeId)
serverNodeId - The server node id to set.public final java.lang.String getLocalReaderName()
public final MessageDto setLocalReaderName(java.lang.String localReaderName)
localReaderName - The local reader name to set.public final java.lang.String getRemoteReaderName()
public final MessageDto setRemoteReaderName(java.lang.String remoteReaderName)
remoteReaderName - The remote reader name to set.public final java.lang.String getBody()
public final MessageDto setBody(java.lang.String body)
body - The body to set.