public static HttpContext createHttpContext(HttpServer server, String contextPath, String path) { return new HttpContextDelegate(server.createContext(contextPath + path), path); } }
@Override public HttpContext getHttpContext() { if (contextDelegate == null) { contextDelegate = new HttpContextDelegate(delegate.getHttpContext(), PathUtils.getPath(delegate.getRequestURI())); } return contextDelegate; }