public interface IWWGraphQLEndpoint
| Modifier and Type | Method and Description |
|---|---|
void |
executeRequest()
Runs the main code to execute the GraphQL request on Watson Work Services.
|
IWWClient |
getClient() |
Boolean |
getProfileDump() |
GraphQLRequest |
getRequest() |
GraphResultContainer |
getResultContainer() |
String |
getResultContent() |
Object |
parseResultContainer()
Parses the ResultContainer to return the relevant Java object of results.
|
void |
setProfileDump(Boolean profileDump) |
void |
setRequest(GraphQLRequest request) |
void |
setResultContainer(GraphResultContainer resultContainer) |
void |
setResultContent(String resultContent) |
IWWClient getClient()
GraphQLRequest getRequest()
void setRequest(GraphQLRequest request)
request - GraphQLRequest, request details to be passed to the endpointGraphResultContainer getResultContainer()
executeRequest()void setResultContainer(GraphResultContainer resultContainer)
resultContainer - GraphResultContainer generated by a successful executeRequest(). Should not need overloading, but just in case, this method is still exposedvoid executeRequest()
throws WWException
setRequest(GraphQLRequest) must be called before calling this method. This method should not need
overloading.WWException - containing an error message, if the request was unsuccessfulObject parseResultContainer() throws WWException
WWException - containing an error message, if the request was unsuccessfulString getResultContent()
void setResultContent(String resultContent)
resultContent - String raw JSON results as stringBoolean getProfileDump()
void setProfileDump(Boolean profileDump)
profileDump - Boolean whether or not to dump profile data of query and response timeCopyright © 2018 OpenNTF. All rights reserved.