FileDocCategorySizeDatePackage
ReloadTask.javaAPI DocApache Tomcat 6.0.142362Fri Jul 20 04:20:34 BST 2007org.apache.catalina.ant

ReloadTask

public class ReloadTask extends AbstractCatalinaTask
Ant task that implements the /reload command, supported by the Tomcat manager application.
author
Craig R. McClanahan
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
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");
        }
        try {
            execute("/reload?path=" + URLEncoder.encode(this.path, getCharset()));
        } catch (UnsupportedEncodingException e) {
            throw new BuildException
                ("Invalid 'charset' attribute: " + getCharset());
        }


    
public java.lang.StringgetPath()


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

        this.path = path;