com.xebialabs.deployit.plugin.tomcat
Class TomcatManagerAppUtils

java.lang.Object
  extended by com.xebialabs.deployit.plugin.tomcat.TomcatManagerAppUtils

public class TomcatManagerAppUtils
extends java.lang.Object


Field Summary
private  java.lang.String baseUrl
           
private  TomcatServer server
           
 
Constructor Summary
TomcatManagerAppUtils(TomcatServer server)
           
 
Method Summary
 boolean checkApplicationIsDeployed(java.lang.String applicationName)
           
 java.lang.String deploy(java.lang.String contextRoot, java.lang.String warLocation)
           
private  java.lang.String executeManagerAppCommand(java.lang.String url)
           
 java.lang.String getBaseUrl()
           
private  java.lang.String getResponseFromUrl(org.apache.commons.httpclient.HttpMethod method)
           
private  org.apache.commons.httpclient.HttpMethod invokeClientWithUrl(java.lang.String url)
           
 java.lang.String undeploy(java.lang.String contextRoot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

private TomcatServer server

baseUrl

private java.lang.String baseUrl
Constructor Detail

TomcatManagerAppUtils

public TomcatManagerAppUtils(TomcatServer server)
Method Detail

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.