package com.voronind.doublegis.test package model.handler import com.sun.net.httpserver.HttpExchange /** * Basic trait for a Http handler that handles http connections to a specific context. */ trait Handler { /** * Process incoming connection. * @param exchange Object used to talk with http server. */ def handle(exchange: HttpExchange): Unit } trait HandlerCompanion { val CONTEXT: String }