Class GraphQLMessage
- java.lang.Object
-
- org.apache.unomi.graphql.servlet.websocket.GraphQLMessage
-
public class GraphQLMessage extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GraphQLMessage.Builder
-
Field Summary
Fields Modifier and Type Field Description static String
GQL_COMPLETE
static String
GQL_DATA
static String
GQL_ERROR
static String
GQL_START
static String
GQL_STOP
static String
TYPE_CONNECTION_ACK
static String
TYPE_CONNECTION_ERROR
static String
TYPE_CONNECTION_INIT
static String
TYPE_CONNECTION_KEEP_ALIVE
static String
TYPE_CONNECTION_TERMINATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphQLMessage
complete(String id)
static GraphQLMessage
connectionAck(String id)
static GraphQLMessage.Builder
create(String id)
static GraphQLMessage
fromJson(String textMessage)
String
getId()
Map<String,Object>
getPayload()
String
getType()
String
toString()
-
-
-
Field Detail
-
TYPE_CONNECTION_INIT
public static final String TYPE_CONNECTION_INIT
- See Also:
- Constant Field Values
-
TYPE_CONNECTION_ACK
public static final String TYPE_CONNECTION_ACK
- See Also:
- Constant Field Values
-
TYPE_CONNECTION_ERROR
public static final String TYPE_CONNECTION_ERROR
- See Also:
- Constant Field Values
-
TYPE_CONNECTION_KEEP_ALIVE
public static final String TYPE_CONNECTION_KEEP_ALIVE
- See Also:
- Constant Field Values
-
TYPE_CONNECTION_TERMINATE
public static final String TYPE_CONNECTION_TERMINATE
- See Also:
- Constant Field Values
-
GQL_START
public static final String GQL_START
- See Also:
- Constant Field Values
-
GQL_DATA
public static final String GQL_DATA
- See Also:
- Constant Field Values
-
GQL_ERROR
public static final String GQL_ERROR
- See Also:
- Constant Field Values
-
GQL_COMPLETE
public static final String GQL_COMPLETE
- See Also:
- Constant Field Values
-
GQL_STOP
public static final String GQL_STOP
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromJson
public static GraphQLMessage fromJson(String textMessage)
-
connectionAck
public static GraphQLMessage connectionAck(String id)
-
complete
public static GraphQLMessage complete(String id)
-
getId
public String getId()
-
getType
public String getType()
-
create
public static GraphQLMessage.Builder create(String id)
-
-