Implementation of the HttpRestServer interface using the
HttpServer defined in the com.sun.net.httpserver
package.
The HttpRestServerImpl is being initialized with some common
MediaTypeFactory instances (as implemented by the
AbstractRestServer). At the time of writing this document the
MediaTypeFactory instances being pre-configured are:

aThreadingModel - Specifies to either use a single-threaded
threading model (no ExecutorService) or a multi-threaded
threading model with a default ExecutorService as of
ControlFlowUtility.createCachedExecutorService(boolean).

open

A hook to be used when using custom HttpServer (
HttpsServer) by custom open(...) methods of sub-classes of this
HttpRestServerImpl. E.g HttpRestServerImpl uses this hook
to pre-configure a HttpsServer for HTTPS.
The passed HttpServer ( HttpsServer) must already be
bound to a port and enabled with the number of concurrent connections as
of HttpServer.bind(InetSocketAddress, int).

Parameters:

aHttpServer - The HttpServer to be used. E.g. an
HttpsServer might be used to enable HTTPS.

Throws:

java.io.IOException - in case opening with the provided
HttpRestServer fails.