Package com.composum.sling.core.util
Interface LinkMapper
-
- All Known Implementing Classes:
LinkMapper.ContextMapper
,LinkMapper.ResolverMapper
public interface LinkMapper
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
LinkMapper.ContextMapper
static class
LinkMapper.ResolverMapper
-
Field Summary
Fields Modifier and Type Field Description static LinkMapper.ContextMapper
CONTEXT
static String
LINK_MAPPER_REQUEST_ATTRIBUTE
static LinkMapper.ResolverMapper
RESOLVER
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Field Detail
-
LINK_MAPPER_REQUEST_ATTRIBUTE
static final String LINK_MAPPER_REQUEST_ATTRIBUTE
-
CONTEXT
static final LinkMapper.ContextMapper CONTEXT
-
RESOLVER
static final LinkMapper.ResolverMapper RESOLVER
-
-
Method Detail
-
mapUri
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. we have to say that it returns it URL-encoded sinceResourceResolver.map(HttpServletRequest, String)
encodes characters not valid in an URL.
-
-