@StableMinor(version="12.2", sinceVersion="4.0") public class ControllerHtml extends Object
Modifier and Type | Field and Description |
---|---|
protected Writer |
out |
protected HttpServletRequest |
request |
protected HttpServletResponse |
response |
protected SessionConfig |
sessionConfig |
protected UserConfig |
userConfig |
Constructor and Description |
---|
ControllerHtml(HttpServletRequest request,
HttpServletResponse response) |
ControllerHtml(HttpServletRequest request,
HttpServletResponse response,
boolean initialize) |
Modifier and Type | Method and Description |
---|---|
void |
deleteCookie(String name)
Deprecated.
Since 4.0.7, use
CookieUtil.deleteCookie(HttpServletRequest, HttpServletResponse, String) instead. |
String |
getCookie(String name)
Deprecated.
Since 4.0.7, use
CookieUtil.getCookie(HttpServletRequest, String) instead. |
protected int |
getRequestMode()
Returns the mode for the current request.
|
SessionConfig |
getSessionConfig() |
void |
loadUserInfo(ITransaction transaction)
Loads the user information from ther user session Id taken from the
request cookie.
|
void |
setCookie(String name,
String value)
Deprecated.
Since 4.0.7, use
CookieUtil.setCookie(HttpServletRequest, HttpServletResponse, String, String) instead. |
protected SessionConfig sessionConfig
protected UserConfig userConfig
protected HttpServletRequest request
protected HttpServletResponse response
protected Writer out
public ControllerHtml(HttpServletRequest request, HttpServletResponse response) throws ControllerException, PortalException
ControllerException
PortalException
public ControllerHtml(HttpServletRequest request, HttpServletResponse response, boolean initialize) throws ControllerException, PortalException
ControllerException
PortalException
public SessionConfig getSessionConfig()
public void loadUserInfo(ITransaction transaction) throws ControllerException, PortalException
transaction
- ControllerException
PortalException
protected int getRequestMode() throws PortalException
PortalContext.MODE_ADMIN
, or
PortalContext.MODE_USER
.PortalException
public String getCookie(String name) throws ControllerException, PortalException
CookieUtil.getCookie(HttpServletRequest, String)
instead.name
- ControllerException
PortalException
public void setCookie(String name, String value) throws ControllerException, PortalException
CookieUtil.setCookie(HttpServletRequest, HttpServletResponse, String, String)
instead.name
- value
- ControllerException
PortalException
public void deleteCookie(String name) throws ControllerException, PortalException
CookieUtil.deleteCookie(HttpServletRequest, HttpServletResponse, String)
instead.name
- ControllerException
PortalException
LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.