Package org.craftercms.engine.targeting
Class TargetedUrlComponents
- java.lang.Object
-
- org.craftercms.engine.targeting.TargetedUrlComponents
-
public class TargetedUrlComponents extends Object
The components of a targeted URL.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description TargetedUrlComponents()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPrefix()
Returns the URL prefix (e.g.String
getSuffix()
Returns the URL suffix (e.g.String
getTargetId()
Returns the target ID (e.g.void
setPrefix(String prefix)
Sets the URL prefix.void
setSuffix(String suffix)
Sets the URL suffix (e.g.void
setTargetId(String targetId)
Sets the target ID (e.g.
-
-
-
Method Detail
-
getPrefix
public String getPrefix()
Returns the URL prefix (e.g. /products/index)
-
setPrefix
public void setPrefix(String prefix)
Sets the URL prefix.- Parameters:
prefix
- the prefix to set (e.g. /products/index)
-
getTargetId
public String getTargetId()
Returns the target ID (e.g. en_US)
-
setTargetId
public void setTargetId(String targetId)
Sets the target ID (e.g. en_US).- Parameters:
targetId
- the target ID to set
-
getSuffix
public String getSuffix()
Returns the URL suffix (e.g. .xml)
-
setSuffix
public void setSuffix(String suffix)
Sets the URL suffix (e.g. .xml)- Parameters:
suffix
- the suffix to set
-
-