Class MuranoApplicationUtils


  • public class MuranoApplicationUtils
    extends Object
    Author:
    Nikolay Mahotkin.
    • Constructor Detail

      • MuranoApplicationUtils

        public MuranoApplicationUtils()
    • Method Detail

      • toApplications

        public static MuranoApplication.ApplicationList toApplications​(com.fasterxml.jackson.databind.JsonNode json)
        Murano API has some methods which can return both item and List. Need to cast it to one type which can be used further for convenience work.
        Parameters:
        json - JsonNode
        Returns:
        a List of Applications
      • toApplications

        public static MuranoApplication.ApplicationList toApplications​(String jsonString)
        It is done due to the bug in restEasy connector: it can't send json as String whereas all other connectors work fine.
        Parameters:
        jsonString - json-encoded String
        Returns:
        ApplicationList representing the Applications given in @jsonString