Home » apache-tomcat-6.0.26-src » org.apache » catalina » [javadoc | source]
org.apache.catalina
public interface: Engine [javadoc | source]

All Implemented Interfaces:
    Container

All Known Implementing Classes:
    StandardEngine

An Engine is a Container that represents the entire Catalina servlet engine. It is useful in the following types of scenarios: In general, you would not use an Engine when deploying Catalina connected to a web server (such as Apache), because the Connector will have utilized the web server's facilities to determine which Context (or perhaps even which Wrapper) should be utilized to process this request.

The child containers attached to an Engine are generally implementations of Host (representing a virtual host) or Context (representing individual an individual servlet context), depending upon the Engine implementation.

If used, an Engine is always the top level Container in a Catalina hierarchy. Therefore, the implementation's setParent() method should throw IllegalArgumentException.

Method from org.apache.catalina.Engine Summary:
getDefaultHost,   getJvmRoute,   getService,   setDefaultHost,   setJvmRoute,   setService
Method from org.apache.catalina.Engine Detail:
 public String getDefaultHost()
    Return the default hostname for this Engine.
 public String getJvmRoute()
    Retrieve the JvmRouteId for this engine.
 public Service getService()
    Return the Service with which we are associated (if any).
 public  void setDefaultHost(String defaultHost)
    Set the default hostname for this Engine.
 public  void setJvmRoute(String jvmRouteId)
    Set the JvmRouteId for this engine.
 public  void setService(Service service)
    Set the Service with which we are associated (if any).