On Tue, 13 Apr 2021 15:39:17 GMT, Julia Boes <jb...@openjdk.org> wrote:
> Add two static factory methods to com.sun.net.httpserver.Filter that > facilitate the creation of pre- and post-processing Filters: > > `public static Filter beforeResponse(String description, > Consumer<HttpExchange> filterImpl) {}` > `public static Filter afterResponse(String description, > Consumer<HttpExchange> filterImpl) {}` This pull request has now been integrated. Changeset: 115a413e Author: Julia Boes <jb...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/115a413ee45b08d25fc827b2f465fbb4ef4157ad Stats: 409 lines in 3 files changed: 406 ins; 0 del; 3 mod 8265123: Add static factory methods to com.sun.net.httpserver.Filter Co-authored-by: Michael McMahon <micha...@openjdk.org> Reviewed-by: chegar, michaelm, dfuchs ------------- PR: https://git.openjdk.java.net/jdk/pull/3468