Class LinkMapper.ResolverMapper

    • Constructor Detail

      • ResolverMapper

        public ResolverMapper()
    • Method Detail

      • mapUri

        public String mapUri​(org.apache.sling.api.SlingHttpServletRequest request,
                             String uri)
        Description copied from interface: LinkMapper
        If uri is an URL, it is returned unmodified; if it's a path, it's mapped to an URL without scheme, but validly URL-encoded. we have to say that it returns it URL-encoded since ResourceResolver.map(HttpServletRequest, String) encodes characters not valid in an URL.
        Specified by:
        mapUri in interface LinkMapper