1package dev.rafex.ether.http.jetty12.routing;
29import java.util.ArrayList;
32import org.eclipse.jetty.server.Handler;
36 private final List<JettyRouteRegistration> routes =
new ArrayList<>();
38 public void add(
final String pathSpec,
final Handler
handler) {
43 for (
final var route : routes) {
44 if (route.pathSpec().equals(pathSpec)) {
51 public List<JettyRouteRegistration>
routes() {
52 return List.copyOf(routes);
boolean containsPathSpec(final String pathSpec)
void add(final String pathSpec, final Handler handler)
List< JettyRouteRegistration > routes()
record JettyRouteRegistration(String pathSpec, Handler handler)