|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.controller.ControllerHtml
@StableMinor(version="4.1", sinceVersion="4.0") public class ControllerHtml
This is the base class for all the controllers. Basic information like request, response and sessionConfig information is stored within local members. All controllers that return HTML should extend this class.
Field Summary | |
---|---|
protected Writer |
out
|
protected HttpServletRequest |
request
|
protected HttpServletResponse |
response
|
protected SessionConfig |
sessionConfig
|
protected UserConfig |
userConfig
|
Constructor Summary | |
---|---|
ControllerHtml(HttpServletRequest request,
HttpServletResponse response)
|
|
ControllerHtml(HttpServletRequest request,
HttpServletResponse response,
boolean initialize)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SessionConfig sessionConfig
protected UserConfig userConfig
protected HttpServletRequest request
protected HttpServletResponse response
protected Writer out
Constructor Detail |
---|
public ControllerHtml(HttpServletRequest request, HttpServletResponse response) throws ControllerException, PortalException
ControllerException
PortalException
public ControllerHtml(HttpServletRequest request, HttpServletResponse response, boolean initialize) throws ControllerException, PortalException
ControllerException
PortalException
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |