com.ibm.ecm.sample.webhook.util

Class GraphQLAPIUtil

  • java.lang.Object
    • com.ibm.ecm.sample.webhook.util.GraphQLAPIUtil


  • public class GraphQLAPIUtil
    extends java.lang.Object
    Utility class for handling calls to the Content Services GraphQL API. This class will use the TLS 1.2 protocol for calls to the GraphQL API. If a different protocol is required, the protocol can be changed in the code for this class.
    • Constructor Summary

      Constructors 
      Constructor and Description
      GraphQLAPIUtil() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static org.json.JSONObject callGraphQLAPI(java.lang.String graphQLCommand)
      Handles calls to the Content Services GraphQL API.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphQLAPIUtil

        public GraphQLAPIUtil()
    • Method Detail

      • callGraphQLAPI

        public static org.json.JSONObject callGraphQLAPI(java.lang.String graphQLCommand)
        Handles calls to the Content Services GraphQL API.
        Parameters:
        graphQLCommand - GraphQL command, either a query or mutation, to pass to the Content Services GraphQL API
        Returns:
        Response for the call to the Content Services GraphQL API