Class Condition.ServletPermission

  • All Implemented Interfaces:
    Condition
    Enclosing interface:
    Condition

    public static class Condition.ServletPermission
    extends Object
    implements Condition
    check the avaiability of a servlet registered for a given resource type
    • Field Detail

      • servletKey

        protected final String servletKey
    • Constructor Detail

      • ServletPermission

        public ServletPermission​(@NotNull
                                 @NotNull String pattern)
    • Method Detail

      • accept

        public boolean accept​(@NotNull
                              @NotNull BeanContext context,
                              @NotNull
                              @NotNull org.apache.sling.api.resource.Resource resource)
        Description copied from interface: Condition
        check the configured condition for the given resource
        Specified by:
        accept in interface Condition