|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.util.PortalUtil
@StableMinor(version="6.2", 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)
Deprecated. Since 6.2.0 use IWebsiteManager.getWebsiteBaseURL(HttpServletRequest)
to get the IWebsiteBaseURL that represents the
website url for the given request. |
static String |
getWebsiteUri(HttpServletRequest request)
Deprecated. Since 6.2.0 use IWebsiteManager.getWebsiteBaseURL(HttpServletRequest)
to get the IWebsiteBaseURL for the given request.
After that use IWebsiteBaseURL.getPath() to get the
website URI. |
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
@Deprecated public static String getWebsite(HttpServletRequest request)
IWebsiteManager.getWebsiteBaseURL(HttpServletRequest)
to get the IWebsiteBaseURL
that represents the
website url for the given 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.
@Deprecated public static String getWebsiteUri(HttpServletRequest request)
IWebsiteManager.getWebsiteBaseURL(HttpServletRequest)
to get the IWebsiteBaseURL
for the given request.
After that use IWebsiteBaseURL.getPath()
to get the
website URI.
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 |