FileDocCategorySizeDatePackage
StopTask.javaAPI DocGlassfish v2 API3227Fri May 04 22:31:52 BST 2007org.apache.catalina.ant

StopTask

public class StopTask extends AbstractCatalinaTask
Ant task that implements the /stop command, supported by the Tomcat manager application.
author
Craig R. McClanahan
version
$Revision: 1.3 $ $Date: 2007/05/05 05:31:52 $
since
4.1

Fields Summary
protected String
path
The context path of the web application we are managing.
Constructors Summary
Methods Summary
public voidexecute()
Execute the requested operation.

exception
BuildException if an error occurs


        super.execute();
        if (path == null) {
            throw new BuildException
                ("Must specify 'path' attribute");
        }
        execute("/stop?path=" + URLEncoder.encode(this.path));

    
public java.lang.StringgetPath()


       
        return (this.path);
    
public voidsetPath(java.lang.String path)

        this.path = path;