|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.website.WebsiteUtil
public class WebsiteUtil
Website utility class.
Constructor Summary | |
---|---|
WebsiteUtil()
|
Method Summary | |
---|---|
static String |
getId(IWebsiteBaseURL url)
Returns the identifier of the given website base
URL . |
static IWebsiteBaseURL |
getWebsiteBaseURLById(String id)
Returns the website base URL based on its
identification. |
static IWebsiteBaseURL |
resolveWebsiteBaseURLByString(String websiteStr)
Resolves the given website string in a website
base URL .The given string will be parsed as new
URI(String) , so that it must adhere with URI syntax. |
static IWebsite |
resolveWebsiteByString(String websiteStr)
Resolves the given website string in a website .The given string will be parsed as new
URI(String) , so that it must adhere with URI syntax. |
static void |
updateWebsiteBaseURL(IWebsiteBaseURL baseURL,
String domain,
int port,
String path)
Updates the given base URL with the given
parameters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebsiteUtil()
Method Detail |
---|
public static IWebsite resolveWebsiteByString(String websiteStr) throws PortalException
website
.new
URI(String)
, so that it must adhere with URI
syntax.
websiteStr
- the website string to be parsed.
website
.
IllegalArgumentException
- if the given string is a malformed URL.
IllegalArgumentException
- if the protocol isn't neither HTTP
nor HTTPS
.
PortalException
resolveWebsiteBaseURLByString(String)
public static IWebsiteBaseURL resolveWebsiteBaseURLByString(String websiteStr) throws PortalException
website
base URL
.new
URI(String)
, so that it must adhere with URI
syntax.
websiteStr
- the website string to be parsed.
website base URL
.
IllegalArgumentException
- if the given string is a malformed URL.
IllegalArgumentException
- if the protocol isn't neither HTTP
nor HTTPS
.
PortalException
public static String getId(IWebsiteBaseURL url)
website base
URL
.
url
- the website base URL.
website base
URL
.
IllegalArgumentException
- if the given object is null
.
IllegalArgumentException
- if the given object's class is unknown.public static IWebsiteBaseURL getWebsiteBaseURLById(String id)
website base URL
based on its
identification.
id
- the website base URL
identification.
website base URL
based on its
identification.public static void updateWebsiteBaseURL(IWebsiteBaseURL baseURL, String domain, int port, String path)
base URL
with the given
parameters.
baseURL
- the base URL.domain
- the domain.port
- the port.path
- the path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |