public class TomcatManager<C extends TomcatConfiguration> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
MANAGER_CHARSET |
| Constructor and Description |
|---|
TomcatManager(C configuration,
TomcatManagerCommandSpec tomcatManagerCommandSpec)
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.
|
boolean |
isRunning() |
void |
list()
Deprecated.
|
String |
normalizeArchiveName(String name) |
protected void |
processResponse(String command,
HttpURLConnection hconn) |
void |
serverInfo() |
void |
undeploy(String name) |
protected static final String MANAGER_CHARSET
public TomcatManager(C configuration, TomcatManagerCommandSpec tomcatManagerCommandSpec)
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 serverInfo()
throws IOException
IOException@Deprecated public void list() throws IOException
serverInfo() instead, to find out if container is running.IOExceptionpublic boolean isRunning()
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 © 2017 JBoss by Red Hat. All rights reserved.