All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.litongjava.tio.http.server.handler.SimpleHttpRoutes Maven / Gradle / Ivy

There is a newer version: 3.7.3.v20241201-RELEASE
Show newest version
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