public class TransportMessageFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
EMPTY_STRING |
Constructor and Description |
---|
TransportMessageFactory() |
Modifier and Type | Method and Description |
---|---|
private static GeppettoTransportMessage |
createTransportMessage(java.lang.String requestID,
java.lang.String type,
java.util.List<java.util.AbstractMap.SimpleEntry<java.lang.String,java.lang.String>> params)
Create JSON object with type and parameters
|
static GeppettoTransportMessage |
getTransportMessage(java.lang.String requestID,
OutboundMessages type,
java.lang.String update)
Create JSON object with appropriate message for its type
|
private static final java.lang.String EMPTY_STRING
public static GeppettoTransportMessage getTransportMessage(java.lang.String requestID, OutboundMessages type, java.lang.String update)
id
- type
- - Type of message of requestedprivate static GeppettoTransportMessage createTransportMessage(java.lang.String requestID, java.lang.String type, java.util.List<java.util.AbstractMap.SimpleEntry<java.lang.String,java.lang.String>> params)
type
- - Type of messageparams
- - list of name-value pairs representing parameter names and values