Class TomcatEmbedded.Engine

  • Enclosing class:
    TomcatEmbedded

    public final class TomcatEmbedded.Engine
    extends Object
    Copy of org.apache.catalina.Engine
    • Constructor Detail

      • Engine

        public Engine​(Object core,
                      Object service)
        Wraps an engine object.
        Parameters:
        core - Must be non-null.
        service - Tomcat service.
    • Method Detail

      • setName

        public void setName​(String name)
        Assigns a name to engine.
        Parameters:
        name - non-null
      • setBaseDir

        public void setBaseDir​(String baseDir)
        Sets the directory that Tomcat will use as a workspace.
        Parameters:
        baseDir - The directory name.
      • setDefaultHost

        public void setDefaultHost​(String name)
        Don't know what it really does.
        Parameters:
        name - host name.
      • setParentClassLoader

        public void setParentClassLoader​(ClassLoader cl)
        Sets the ClassLoader that this engine will delegate to.
        Parameters:
        cl - This needs to be set to ClassLoader that can see classes that implement Tomcat, or else you'll get errors like "Servlet jsp is not available" (because the system failed to load JspServlet class.)