Class AbstractCatalinaStandaloneLocalConfiguration

    • Method Detail

      • setProperty

        public void setProperty​(String name,
                                String value)
        A property is a configuration value for the container (eg the web port, the number of executing threads, etc).
        Specified by:
        setProperty in interface Configuration
        Overrides:
        setProperty in class AbstractConfiguration
        Parameters:
        name - the property name
        value - the property value
      • escapePath

        protected String escapePath​(String path)
        Escapes a Windows path: backslashes become slashes, drive paths get prefixed with a slash.
        Parameters:
        path - Path to escape.
        Returns:
        Escaped path.
      • setupManager

        protected abstract void setupManager​(LocalContainer container)
        Setup the manager webapp.
        Parameters:
        container - the container to configure
      • setupWebApps

        protected void setupWebApps​(LocalContainer container)
        Setup the web apps directory and deploy applications.
        Parameters:
        container - the container to configure
      • getTomcatLoggingLevel

        protected String getTomcatLoggingLevel​(String cargoLoggingLevel)
        Translate Cargo logging levels into Tomcat logging levels.
        Parameters:
        cargoLoggingLevel - Cargo logging level
        Returns:
        the corresponding Tomcat logging level
      • createTomcatWebappsToken

        protected String createTomcatWebappsToken()
        Create the Tomcat <webapp> token.
        Returns:
        The Tomcat <webapp> token.
      • createContextToken

        protected String createContextToken​(WAR deployable)
        Parameters:
        deployable - the WAR to deploy
        Returns:
        the "context" XML element to instert in the Tomcat server.xml configuration file
      • getSecurityToken

        protected String getSecurityToken()
        Returns:
        an Ant filter token containing all the user-defined users
      • setupConfFiles

        protected abstract void setupConfFiles​(String confDir)
        setup the files in the configuration's conf directory.
        Parameters:
        confDir - - the conf directory.
      • connectorXpath

        protected String connectorXpath()
        XPath expression for identifying the "Connector" element in the server.xml file.

        Handles the fact that this connector protocol value might have changed.

        Returns:
        the xpath expression for a http connector