Server Class

A lightweight, multi-threaded web server based on Jetty 9.4

Constructors

public Server( int port, int numThreads, javaxt.http.servlet.HttpServlet servlet )
public Server( java.net.InetSocketAddress address, int numThreads, javaxt.http.servlet.HttpServlet servlet )
public Server( java.net.InetSocketAddress[] addresses, int numThreads, javaxt.http.servlet.HttpServlet servlet )
public Server( java.util.List addresses, int numThreads, javaxt.http.servlet.HttpServlet servlet )

Methods

main( String[] args ) returns void
Entry point for the application. Accepts command line arguments to specify which port to use and the maximum number of concurrent threads.
argsthe command line arguments
run( ) returns void
Used to start the web server. Creates a thread pool and instantiates a socket listener for each specified port/address.
setMinTLSVersion( Double tlsVersion ) returns void
By default, the server is configured to support TLS 1.0, 1.1, and 1.2. You can disable older ciphers by specifying a minimum TLS version (e.g. 1.2),