@StableMinor(version="12.0", sinceVersion="6.2") public interface IWebsiteManager
Modifier and Type | Method and Description |
---|---|
IWebsiteBaseURL |
getWebsiteBaseURL(HttpServletRequest request)
Returns the website's base URL that a request corresponds to.
|
IWebsiteBaseURL |
getWebsiteBaseURL(URI uri)
Returns the website base URL that serves the given URI or
null if there's no base URL that serves the given URI.If the given URI is not absolute or is opaque, null will be returned.This method will not fallback to default website if no website can relativize the given URI. |
URI |
getWebsiteBaseURLAsURI(URI uri)
Returns the website base URL as a URI that serves the given URI or
null if there's no base URL that serves the given URI.If the given URI is not absolute or is opaque, null will be returned.This method will not fallback to default website if no website can relativize the given URI. |
IWebsiteBaseURL getWebsiteBaseURL(HttpServletRequest request) throws PortalException
If the request does not correspond to any configured website base URL
but there is a website configured as default, a website base URL
will be dynamically generated and returned, referencing the
default website in IWebsiteBaseURL.getWebsite()
,
as if it was an additional base URL of the default website.
If the request does not corresponds to any configured website base URL
and there is no website configured as default, null
is returned.
request
- the request.null
if no website base URL
corresponds to the request.PortalException
IWebsiteBaseURL getWebsiteBaseURL(URI uri) throws PortalException
null
if there's no base URL that serves the given URI.null
will be returned.uri
- the URI.null
if there's no base URL that serves the given URI.NullPointerException
- if the given URI is null
.PortalException
URI getWebsiteBaseURLAsURI(URI uri) throws PortalException
null
if there's no base URL that serves the given URI.null
will be returned.uri
- the URI.null
if there's no base URL that serves the given URI.NullPointerException
- if the given URI is null
.PortalException
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.