Class AuthenticatedAPIHandler.SendBodyAPIRequestConf<T extends AuthenticatedAPIHandler.SendBodyAPIRequestConf<T,​R>,​R>

    • Field Detail

      • body

        protected java.lang.String body
    • Constructor Detail

      • SendBodyAPIRequestConf

        public SendBodyAPIRequestConf​(java.lang.String... pathParts)
        Parameters:
        pathParts - Array for the path appended to the API path.
    • Method Detail

      • setJsonBodyFromMap

        public T setJsonBodyFromMap​(java.util.Map<java.lang.String,​?> map)
        Convert the Map into a JSON body String.
        Parameters:
        map - The map to convert.
        Returns:
        AuthenticatedAPIHandler.APIRequestConf.self().
        Throws:
        java.lang.IllegalArgumentException - When the map cannot be transformed to a Json String.
      • setJsonBodyFromMessage

        public T setJsonBodyFromMessage​(JsonMessage jsonMessage)
        Convert the jsonMessage into a JSON body String.
        Parameters:
        jsonMessage - The jsonMessage to convert.
        Returns:
        AuthenticatedAPIHandler.APIRequestConf.self().
        Throws:
        java.lang.IllegalArgumentException - When the jsonMessage cannot be transformed to a Json String.