public abstract class URLUtil extends Object
Modifier and Type | Method and Description |
---|---|
static PageWebResource |
getFirstPageWebResource(ChannelWebResource cwr)
Returns the page web resource for the first page whithin the channel of the given channel web resource.
|
static String |
getHost(URI uri)
Returns the host of the given URI or
null if none could be inferred. |
static String |
getRefererPath(String referer,
IWebsiteBaseURL baseURL,
HttpServletRequest request)
Get the Web Resource path from the given URL
|
public static String getRefererPath(String referer, IWebsiteBaseURL baseURL, HttpServletRequest request)
referer
- The URL to get the path frombaseURL
- The WebsiteBaseURLrequest
- The HttpServletRequestpublic static PageWebResource getFirstPageWebResource(ChannelWebResource cwr) throws PortalException
This method requires a current session and a current transaction.
cwr
- the channel web resource.PortalException
Lumisportal 10.3.0.171201 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.