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
-
Method Summary
Modifier and TypeMethodDescriptionReturns the URL prefix (e.g.Returns the URL suffix (e.g.Returns the target ID (e.g.void
Sets the URL prefix.void
Sets the URL suffix (e.g.void
setTargetId
(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
-