Skip to content

Commit 7a1fc1e

Browse files
committed
Routables can also be filtered
1 parent 963d4fb commit 7a1fc1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

java/client/src/org/openqa/selenium/remote/http/Routable.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ public interface Routable extends HttpHandler {
2121

2222
boolean matches(HttpRequest req);
2323

24+
default Routable with(Filter filter) {
25+
return filter.andFinally(this);
26+
}
2427
}

0 commit comments

Comments
 (0)