Class PageMetadataImpl
- java.lang.Object
-
- com.adobe.cq.commerce.core.components.internal.models.v1.page.PageMetadataImpl
-
- All Implemented Interfaces:
PageMetadata
@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class, adapters=PageMetadata.class) public class PageMetadataImpl extends Object implements PageMetadata
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.sling.api.resource.Resource
resource
-
Constructor Summary
Constructors Constructor Description PageMetadataImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCanonicalUrl()
String
getMetaDescription()
String
getMetaKeywords()
String
getMetaTitle()
Although this method refers to "metaTitle", this is used to set the title tag of the HTML page.
-
-
-
Method Detail
-
getMetaDescription
public String getMetaDescription()
- Specified by:
getMetaDescription
in interfacePageMetadata
- Returns:
- The content for the meta description tag of the HTML page.
-
getMetaKeywords
public String getMetaKeywords()
- Specified by:
getMetaKeywords
in interfacePageMetadata
- Returns:
- The content for the meta keywords tag of the HTML page.
-
getMetaTitle
public String getMetaTitle()
Description copied from interface:PageMetadata
Although this method refers to "metaTitle", this is used to set the title tag of the HTML page. The method is not calledgetTitle()
to avoid confusion withProductList.getTitle()
- Specified by:
getMetaTitle
in interfacePageMetadata
- Returns:
- The content for the title tag of the HTML page.
-
getCanonicalUrl
public String getCanonicalUrl()
- Specified by:
getCanonicalUrl
in interfacePageMetadata
- Returns:
- The fully-qualified canonical url, to set the canonical link element of the HTML page.
-
-