/** * Returns <code>true</code> if the incoming request is a login request, <code>false</code> otherwise. * <p/> * The default implementation merely returns <code>true</code> if the incoming request matches the configured * {@link #getLoginUrl() loginUrl} by calling * <code>{@link #pathsMatch(String, String) pathsMatch(loginUrl, request)}</code>. * * @param request the incoming <code>ServletRequest</code> * @param response the outgoing <code>ServletResponse</code> * @return <code>true</code> if the incoming request is a login request, <code>false</code> otherwise. */ protected boolean isLoginRequest(ServletRequest request, ServletResponse response) { return pathsMatch(getLoginUrl(), request); }