|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.util.PortalUtil
@StableMinor(version="6.1", sinceVersion="4.0") public abstract class PortalUtil
Utility methods for portal related functionalities.
Constructor Summary | |
---|---|
PortalUtil()
|
Method Summary | |
---|---|
static java.lang.String |
generateClientScript(java.lang.String script)
|
static java.lang.String |
generateNewGuid()
|
static java.lang.String |
getCookie(java.lang.String name,
javax.servlet.http.HttpServletRequest request)
Given a cookie name, the cookie value if exists in the request object is returned. |
static java.lang.String |
getExceptionDetailsHtml(java.lang.Throwable e,
javax.servlet.http.HttpServletRequest request)
|
static java.lang.String |
getWebsite(javax.servlet.http.HttpServletRequest request)
Returns the website for the given request. |
static java.lang.String |
getWebsiteUri(javax.servlet.http.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 java.lang.String generateNewGuid()
public static java.lang.String generateClientScript(java.lang.String script)
public static java.lang.String getCookie(java.lang.String name, javax.servlet.http.HttpServletRequest request) throws ControllerException, PortalException
name
-
ControllerException
PortalException
public static java.lang.String getExceptionDetailsHtml(java.lang.Throwable e, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getWebsite(javax.servlet.http.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 java.lang.String getWebsiteUri(javax.servlet.http.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 |