Interface PathPreprocessor


@ConsumerType public interface PathPreprocessor
Allows to preprocess a path before matching it against the regular experessions of the context-aware services.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    apply(@NotNull String path, @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver)
    Preprocess a path.
  • Method Details

    • apply

      @NotNull @NotNull String apply(@NotNull @NotNull String path, @NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver)
      Preprocess a path.
      Parameters:
      path - Path (never null)
      resourceResolver - Resource resolver
      Returns:
      Processed path or same path