@Override public Response routeRequest(Request request) throws Exception { RtspController controller = controllerClass.newInstance(); controller.initialize(request, getParamMap()); RtspMethod method = RtspMethod.valueOf(request.getMethod().getName()); return controller.execute(method); }
@Override public String path() { return request.getPath(); }
@Override public boolean isPath(String path) { return request.getPath().equals(path); }
@Override public boolean isPath(Path path) { return (path != null) && request.getPath().equals(path.path()); }