Source:
public boolean evaluateAuthRequest(HttpMessage msg, AuthenticationState authState) { List<String> contentToTest = new ArrayList<>(); switch (authCheckingStrategy) { case EACH_REQ: contentToTest.add(msg.getRequestHeader().toString()); contentToTest.add(msg.getRequestBody().toString()); break; case EACH_REQ_RESP: contentToTest.add(msg.getRequestHeader().toString()); contentToTest.add(msg.getRequestBody().toString()); contentToTest.add(msg.getResponseHeader().toString()); contentToTest.add(msg.getResponseBody().toString()); break; case EACH_RESP: contentToTest.add(msg.getResponseHeader().toString()); contentToTest.add(msg.getResponseBody().toString()); break; case POLL_URL: contentToTest.add(msg.getResponseHeader().toString()); contentToTest.add(msg.getResponseBody().toString()); } if (patternMatchesAny(loggedInIndicatorPattern, contentToTest)) { try { Stats.incCounter(SessionStructure.getHostName(msg), AUTH_STATE_LOGGED_IN_STATS); } catch (URIException e) { } if (authCheckingStrategy.equals(AuthCheckingStrategy.POLL_URL)) { authState.setLastPollResult(true); } return true; } if (loggedOutIndicatorPattern != null && !patternMatchesAny(loggedOutIndicatorPattern, contentToTest)) { try { Stats.incCounter(SessionStructure.getHostName(msg), AUTH_STATE_UNKNOWN_STATS); } catch (URIException e) { } if (this.authCheckingStrategy.equals(AuthCheckingStrategy.POLL_URL)) { authState.setLastPollResult(true); } return true; } try { Stats.incCounter(SessionStructure.getHostName(msg), AUTH_STATE_LOGGED_OUT_STATS); } catch (URIException e) { } if (this.authCheckingStrategy.equals(AuthCheckingStrategy.POLL_URL)) { authState.setLastPollResult(false); } return false; }

Target:
public boolean evaluateAuthRequest(HttpMessage msg, AuthenticationState authState) { List<String> contentToTest = new ArrayList<>(); switch (authCheckingStrategy) { case EACH_REQ: contentToTest.add(msg.getRequestHeader().toString()); contentToTest.add(msg.getRequestBody().toString()); break; case EACH_REQ_RESP: contentToTest.add(msg.getRequestHeader().toString()); contentToTest.add(msg.getRequestBody().toString()); contentToTest.add(msg.getResponseHeader().toString()); contentToTest.add(msg.getResponseBody().toString()); break; case EACH_RESP: case POLL_URL: contentToTest.add(msg.getResponseHeader().toString()); contentToTest.add(msg.getResponseBody().toString()); } if (patternMatchesAny(loggedInIndicatorPattern, contentToTest)) { try { Stats.incCounter(SessionStructure.getHostName(msg), AUTH_STATE_LOGGED_IN_STATS); } catch (URIException e) { } if (authCheckingStrategy.equals(AuthCheckingStrategy.POLL_URL)) { authState.setLastPollResult(true); } return true; } if (loggedOutIndicatorPattern != null && !patternMatchesAny(loggedOutIndicatorPattern, contentToTest)) { try { Stats.incCounter(SessionStructure.getHostName(msg), AUTH_STATE_UNKNOWN_STATS); } catch (URIException e) { } if (this.authCheckingStrategy.equals(AuthCheckingStrategy.POLL_URL)) { authState.setLastPollResult(true); } return true; } try { Stats.incCounter(SessionStructure.getHostName(msg), AUTH_STATE_LOGGED_OUT_STATS); } catch (URIException e) { } if (this.authCheckingStrategy.equals(AuthCheckingStrategy.POLL_URL)) { authState.setLastPollResult(false); } return false; }