Interface AmpPage


  • @ConsumerType
    public interface AmpPage
    Defines the AmpPage Sling Model used for AMP extension for the /apps/core/wcm/components/page/v2/page component.
    Since:
    com.adobe.cq.wcm.core.components.models 12.14.0
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default java.util.Map<java.lang.String,​java.lang.String> getPageLinkAttrs()
      Getter for the relative page link to either the AMP version or base HTML version of the page.
      default boolean isAmpEnabled()
      Getter for whether the current page is AMP enabled.
      default boolean isAmpSelector()
      Getter for whether the current request has the AMP selector
    • Method Detail

      • getPageLinkAttrs

        default java.util.Map<java.lang.String,​java.lang.String> getPageLinkAttrs()
        Getter for the relative page link to either the AMP version or base HTML version of the page.
        Returns:
        the page link
      • isAmpSelector

        default boolean isAmpSelector()
        Getter for whether the current request has the AMP selector
        Returns:
        true if the current request has the AMP selector, false otherwise
      • isAmpEnabled

        default boolean isAmpEnabled()
        Getter for whether the current page is AMP enabled.
        Returns:
        boolean for AMP enabled