@StableMinor(version="12.5", sinceVersion="4.0") public abstract class PortalUtil extends Object
Constructor and Description |
---|
PortalUtil() |
Modifier and Type | Method and Description |
---|---|
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. |
public static String generateNewGuid()
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.LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.