Package com.composum.sling.core.util
Class LinkMapper.ContextMapper
- java.lang.Object
-
- com.composum.sling.core.util.LinkMapper.ContextMapper
-
- All Implemented Interfaces:
LinkMapper
- Enclosing interface:
- LinkMapper
public static class LinkMapper.ContextMapper extends Object implements LinkMapper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.composum.sling.core.util.LinkMapper
LinkMapper.ContextMapper, LinkMapper.ResolverMapper
-
-
Field Summary
-
Fields inherited from interface com.composum.sling.core.util.LinkMapper
CONTEXT, LINK_MAPPER_REQUEST_ATTRIBUTE, RESOLVER
-
-
Constructor Summary
Constructors Constructor Description ContextMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
mapUri(org.apache.sling.api.SlingHttpServletRequest request, String uri)
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.
-
-
-
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 sinceResourceResolver.map(HttpServletRequest, String)
encodes characters not valid in an URL.- Specified by:
mapUri
in interfaceLinkMapper
-
-