Class LogoutRedirector
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.controller.authenticate.LogoutRedirector
-
public class LogoutRedirector extends Object
When a user logs out, where will they go?
-
-
Constructor Summary
Constructors Constructor Description LogoutRedirector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetRedirectUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String referrer)If the page they were on was not restricted, send them back to it.static voidrecordRestrictedPageUri(javax.servlet.http.HttpServletRequest request)This must be called each time VitroHttpRequest checks to see whether a page's restrictions are met, so we know which pages are restricted.
-
-
-
Method Detail
-
getRedirectUrl
public static String getRedirectUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String referrer) throws IOException
If the page they were on was not restricted, send them back to it. Otherwise, send them to the home page.- Throws:
IOException
-
recordRestrictedPageUri
public static void recordRestrictedPageUri(javax.servlet.http.HttpServletRequest request)
This must be called each time VitroHttpRequest checks to see whether a page's restrictions are met, so we know which pages are restricted. We might be content to just know the last restricted page, but that could lead to problems if two pages are nested.
-
-