public class CommonTomcatManager<C extends CommonTomcatConfiguration> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
MANAGER_CHARSET |
| Constructor and Description |
|---|
CommonTomcatManager(C configuration)
Creates a Tomcat manager abstraction
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
constructHttpBasicAuthHeader() |
void |
deploy(String name,
URL content) |
protected void |
execute(String command,
InputStream istream,
String contentType,
int contentLength)
Execute the specified command, based on the configured properties.
|
protected String |
getDeployCommand() |
protected String |
getListCommand() |
protected String |
getUndeployCommand() |
boolean |
isRunning() |
void |
list() |
String |
normalizeArchiveName(String name) |
protected void |
processResponse(String command,
HttpURLConnection hconn) |
void |
undeploy(String name) |
protected static final String MANAGER_CHARSET
public CommonTomcatManager(C configuration)
configuration - the configurationpublic void deploy(String name, URL content) throws IOException, org.jboss.arquillian.container.spi.client.container.DeploymentException
IOExceptionorg.jboss.arquillian.container.spi.client.container.DeploymentExceptionpublic void undeploy(String name) throws IOException, org.jboss.arquillian.container.spi.client.container.DeploymentException
IOExceptionorg.jboss.arquillian.container.spi.client.container.DeploymentExceptionpublic void list()
throws IOException
IOExceptionpublic boolean isRunning()
protected String getDeployCommand()
protected String getUndeployCommand()
protected String getListCommand()
protected void execute(String command, InputStream istream, String contentType, int contentLength) throws IOException
command - Command to be executedistream - InputStream to include in an HTTP PUT, if anycontentType - Content type to specify for the input, if anycontentLength - Content length to specify for the input, if anyIOExceptionMalformedURLExceptionorg.jboss.arquillian.container.spi.client.container.DeploymentExceptionprotected void processResponse(String command, HttpURLConnection hconn) throws IOException
IOExceptionprotected String constructHttpBasicAuthHeader()
Copyright © 2014 JBoss by Red Hat. All rights reserved.