|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.util.PortalUtil
@StableMinor(version="4.1", sinceVersion="4.0") public abstract class PortalUtil
Utility methods for portal related functionalities.
Constructor Summary | |
---|---|
PortalUtil()
|
Method Summary | |
---|---|
static String |
generateClientScript(String script)
|
static String |
generateNewGuid()
|
static String |
getCookie(String name,
HttpServletRequest request)
Given a cookie name, the cookie value if exists in the request object is returned. |
static String |
getExceptionDetailsHtml(Throwable e,
HttpServletRequest request)
|
static String |
getWebsite(HttpServletRequest request)
Returns the website for the given request. |
static String |
getWebsiteUri(HttpServletRequest request)
Returns the website uri for the given request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortalUtil()
Method Detail |
---|
public static String generateNewGuid()
public static String generateClientScript(String script)
public static String getCookie(String name, HttpServletRequest request) throws ControllerException, PortalException
name
-
ControllerException
PortalException
public static String getExceptionDetailsHtml(Throwable e, HttpServletRequest request) throws Exception
Exception
public static String getWebsite(HttpServletRequest request)
The website string is in the format '<hostname>:<port>/<uri>'. If the uri is empty, the slash will not be present.
request
- the request.
public static String getWebsiteUri(HttpServletRequest request)
If the uri refers to the root directory, an empty string is returned.
request
- the request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |