Short version: Is it possible to run from a HttpServer (com.sun.net.httpserver.HttpServer) a Servlet on a different port ?
Long version: I have a project in which I fire a HttpServer to handle client request and provide them REST endpoint and I would like to use a Servlet on a different port.
So basically my Servlet would act like a middleware between the user and the actual HttpServer, to communicate between both entity.
Is it possible ? If so does there's some documentation about that ?