com.litongjava.tio.http.server.handler.SimpleHttpRoutes Maven / Gradle / Ivy
package com.litongjava.tio.http.server.handler;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class SimpleHttpRoutes implements HttpRoutes {
Map requestMapping = new ConcurrentHashMap<>();
public void add(String path, HttpRequestRouteHandler handler) {
requestMapping.put(path, handler);
}
public HttpRequestRouteHandler find(String path) {
return requestMapping.get(path);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy