com.xebialabs.deployit.plugin.tomcat
Class TomcatManagerAppUtils
java.lang.Object
com.xebialabs.deployit.plugin.tomcat.TomcatManagerAppUtils
public class TomcatManagerAppUtils
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
server
private TomcatServer server
baseUrl
private java.lang.String baseUrl
TomcatManagerAppUtils
public TomcatManagerAppUtils(TomcatServer server)
deploy
public java.lang.String deploy(java.lang.String contextRoot,
java.lang.String warLocation)
throws java.io.IOException
- Parameters:
war - warLocation -
- Returns:
-
- Throws:
java.io.IOException
checkApplicationIsDeployed
public boolean checkApplicationIsDeployed(java.lang.String applicationName)
- Parameters:
war - warLocation -
- Returns:
-
- Throws:
java.io.IOException
undeploy
public java.lang.String undeploy(java.lang.String contextRoot)
throws java.io.IOException
- Parameters:
war -
- Returns:
-
- Throws:
java.io.IOException
executeManagerAppCommand
private java.lang.String executeManagerAppCommand(java.lang.String url)
throws java.io.IOException,
org.apache.commons.httpclient.HttpException
- Throws:
java.io.IOException
org.apache.commons.httpclient.HttpException
invokeClientWithUrl
private org.apache.commons.httpclient.HttpMethod invokeClientWithUrl(java.lang.String url)
throws java.io.IOException,
org.apache.commons.httpclient.HttpException
- Throws:
java.io.IOException
org.apache.commons.httpclient.HttpException
getResponseFromUrl
private java.lang.String getResponseFromUrl(org.apache.commons.httpclient.HttpMethod method)
throws java.io.IOException
- Throws:
java.io.IOException
getBaseUrl
public java.lang.String getBaseUrl()
Copyright © 2010. All Rights Reserved.