/** * Handle a request. * * @param target The target of the request - either a URI or a name. * @param baseRequest The original unwrapped request object. * @param request The request either as the {@link Request} * object or a wrapper of that request. * @param response The response as the {@link org.eclipse.jetty.server.Response} * object or a wrapper of that request. * @throws IOException in case of IO error. * @throws ServletException in case of IO error. */ @Override public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { if (baseRequest.isHandled()) { return; } WebSocketRoute<?, ?> route = findRoute(request.getPathInfo()); if (route != null) { super.handle(target, baseRequest, request, response); } }