Package org.craftercms.engine.targeting
Class TargetedUrlComponents
java.lang.Object
org.craftercms.engine.targeting.TargetedUrlComponents
The components of a targeted URL.
- Author:
- avasquez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the URL prefix (e.g.Returns the URL suffix (e.g.Returns the target ID (e.g.voidSets the URL prefix.voidSets the URL suffix (e.g.voidsetTargetId(String targetId) Sets the target ID (e.g.
-
Constructor Details
-
TargetedUrlComponents
public TargetedUrlComponents()
-
-
Method Details
-
getPrefix
Returns the URL prefix (e.g. /products/index) -
setPrefix
Sets the URL prefix.- Parameters:
prefix- the prefix to set (e.g. /products/index)
-
getTargetId
Returns the target ID (e.g. en_US) -
setTargetId
Sets the target ID (e.g. en_US).- Parameters:
targetId- the target ID to set
-
getSuffix
Returns the URL suffix (e.g. .xml) -
setSuffix
Sets the URL suffix (e.g. .xml)- Parameters:
suffix- the suffix to set
-