/** @return all requests since the server was started. */ public List<AccessEvent> getRequests() { return new ArrayList<AccessEvent>(log.getEvents()); }
/** * Get requests. * * @return all requests since the server was started. */ public List<AccessEvent> getRequests() { return new ArrayList<>(log.getEvents()); }
/** * @param path * the path to locate requests for. * @return all requests which match the given path. */ public List<AccessEvent> getRequests(String path) { ArrayList<AccessEvent> r = new ArrayList<AccessEvent>(); for (AccessEvent event : log.getEvents()) { if (event.getPath().equals(path)) { r.add(event); } } return r; }
/** * Get requests. * * @param path * the path to locate requests for. * @return all requests which match the given path. */ public List<AccessEvent> getRequests(String path) { ArrayList<AccessEvent> r = new ArrayList<>(); for (AccessEvent event : log.getEvents()) { if (event.getPath().equals(path)) { r.add(event); } } return r; }