Skip to content

Commit b9382a3

Browse files
committed
ensure global detection for empty route patterns
1 parent 148411e commit b9382a3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package org.example.server;
2+
3+
import java.util.List;
4+
5+
public record FilterRegistration(
6+
HttpFilter filter,
7+
int order,
8+
List<String> routePatterns // null/empty = global
9+
) {
10+
11+
public boolean isGlobal() {
12+
return routePatterns == null || routePatterns.isEmpty();
13+
}
14+
}

0 commit comments

Comments
 (0)