public abstract class WebSiteService extends Object
| Constructor and Description |
|---|
WebSiteService() |
| Modifier and Type | Method and Description |
|---|---|
static WebSite |
getThreadWebSite()
Retrieve the WebSite object that has most recently been set on the
current thread via a call to
setThreadWebSite(WebSite). |
abstract WebSite |
getWebSite(String hostName,
int hostPort)
Gets the web site that relates to the host name and port.
|
abstract WebSite |
getWebSite(String hostName,
int hostPort,
String contextPath)
Gets the website that relates to the specified host, port, and context path.
|
abstract Collection<WebSite> |
getWebSites()
Gets all the web sites hosted on the repository
|
static void |
setThreadWebSite(WebSite website)
Set the supplied website in a thread-local container to make it available
for all activity that subsequently takes place on the current thread
|
public abstract Collection<WebSite> getWebSites()
public abstract WebSite getWebSite(String hostName, int hostPort)
hostName - host namehostPort - port numberpublic abstract WebSite getWebSite(String hostName, int hostPort, String contextPath)
hostName - hostPort - contextPath - public static void setThreadWebSite(WebSite website)
website - public static WebSite getThreadWebSite()
setThreadWebSite(WebSite).Copyright © 2005–2014 Alfresco Software. All rights reserved.