A Server element represents the entire Catalina
servlet container. Its attributes represent the characteristics of
the servlet container as a whole. A Server may contain
one or more Services , and the top level set of naming
resources.
Normally, an implementation of this interface will also implement
Lifecycle , such that when the start() and
stop() methods are called, all of the defined
Services are also started or stopped.
In between, the implementation must open a server socket on the port number
specified by the port property. When a connection is accepted,
the first line is read and compared with the specified shutdown command.
If the command matches, shutdown of the server is initiated.
NOTE - The concrete implementation of this class should
register the (singleton) instance with the ServerFactory
class in its constructor(s).
author: Craig R. McClanahan version: $Revision: 1.10 $ $Date: 2002/03/06 06:49:10 $ |