|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bemoko.live.platform.mwc.sites.LiveResourceUri
public class LiveResourceUri
| Nested Class Summary | |
|---|---|
protected class |
LiveResourceUri.RemovalResult
|
| Constructor Summary | |
|---|---|
LiveResourceUri(String uri)
|
|
LiveResourceUri(String siteName,
String resourceType,
String resourcePath)
Create a LiveResourceURI from the constitute parts |
|
LiveResourceUri(String siteName,
String resourceType,
String contextName,
String contextResourcePath)
Create a LiveResourceURI from the constitute parts |
|
| Method Summary | |
|---|---|
void |
addSelector(String selectorFunctionAsString)
|
void |
appendToResourcePath(String extraPath)
|
void |
appendToResourcePath(String extraPath,
boolean addLeadingSlash)
Add the given relative path to the current resource path |
Object |
clone()
Make a clone of a LiveResourceURI |
String |
getContextName()
Return the context name e.g. |
List<String> |
getContextNameParts()
Get a list of the context name parts |
String |
getContextResourcePath()
Return the resource name relative to a context directory, e.g. |
String |
getContextResourcePathOrResourcePathIfContextNameIsNull()
|
String |
getExtension()
|
String |
getFallbackContext()
Create a fallback context, i.e. |
String |
getFallbackContext(String newFirstContextName)
Create a fallback context by replacing the first context name |
String |
getFallbackSiteName()
Create a fallback site name, i.e. |
String |
getFallbackSiteName(String newFirstSiteName)
Create a fallback site name by replacing the first site name |
String |
getFirstContextName()
Return the first context name in the list of context name parts where each part is separated by a ":" |
String |
getFirstPath()
Return the physical path of the first uri relative to the site location on which this site is mounted. |
String |
getFirstSiteContextEndPoint(LiveSite site,
String resourceTypeDirectory)
|
String |
getFirstSiteContextEndPoint(String resourceTypeDirectory)
|
String |
getFirstSiteName()
Return the first site name in the list of site name parts where each part is separated by a ":" |
String |
getFirstSitePath()
Return the physical path of the first site name relative to the site location on which this site is mounted, e.g. |
String |
getFirstSiteRelativeUri()
Get the URI relative to the site using the first context name in the list of context name parts |
String |
getFirstUri()
Get the URI using the first context name in the list of context name parts and the first site name in the list of site name parts |
String |
getFirstUri(LiveSite site)
Get the URI using the first context name in the list of context name parts and the site passed in as an argument |
String |
getLocalisation()
|
String |
getName()
|
String |
getResourcePath()
Return the resource name, e.g. |
List<String> |
getResourcePathVariations()
|
String |
getResourceType()
Get the resource type, e.g. |
String |
getSecondContextName()
|
String |
getSecondSiteName()
|
List<Selector> |
getSelectors()
The selector is a function that can be applied to a uri, e.g. |
String |
getSiteName()
|
List<String> |
getSiteNameParts()
Get a list of the site name parts |
String |
getSiteRelativeUri()
|
String |
getUri()
|
String |
getURI()
Deprecated. since v1.3 - please use getUri() |
String |
getUriWithoutSelectors()
Get the URI without any selector parts. |
protected LiveResourceUri.RemovalResult |
removeAndSetSelectors(String path)
|
void |
setContextName(String contextName)
|
void |
setContextResourcePath(String contextResourcePath)
|
void |
setExtension(String extension)
|
void |
setLocalisation(String localisation)
|
void |
setResourceType(String resourceType)
|
void |
setSiteName(String siteName)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LiveResourceUri(String uri)
throws LiveException
LiveException
public LiveResourceUri(String siteName,
String resourceType,
String resourcePath)
siteName - the site nameresourceType - the resource typeresourcePath - the resource path
public LiveResourceUri(String siteName,
String resourceType,
String contextName,
String contextResourcePath)
siteName - resourceType - contextName - contextResourcePath - context resource path relative to the context directory and
starting with a "/"| Method Detail |
|---|
public void addSelector(String selectorFunctionAsString)
selectorFunctionAsString - the selector functionpublic void appendToResourcePath(String extraPath)
public void appendToResourcePath(String extraPath,
boolean addLeadingSlash)
public Object clone()
clone in class Objectpublic String getContextName()
public List<String> getContextNameParts()
public String getContextResourcePath()
public String getContextResourcePathOrResourcePathIfContextNameIsNull()
public List<String> getResourcePathVariations()
public String getExtension()
public String getFallbackContext()
public String getFallbackContext(String newFirstContextName)
public String getFallbackSiteName()
public String getFallbackSiteName(String newFirstSiteName)
public String getFirstContextName()
public String getFirstSiteContextEndPoint(String resourceTypeDirectory)
public String getFirstSiteContextEndPoint(LiveSite site,
String resourceTypeDirectory)
public String getFirstSiteName()
public String getFirstSitePath()
SiteUtils.getPathWithoutLeadingSlash(String)
public String getFirstPath()
SiteUtils.getPathWithoutLeadingSlash(String)
public String getFirstSiteRelativeUri()
public String getFirstUri()
public String getFirstUri(LiveSite site)
public String getLocalisation()
public String getResourcePath()
public String getName()
public String getResourceType()
public String getSecondContextName()
public String getSecondSiteName()
public List<Selector> getSelectors()
public String getSiteName()
getSiteName in interface com.bemoko.live.platform.mwc.cache.SiteScopedCacheEntrypublic List<String> getSiteNameParts()
public String getSiteRelativeUri()
@Deprecated public String getURI()
getUri()
public String getUri()
protected LiveResourceUri.RemovalResult removeAndSetSelectors(String path)
public void setContextName(String contextName)
public void setContextResourcePath(String contextResourcePath)
public void setExtension(String extension)
public void setLocalisation(String localisation)
localisation - the localisation to setpublic void setResourceType(String resourceType)
public void setSiteName(String siteName)
public String toString()
toString in class Objectpublic String getUriWithoutSelectors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||