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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String apply​(@NotNull java.lang.String path, @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver)
      Preprocess a path.
    • Method Detail

      • apply

        @NotNull
        @NotNull java.lang.String apply​(@NotNull
                                        @NotNull java.lang.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