java.lang.Object
org.glassfish.grizzly.samples.sni.httpserver.Server

public class Server extends Object
SNI-aware standalone Java HTTP server. The server could be reached via SNI hosts: *.foo.com and *.bar.com. One of the ways to test the server is redirecting foo.com and bar.com host names to IP address 127.0.0.1 (localhost) in /etc/hosts file:
      127.0.0.1       foo.com, bar.com
 
Then type https://foo.com:8080 or https://bar.com:8080 in the web browser and make sure the server uses different certificates for these hosts. If you try to reach the server using different host name (like localhost) - the connection will be immediately terminated.
  • Constructor Details

    • Server

      public Server()
  • Method Details

    • main

      public static void main(String[] args)