public class ApolloMessages extends Object
| Constructor and Description |
|---|
ApolloMessages() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.web.socket.TextMessage |
complete(String id) |
static org.springframework.web.socket.TextMessage |
connectionAck() |
static org.springframework.web.socket.TextMessage |
connectionError() |
static org.springframework.web.socket.TextMessage |
connectionError(String message) |
static org.springframework.web.socket.TextMessage |
data(String id,
graphql.ExecutionResult result) |
static org.springframework.web.socket.TextMessage |
error(String id,
List<graphql.GraphQLError> errors) |
static org.springframework.web.socket.TextMessage |
error(String id,
String message) |
static org.springframework.web.socket.TextMessage |
error(String id,
Throwable exception) |
static ApolloMessage |
from(org.springframework.web.socket.TextMessage message) |
static org.springframework.web.socket.TextMessage |
keepAlive() |
public static ApolloMessage from(org.springframework.web.socket.TextMessage message) throws IOException
IOExceptionpublic static org.springframework.web.socket.TextMessage connectionAck()
throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static org.springframework.web.socket.TextMessage keepAlive()
throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static org.springframework.web.socket.TextMessage connectionError(String message) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static org.springframework.web.socket.TextMessage connectionError()
throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static org.springframework.web.socket.TextMessage data(String id, graphql.ExecutionResult result) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static org.springframework.web.socket.TextMessage complete(String id) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static org.springframework.web.socket.TextMessage error(String id, List<graphql.GraphQLError> errors) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static org.springframework.web.socket.TextMessage error(String id, Throwable exception) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionCopyright © 2018–2021. All rights reserved.