public class Payload extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Payload.ValueType
Type of the payload's value.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ITEM_PREFIX
Prefix of the payload data type.
|
| Constructor and Description |
|---|
Payload(String key,
String value,
Payload.ValueType valueType)
Creates a payload object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Gets the key of this payload.
|
String |
getPayloadString()
Returns the string representation of this payload.
|
String |
getValue()
Gets the value of this payload.
|
Payload.ValueType |
getValueType()
Gets the value type of this payload.
|
static Payload |
parse(String payloadString)
Parses a payload string and returns a payload object represented by that
string.
|
public static final String ITEM_PREFIX
public Payload(String key, String value, Payload.ValueType valueType)
key - key of the payloadvalue - value of the payloadvalueType - type of the payload valuepublic String getKey()
public String getValue()
public Payload.ValueType getValueType()
public String getPayloadString()
DataTransfer object.Copyright © 2017 Vaadin Ltd. All rights reserved.