@Test public void shouldPerformRefreshPostRequest() throws Exception { performFilterForPostRequest("/connect/google", "google"); performFilterForPostRequest("/connect/google/", "google"); }
protected boolean shouldPerformRefreshPostRequest(HttpServletRequest request) { String servletPath = request.getServletPath(); return request.getMethod().equalsIgnoreCase(GET) && servletPath != null && servletPath.startsWith(CONNECT_PATH) && request.getParameter(RECONNECT_PARAMETER) != null; }
ReconnectFilter extends GenericFilterBean { protected boolean shouldPerformRefreshPostRequest(HttpServletRequest request) { String servletPath = request.getServletPath(); return request.getMethod().equalsIgnoreCase(GET) && servletPath != null && servletPath.startsWith(CONNECT_PATH) && request.getParameter(RECONNECT_PARAMETER) != null; } }
ReconnectFilter extends GenericFilterBean { protected boolean shouldPerformRefreshPostRequest(HttpServletRequest request) { String servletPath = request.getServletPath(); return request.getMethod().equalsIgnoreCase(GET) && servletPath != null && servletPath.startsWith(CONNECT_PATH) && request.getParameter(RECONNECT_PARAMETER) != null; } ReconnectFilter(UsersConnectionRepository usersConnectionRepository, UserIdSource userIdSource); }
ReconnectFilter extends GenericFilterBean { protected boolean shouldPerformRefreshPostRequest(HttpServletRequest request) { String servletPath = request.getServletPath(); return request.getMethod().equalsIgnoreCase(GET) && servletPath != null && servletPath.startsWith(CONNECT_PATH) && request.getParameter(RECONNECT_PARAMETER) != null; } ReconnectFilter(UsersConnectionRepository usersConnectionRepository, UserIdSource userIdSource); void doFilter(ServletRequest request, ServletResponse response, FilterChain chain); }
ReconnectFilter extends GenericFilterBean { protected boolean shouldPerformRefreshPostRequest(HttpServletRequest request) { String servletPath = request.getServletPath(); return request.getMethod().equalsIgnoreCase(GET) && servletPath != null && servletPath.startsWith(CONNECT_PATH) && request.getParameter(RECONNECT_PARAMETER) != null; } ReconnectFilter(UsersConnectionRepository usersConnectionRepository, UserIdSource userIdSource); void doFilter(ServletRequest request, ServletResponse response, FilterChain chain);  }