Class FriendlyUrlUtils
- java.lang.Object
-
- fr.paris.lutece.plugins.seo.service.FriendlyUrlUtils
-
public final class FriendlyUrlUtils extends Object
Friendly URL Utils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcleanUrl(String strUrl)Clean leading slash characterstatic StringconvertToFriendlyUrl(String strSource)Normalize a string to a friendly URLstatic StringreplaceByFriendlyUrl(String strSource, Map<String,String> map, String strBaseUrl)Replace in the source all URL found in the map
-
-
-
Method Detail
-
convertToFriendlyUrl
public static String convertToFriendlyUrl(String strSource)
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
-
-