Class ParseActionResponseFromJsonMap

    • Constructor Detail

      • ParseActionResponseFromJsonMap

        public ParseActionResponseFromJsonMap​(HttpResponse response)
    • Method Detail

      • apply

        public ActionResponse apply​(Map<String,​Object> map)
        Parses the JSON Map for an Error message. An OpenStack error response typically is a Map of Map containing a single key which is "error", "badRequest", etc which contains a value of another Map containing the underlying message
        Specified by:
        apply in interface Function<Map<String,​Object>,​ActionResponse>
        Parameters:
        map - the JSON Map
        Returns:
        ActionResponse or null if the map could not be parsed