Jetty: How to nest HandlerWrapper, HandlerList, and ContextHandlerCollection, and ContextHandler
问题 I'm trying to build an api server on Jetty. I want to have multiple apis on routes that look like /apis/api1/endpoint, /apis/api2/endpoint, /apis/api3/endpoint, etc Essentially I have a HandlerWrapper, that contains a HandlerList of ContextHandlerCollections that in essence just does: public void handle(...) { if (uri.startsWith("/apis/")) { log.info("This is an api request"); this.getHandlerList.handle(...) } else { super.handle() } } private HandlerList getHandlerList() { HandlerList