Class WildFlyRemoteDeploymentJsonMarshaller


  • public class WildFlyRemoteDeploymentJsonMarshaller
    extends Object
    JSON marshaller for WildFly remote deployer.
    • Constructor Detail

      • WildFlyRemoteDeploymentJsonMarshaller

        public WildFlyRemoteDeploymentJsonMarshaller​(RuntimeConfiguration configuration)
        Constructor.
        Parameters:
        configuration - Runtime configuration.
    • Method Detail

      • unmarshallAddContentResponse

        public String unmarshallAddContentResponse​(HttpResult response)
        Parameters:
        response - HTTP response body.
        Returns:
        Value of BYTES_VALUE field in response.
      • marshallDeployRequest

        public String marshallDeployRequest​(Deployable deployable,
                                            String bytesValue)
        Parameters:
        deployable - Deployable.
        bytesValue - Bytes value.
        Returns:
        JSON request body for deploying deployable.
      • marshallUndeployRequest

        public String marshallUndeployRequest​(Deployable deployable)
        Parameters:
        deployable - Deployable.
        Returns:
        JSON request body for undeploying deployable.
      • marshallRemoveRequest

        public String marshallRemoveRequest​(Deployable deployable)
        Parameters:
        deployable - Deployable.
        Returns:
        JSON request body for removing deployable.
      • getDeployableFilename

        public String getDeployableFilename​(Deployable deployable)
        Parameters:
        deployable - Deployable.
        Returns:
        Deployable file name, which takes into account the WAR context, including the case where it would be the root WAR. Moreover, when the JBoss or WildFly WAR file has the context root set in the jboss-web.xml file, it will return the original WAR file name.