createEngine()
to create an Engine object, and then call its property setters as desired.createHost()
to create at least one virtual Host associated with the newly created Engine, and then call its property setters as desired. After you customize this Host, add it to the corresponding Engine with engine.addChild(host)
.createContext()
to create at least one Context associated with each newly created Host, and then call its property setters as desired. You SHOULD create a Context with a pathname equal to a zero-length string, which will be used to process all requests not mapped to some other Context. After you customize this Context, add it to the corresponding Host with host.addChild(context)
.addEngine()
to attach this Engine to the set of defined Engines for this object.createConnector()
to create at least one TCP/IP connector, and then call its property setters as desired.addConnector()
to attach this Connector to the set of defined Connectors for this object. The added Connector will use the most recently added Engine to process its received requests.start()
to initiate normal operations of all the attached components. To initiate a normal shutdown, call the stop()
method of this object.
@see org.apache.catalina.startup.Catalina#main For a complete exampleof how Tomcat is set up and launched as an Embedded application. @author Craig R. McClanahan @version $Id: Embedded.java 939353 2010-04-29 15:50:43Z kkolinko $
|
|
|
|