com.arsdigita.ui.login
Class LoginHelper
java.lang.Object
com.arsdigita.ui.login.LoginHelper
- public class LoginHelper
- extends Object
Provides helper functions for the login UI.
- Author:
- Sameer Ajmani
Method Summary |
static void |
doReturn(PageState state,
String def)
Redirect the client to the URL stored in the return_url request
parameter, or, if that parameter is not set, redirect to the given
default URL. |
static void |
sendRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String url)
Redirect the client to the given URL unless the response has already
been committed. |
static void |
sendRedirect(PageState state,
String url)
Redirect the client to the given URL unless the response has
already been committed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionId
public static final String versionId
- See Also:
- Constant Field Values
RETURN_URL_PARAM_NAME
public static final String RETURN_URL_PARAM_NAME
- See Also:
- Constant Field Values
LoginHelper
public LoginHelper()
doReturn
public static void doReturn(PageState state,
String def)
- Redirect the client to the URL stored in the return_url request
parameter, or, if that parameter is not set, redirect to the given
default URL.
- Parameters:
state
- the current page statedef
- the default URL
sendRedirect
public static void sendRedirect(PageState state,
String url)
throws IOException
- Redirect the client to the given URL unless the response has
already been committed. Wrapper for
sendRedirect(HttpServletRequest, HttpServletResponse, String)
that pulls out the request and response from the PageState.
- Throws:
IOException
- if the redirect fails.
sendRedirect
public static void sendRedirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String url)
throws IOException
- Redirect the client to the given URL unless the response has already
been committed. Aborts further request processing.
- Throws:
IOException
- if the redirect fails.
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC