Package lumis.portal.website
Interface IWebsiteManager
-
- All Known Subinterfaces:
IWebsiteManagerSPI
- All Known Implementing Classes:
WebsiteManager
@StableMinor(version="17.0", sinceVersion="6.2") public interface IWebsiteManager
Provides high-level operations on portal websites.- Since:
- 6.2.0
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IWebsiteBaseURL
getWebsiteBaseURL(java.net.URI uri)
Returns the website base URL that serves the given URI ornull
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(javax.servlet.http.HttpServletRequest request)
Returns the website's base URL that a request corresponds to.java.net.URI
getWebsiteBaseURLAsURI(java.net.URI uri)
Returns the website base URL as a URI that serves the given URI ornull
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.
-
-
-
Method Detail
-
getWebsiteBaseURL
IWebsiteBaseURL getWebsiteBaseURL(javax.servlet.http.HttpServletRequest request) throws PortalException
Returns the website's base URL that a request corresponds to.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.- Parameters:
request
- the request.- Returns:
- the website base URL, or
null
if no website base URL corresponds to the request. - Throws:
PortalException
- Since:
- 6.2.0
-
getWebsiteBaseURL
IWebsiteBaseURL getWebsiteBaseURL(java.net.URI uri) throws PortalException
Returns the website base URL that serves the given URI ornull
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.- Parameters:
uri
- the URI.- Returns:
- the website base URL that serves the given URI or
null
if there's no base URL that serves the given URI. - Throws:
java.lang.NullPointerException
- if the given URI isnull
.PortalException
- Since:
- 10.4.0
-
getWebsiteBaseURLAsURI
java.net.URI getWebsiteBaseURLAsURI(java.net.URI uri) throws PortalException
Returns the website base URL as a URI that serves the given URI ornull
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.- Parameters:
uri
- the URI.- Returns:
- the website base URL as URI that serves the given URI or
null
if there's no base URL that serves the given URI. - Throws:
java.lang.NullPointerException
- if the given URI isnull
.PortalException
- Since:
- 10.4.0
-
-