public final class CanonicalUrlService extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
addCanonicalUrl(String strContent,
javax.servlet.http.HttpServletRequest request,
Map<String,String> mapFriendlyUrls,
String strBaseUrl)
Add canonical URL into an HTML page's content
|
static CanonicalUrlService |
instance()
Return the unique instance
|
boolean |
isCanonicalUrlsEnabled()
Tells if canonical urls are enabled
|
void |
setCanonicalUrlsEnabled(boolean bEnabled)
Sets the status of Canonical URLs (Enabled or Disabled)
|
public static CanonicalUrlService instance()
public boolean isCanonicalUrlsEnabled()
public void setCanonicalUrlsEnabled(boolean bEnabled)
bEnabled - The statuspublic String addCanonicalUrl(String strContent, javax.servlet.http.HttpServletRequest request, Map<String,String> mapFriendlyUrls, String strBaseUrl)
strContent - The HTML page's contentrequest - The HTTP requestmapFriendlyUrls - The map of friendly URLSstrBaseUrl - The Base URLCopyright © 2014 Mairie de Paris. All rights reserved.