@Test public void testMonitoredAddress() throws Exception { request.removeParameter("watchedAddr"); request.setRemoteAddr("remoteAddr"); service = new ResponseLoggerServiceImpl(user, pirasoRequest, pirasoResponse); assertEquals("remoteAddr", service.getWatchedAddr()); request.addParameter("watchedAddr", EXPECTED_MONITORED_ADDRESS); service = new ResponseLoggerServiceImpl(user, pirasoRequest, pirasoResponse); assertEquals(EXPECTED_MONITORED_ADDRESS, service.getWatchedAddr()); }
public String getWatchedAddr() { return watchedAddr; }
ResponseLoggerServiceImpl implements ResponseLoggerService { public String getWatchedAddr() { return watchedAddr; } }
ResponseLoggerServiceImpl implements ResponseLoggerService { public String getWatchedAddr() { return watchedAddr; } ResponseLoggerServiceImpl(User user, PirasoRequest request, PirasoResponse response); }
ResponseLoggerServiceImpl implements ResponseLoggerService { public String getWatchedAddr() { return watchedAddr; } ResponseLoggerServiceImpl(User user, PirasoRequest request, PirasoResponse response); void setMaxIdleTimeout(long maxIdleTimeout); void setMaxQueueForceKillSize(int maxQueueForceKillSize); User getUser(); String getWatchedAddr(); boolean isWatched(String remoteAddr); String getId(); Long getGlobalId(); boolean isAlive(); boolean isForcedStopped(); void start(); void stop(); void stopAndWait(long timeout); Preferences getPreferences(); void log(Entry entry); void addStopListener(StopLoggerListener listener); void removeStopListener(StopLoggerListener listener); void fireStopEvent(StopLoggerEvent event); }
ResponseLoggerServiceImpl implements ResponseLoggerService { public String getWatchedAddr() { return watchedAddr; } ResponseLoggerServiceImpl(User user, PirasoRequest request, PirasoResponse response); void setMaxIdleTimeout(long maxIdleTimeout); void setMaxQueueForceKillSize(int maxQueueForceKillSize); User getUser(); String getWatchedAddr(); boolean isWatched(String remoteAddr); String getId(); Long getGlobalId(); boolean isAlive(); boolean isForcedStopped(); void start(); void stop(); void stopAndWait(long timeout); Preferences getPreferences(); void log(Entry entry); void addStopListener(StopLoggerListener listener); void removeStopListener(StopLoggerListener listener); void fireStopEvent(StopLoggerEvent event);  }