Class JsonRequestConstructor


  • public class JsonRequestConstructor
    extends Object
    Helper class that constructs the JSON requests used for creating Docker Containers.
    Author:
    Andrew Pielage
    • Constructor Detail

      • JsonRequestConstructor

        public JsonRequestConstructor()
    • Method Detail

      • constructJsonRequest

        public static jakarta.json.JsonObject constructJsonRequest​(Properties containerConfig,
                                                                   Node node,
                                                                   Server server,
                                                                   String dasHost,
                                                                   String dasPort)
        Builds the Json Object from all supplied configuration to send to Docker.
        Parameters:
        node - The Payara Server node
        dasHost - The IP address of the DAS
        dasPort - The admin port of the DAS
        Returns:
        Json Object representing all supplied and default Docker container configuration.