Class SessionsTask

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class SessionsTask
    extends AbstractCatalinaCommandTask
    Ant task that implements the /sessions command supported by the Tomcat manager application.
    Author:
    Vivek Chopra
    • Field Detail

      • idle

        protected java.lang.String idle
    • Constructor Detail

      • SessionsTask

        public SessionsTask()
    • Method Detail

      • getIdle

        public java.lang.String getIdle()
      • setIdle

        public void setIdle​(java.lang.String idle)
      • createQueryString

        public java.lang.StringBuilder createQueryString​(java.lang.String command)
        Description copied from class: AbstractCatalinaCommandTask
        Create query string for the specified command.
        Overrides:
        createQueryString in class AbstractCatalinaCommandTask
        Parameters:
        command - Command to be executed
        Returns:
        The generated query string
      • execute

        public void execute()
                     throws org.apache.tools.ant.BuildException
        Execute the requested operation.
        Overrides:
        execute in class AbstractCatalinaTask
        Throws:
        org.apache.tools.ant.BuildException - if an error occurs