public class LoginControllerHtml extends ControllerHtml
Modifier and Type | Class and Description |
---|---|
static class |
LoginControllerHtml.RedirectValues
enum of possible values for "redirect" parameter for building friendly urls for logging out
|
Modifier and Type | Field and Description |
---|---|
static String |
LUM_REQUESTED_PAGE_COOKIE
Requested page cookie name.
|
out, request, response, sessionConfig, userConfig
Constructor and Description |
---|
LoginControllerHtml(HttpServletRequest request,
HttpServletResponse response,
PageContext pageContext) |
Modifier and Type | Method and Description |
---|---|
static String |
getRequestedPage(HttpServletRequest request)
Returns the requested page URI stored for the session, used for redirecting after login.
|
void |
handleLogin(ITransaction transaction) |
void |
handleLogout(ITransaction transaction) |
void |
handleRequest() |
static void |
setRequestedPage(HttpServletRequest request,
HttpServletResponse response,
String uri)
Stores a requested page URI in the session, for later retrieval by
getRequestedPage(HttpServletRequest) . |
deleteCookie, getCookie, getRequestMode, getSessionConfig, loadUserInfo, setCookie
public static final String LUM_REQUESTED_PAGE_COOKIE
public LoginControllerHtml(HttpServletRequest request, HttpServletResponse response, PageContext pageContext) throws ControllerException, PortalException
request
- response
- pageContext
- ControllerException
PortalException
public static String getRequestedPage(HttpServletRequest request)
request
- the http servlet request.null
if none is stored.public static void setRequestedPage(HttpServletRequest request, HttpServletResponse response, String uri)
getRequestedPage(HttpServletRequest)
.
Any value stored is replaced by the given one.request
- the http servlet request.response
- the http servlet response.uri
- the requested page URI, or null
to remove any value stored.public void handleLogout(ITransaction transaction) throws ControllerException, PortalException
ControllerException
PortalException
public void handleLogin(ITransaction transaction) throws ControllerException, PortalException
ControllerException
PortalException
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.