public class GraphQLClient extends Http
| Modifier and Type | Class and Description |
|---|---|
static class |
GraphQLClient.ErrorClass |
Http.RequestMethod| Modifier and Type | Field and Description |
|---|---|
private Configuration |
configuration |
private static String |
ERROR_CLASS_KEY |
private static String |
ERROR_EXTENSIONS_KEY |
private static String |
ERROR_MESSAGE_KEY |
private static String |
ERROR_OBJECT_KEY |
| Constructor and Description |
|---|
GraphQLClient(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatGraphQLRequest(String definition,
Map<String,Object> variables) |
static ValidationErrors |
getErrors(Map<String,Object> response) |
private static ValidationErrorCode |
getValidationErrorCode(Map<String,Object> error) |
Map<String,Object> |
query(String definition,
Request request) |
private void |
throwExceptionIfGraphQLErrorResponse(Map<String,Object> response) |
authorizationHeader, buildConnection, constructHeaders, delete, formatSanitizeBodyForLog, get, getCurrentTime, getSSLSocketFactory, httpDo, post, post, post, postMultipart, put, put, throwExceptionIfErrorStatusCodeprivate Configuration configuration
private static final String ERROR_OBJECT_KEY
private static final String ERROR_MESSAGE_KEY
private static final String ERROR_EXTENSIONS_KEY
private static final String ERROR_CLASS_KEY
public GraphQLClient(Configuration configuration)
public static String formatGraphQLRequest(String definition, Map<String,Object> variables)
private void throwExceptionIfGraphQLErrorResponse(Map<String,Object> response)
public static ValidationErrors getErrors(Map<String,Object> response)
private static ValidationErrorCode getValidationErrorCode(Map<String,Object> error)
Copyright © 2013-2018. All Rights Reserved.