Class WildFlyRemoteDeploymentJsonMarshaller
- java.lang.Object
-
- org.codehaus.cargo.container.wildfly.internal.WildFlyRemoteDeploymentJsonMarshaller
-
public class WildFlyRemoteDeploymentJsonMarshaller extends Object
JSON marshaller for WildFly remote deployer.
-
-
Constructor Summary
Constructors Constructor Description WildFlyRemoteDeploymentJsonMarshaller(RuntimeConfiguration configuration)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDeployableFilename(Deployable deployable)
String
marshallDeployRequest(Deployable deployable, String bytesValue)
String
marshallRemoveRequest(Deployable deployable)
String
marshallUndeployRequest(Deployable deployable)
String
unmarshallAddContentResponse(HttpResult response)
-
-
-
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.
-
-