Class PortUnificationServer
java.lang.Object
org.jboss.netty.example.portunification.PortUnificationServer
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 -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PORT
static final int PORT
-
-
Constructor Details
-
PortUnificationServer
public PortUnificationServer()
-
-
Method Details
-
main
- Throws:
Exception
-