Class PortUnificationServer

java.lang.Object
org.jboss.netty.example.portunification.PortUnificationServer

public final class PortUnificationServer extends 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 Details

    • PORT

      static final int PORT
  • Constructor Details

    • PortUnificationServer

      public PortUnificationServer()
  • Method Details