public class UrlPublicationResolver extends Object implements PublicationResolver
| Constructor and Description |
|---|
UrlPublicationResolver() |
| Modifier and Type | Method and Description |
|---|---|
int |
discoverPublicationIdByImagesUrl(String imagesUrl)
Tries to discover the Publication Id for an images URl
|
String |
getImagesPath()
Gets the Images Path property as defined in Tridion Publication metadata corresponding to the current request
|
String |
getImagesUrl()
Gets the Images URL property as defined in Tridion Publication metadata corresponding to the current request
|
String |
getLocalBinaryUrl(String url)
Gets the Binary URL in the current Publication corresponding to the given generic URL
|
String |
getLocalPageUrl(String url)
Gets the Page URL in the current Publication corresponding to the given generic URL
|
PublicationDescriptor |
getPublicationDescriptor()
For use in the RS scenario.
|
int |
getPublicationId()
Gets the Publication TCMURI item id for the current request
|
String |
getPublicationPath()
Gets the Publication Path property as defined in Tridion Publication metadata corresponding to the current request
|
String |
getPublicationUrl()
Gets the Publication Url property as defined in Tridion Publication metadata corresponding to the current request
|
void |
setPublicationProvider(PublicationProvider publicationProvider) |
void |
setStripServletContextPath(boolean stripServletContextPath) |
void |
setUseCdDynamic(String useCdDynamicValue) |
public int getPublicationId()
getPublicationId in interface PublicationResolverpublic int discoverPublicationIdByImagesUrl(String imagesUrl)
discoverPublicationIdByImagesUrl in interface PublicationResolverimagesUrl - the image URL pathpublic String getPublicationUrl()
getPublicationUrl in interface PublicationResolverpublic String getPublicationPath()
getPublicationPath in interface PublicationResolverpublic String getImagesUrl()
getImagesUrl in interface PublicationResolverpublic String getImagesPath()
getImagesPath in interface PublicationResolverpublic String getLocalPageUrl(String url)
getLocalPageUrl in interface PublicationResolverurl - String representing the generic URL (i.e. URL path without PublicationUrl prefix)public String getLocalBinaryUrl(String url)
getLocalBinaryUrl in interface PublicationResolverurl - String representing the generic URL (i.e. URL path without PublicationUrl prefix)public PublicationDescriptor getPublicationDescriptor()
getPublicationDescriptor in interface PublicationResolverpublic void setPublicationProvider(PublicationProvider publicationProvider)
public void setUseCdDynamic(String useCdDynamicValue)
public void setStripServletContextPath(boolean stripServletContextPath)
Copyright © 2017. All rights reserved.