public final class InternalLinkResolverOptions extends Object
InternalLinkResolver.| Constructor and Description |
|---|
InternalLinkResolverOptions() |
| Modifier and Type | Method and Description |
|---|---|
String |
getPrimaryLinkRefProperty()
Primary ink reference property.
|
boolean |
isRewritePathToContext()
Rewrite path to context.
|
boolean |
isUseTargetContext()
User target context for URL building.
|
InternalLinkResolverOptions |
primaryLinkRefProperty(String value)
Primary ink reference property.
|
InternalLinkResolverOptions |
rewritePathToContext(boolean value)
Rewrite path to context.
|
InternalLinkResolverOptions |
useTargetContext(boolean value)
User target context for URL building.
|
public String getPrimaryLinkRefProperty()
public InternalLinkResolverOptions primaryLinkRefProperty(String value)
value - Name of the property in which the primary link reference is storedpublic boolean isRewritePathToContext()
UrlHandler.rewritePathToContext(Resource) with the root path of the
inner-most configuration scope/site and then resolved.public InternalLinkResolverOptions rewritePathToContext(boolean value)
value - If set to true it is ensured that all links target only pages inside the same inner-most configuration
scope, which is usually the same site/language. All link paths referencing pages outside this content
subtree are rewritten via UrlHandler.rewritePathToContext(Resource) with the root path of the
inner-most configuration scope/site and then resolved.public boolean isUseTargetContext()
UrlHandler with configuration from the configuration scope
(e.g. site/language) from the target page is used to build the link URL to the internal page, and not the
URL handler of the current resource's configuration scope (site/language). This makes only sense if
additional the flag "rewritePathToContext" is set to false.public InternalLinkResolverOptions useTargetContext(boolean value)
value - If set to true an UrlHandler with configuration from the configuration
scope
(e.g. site/language) from the target page is used to build the link URL to the internal page, and not the
URL handler of the current resource's configuration scope (site/language). This makes only sense if
additional the flag "rewritePathToContext" is set to false.Copyright © 2014–2017 wcm.io. All rights reserved.