public class WebMessage extends Object
Constructor and Description |
---|
WebMessage(String data)
Creates a WebMessage.
|
WebMessage(String data,
WebMessagePort[] ports)
Creates a WebMessage.
|
Modifier and Type | Method and Description |
---|---|
String |
getData()
Returns the data of the message.
|
WebMessagePort[] |
getPorts()
Returns the ports that are sent with the message, or null if no port
is sent.
|
public WebMessage(String data)
data
- the data of the message.public WebMessage(String data, WebMessagePort[] ports)
data
- the data of the message.ports
- the ports that are sent with the message.public String getData()
public WebMessagePort[] getPorts()