@Test public void testGetRequestedPage() throws Exception { doTestGetRequestedPage("foo/bar.xhtml", "/nuxeo/foo/bar.xhtml", "/foo/bar.xhtml", null, null); doTestGetRequestedPage("foo/bar.xhtml", "/nuxeo/login.jsp/../foo/bar.xhtml;jsessionid=123?gee=moo", "/foo/bar.xhtml", null, "gee=moo"); doTestGetRequestedPage("foo/bar.xhtml", "/nuxeo/foo/bar.xhtml", "/foo", "/bar.xhtml", null); doTestGetRequestedPage("foo/bar.xhtml", "/nuxeo/login.jsp/../foo/bar.xhtml;jsessionid=123?gee=moo", "/foo", "/bar.xhtml", "gee=moo"); doTestGetRequestedPage("ui/index.jsp", "/nuxeo/ui/index.jsp", "/ui/index.jsp", null, null); doTestGetRequestedPage("ui/", "/nuxeo/ui/", "/ui/index.jsp", null, null); doTestGetOriginalPage("repo/default/ui", "/ui", "/repo/default/ui"); }
public static String getRequestedPage(ServletRequest request) { if (request instanceof HttpServletRequest) { HttpServletRequest httpRequest = (HttpServletRequest) request; return getRequestedPage(httpRequest); } else { return null; } }
NuxeoAuthenticationFilter implements Filter { public static String getRequestedPage(ServletRequest request) { if (request instanceof HttpServletRequest) { HttpServletRequest httpRequest = (HttpServletRequest) request; return getRequestedPage(httpRequest); } else { return null; } } }
NuxeoAuthenticationFilter implements Filter { public static String getRequestedPage(ServletRequest request) { if (request instanceof HttpServletRequest) { HttpServletRequest httpRequest = (HttpServletRequest) request; return getRequestedPage(httpRequest); } else { return null; } }  }
NuxeoAuthenticationFilter implements Filter { public static String getRequestedPage(ServletRequest request) { if (request instanceof HttpServletRequest) { HttpServletRequest httpRequest = (HttpServletRequest) request; return getRequestedPage(httpRequest); } else { return null; } }  @Override void destroy(); @Override void doFilter(ServletRequest request, ServletResponse response, FilterChain chain); void doFilterInternal(ServletRequest request, ServletResponse response, FilterChain chain); NuxeoAuthenticationPlugin getAuthenticator(CachableUserIdentificationInfo ci); @Override void init(FilterConfig config); boolean saveRequestedURLBeforeRedirect(HttpServletRequest httpRequest, HttpServletResponse httpResponse); static String getRequestedUrl(HttpServletRequest request); static String getRequestedPage(ServletRequest request); static NuxeoLoginContext loginAs(String username); }
NuxeoAuthenticationFilter implements Filter { public static String getRequestedPage(ServletRequest request) { if (request instanceof HttpServletRequest) { HttpServletRequest httpRequest = (HttpServletRequest) request; return getRequestedPage(httpRequest); } else { return null; } }  @Override void destroy(); @Override void doFilter(ServletRequest request, ServletResponse response, FilterChain chain); void doFilterInternal(ServletRequest request, ServletResponse response, FilterChain chain); NuxeoAuthenticationPlugin getAuthenticator(CachableUserIdentificationInfo ci); @Override void init(FilterConfig config); boolean saveRequestedURLBeforeRedirect(HttpServletRequest httpRequest, HttpServletResponse httpResponse); static String getRequestedUrl(HttpServletRequest request); static String getRequestedPage(ServletRequest request); static NuxeoLoginContext loginAs(String username); @Deprecated
    static final String DEFAULT_START_PAGE; static final String LOGIN_DOMAIN; }