Class FriendlyUrlUtils
java.lang.Object
fr.paris.lutece.plugins.seo.service.FriendlyUrlUtils
Friendly URL Utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringClean leading slash characterstatic StringconvertToFriendlyUrl(String strSource) Normalize a string to a friendly URLstatic StringReplace in the source all URL found in the map
-
Method Details
-
convertToFriendlyUrl
Normalize a string to a friendly URL- Parameters:
strSource- The source- Returns:
- The converted string
-
replaceByFriendlyUrl
public static String replaceByFriendlyUrl(String strSource, Map<String, String> map, String strBaseUrl) Replace in the source all URL found in the map- Parameters:
strSource- The sourcemap- The Map that contains Friendly URL mappingstrBaseUrl- The base URL- Returns:
- The source with found URL replaced
-
cleanUrl
Clean leading slash character- Parameters:
strUrl- The source- Returns:
- The cleaned URL
-