Created by ruedi on 25/05/15.
singleton to manage http server instances. Currently tied to Undertow however implicitely shields kontraktor-http
from getting too dependent on Undertow (which is an excellent piece of software, so no plans to migrate anytime soon)
creates or gets an undertow web server instance mapped by port.
hostname must be given in case a new server instance has to be instantiated
pair = new Pair<>(pathHandler,server);
return new BldFourK(hostName,port,null);
publishes given file root
urlPath - prefixPath (e.g. /myapp/resource)
root - directory to be published
utility, just redirects to approriate connector
Publishes an actor/service via websockets protocol with given encoding.
if this should be connectable from non-java code recommended coding is 'new Coding(SerializerType.JsonNoRefPretty)' (dev),
'new Coding(SerializerType.JsonNoRef)' (production)
SerializerType.FSTSer is the most effective for java to java communication.
utility, just redirects to approriate connector.