Class Server

All Implemented Interfaces:
Handler, HandlerContainer, Attributes, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle

@ManagedObject("Jetty HTTP Servlet server") public class Server extends HandlerWrapper implements Attributes
Jetty HTTP Servlet Server. This class is the main class for the Jetty HTTP Servlet server. It aggregates Connectors (HTTP request receivers) and request Handlers. The server is itself a handler and a ThreadPool. Connectors use the ThreadPool methods to run jobs that will eventually call the handle method.
  • Constructor Details

    • Server

      public Server()
    • Server

      public Server(@Name("port") int port)
      Convenience constructor Creates server and a ServerConnector at the passed port.
      Parameters:
      port - The port of a network HTTP connector (or 0 for a randomly allocated port).
      See Also:
    • Server

      public Server(@Name("address") InetSocketAddress addr)
      Convenience constructor

      Creates server and a ServerConnector at the passed address.

      Parameters:
      addr - the inet socket address to create the connector from
    • Server

      public Server(@Name("threadpool") ThreadPool pool)
  • Method Details