Class VanityPathHandler
java.lang.Object
org.apache.sling.resourceresolver.impl.mapping.VanityPathHandler
All things related to the handling of vanity paths.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVanityPathHandler(MapConfigurationProvider factory, Map<String, List<MapEntry>> resolveMapsMap, ReentrantLock initializing, Consumer<String> drain) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidActual vanity path initializer.booleanisReady()
-
Field Details
-
PROP_REDIRECT_EXTERNAL
- See Also:
-
PROP_REDIRECT_EXTERNAL_REDIRECT_STATUS
- See Also:
-
PROP_VANITY_PATH
- See Also:
-
PROP_VANITY_ORDER
- See Also:
-
-
Constructor Details
-
VanityPathHandler
public VanityPathHandler(MapConfigurationProvider factory, Map<String, List<MapEntry>> resolveMapsMap, ReentrantLock initializing, Consumer<String> drain)
-
-
Method Details
-
isReady
public boolean isReady() -
getVanityPathMappings
-
initializeVanityPaths
protected void initializeVanityPaths()Actual vanity path initializer. Guards itself against concurrent use by using a ReentrantLock. Does nothing if the resource resolver has already been null-ed. -
getCurrentMapEntryForVanityPath
-