public class WLPRestClient extends Object
| Constructor and Description |
|---|
WLPRestClient(WLPRemoteContainerConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
deploy(File archive)
Uses the rest api to upload an application binary to the dropins folder
of WLP to allow the server automatically deploy it.
|
String |
getServerName()
Queries the rest api for the servers name.
|
boolean |
isApplicationStarted(String applicationName)
Checks the application State using the WLP rest api.
|
boolean |
isServerUp()
Calls the rest api to determine if the application server is up and
running.
|
void |
undeploy(String applicationName)
Deletes the specified application from the servers dropins directory.
|
public WLPRestClient(WLPRemoteContainerConfiguration configuration)
public void deploy(File archive) throws org.apache.http.client.ClientProtocolException, IOException
archive - org.apache.http.client.ClientProtocolExceptionIOExceptionpublic void undeploy(String applicationName) throws org.apache.http.client.ClientProtocolException, IOException
String - - applicationNameorg.apache.http.client.ClientProtocolExceptionIOExceptionpublic boolean isServerUp()
throws org.apache.http.client.ClientProtocolException,
IOException
org.apache.http.client.ClientProtocolExceptionIOExceptionpublic String getServerName() throws org.apache.http.client.ClientProtocolException, IOException
IOExceptionorg.apache.http.client.ClientProtocolExceptionpublic boolean isApplicationStarted(String applicationName)
applicationName - org.jboss.arquillian.container.spi.client.container.DeploymentExceptionCopyright © 2019 the original author or authors.