Class PortUnificationServer


  • public final class PortUnificationServer
    extends java.lang.Object
    Serves two protocols (HTTP and Factorial) using only one port, enabling either SSL or GZIP dynamically on demand.

    Because SSL and GZIP are enabled on demand, 5 combinations per protocol are possible: none, SSL only, GZIP only, SSL + GZIP, and GZIP + SSL.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static int PORT  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PORT

        static final int PORT
    • Constructor Detail

      • PortUnificationServer

        public PortUnificationServer()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception