This repository has been archived on 2024-09-28. You can view files and clone it, but cannot push or open issues or pull requests.
test2gis/src/main/scala/model/handler/Handler.scala

19 lines
407 B
Scala

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
}