Class Condition.HttpStatus

  • All Implemented Interfaces:
    Condition
    Enclosing interface:
    Condition

    public static class Condition.HttpStatus
    extends Object
    implements Condition
    check the availability of an HTTP service
    • Field Detail

      • LOG

        public static final org.slf4j.Logger LOG
      • expectedStatus

        protected final int expectedStatus
      • serviceUrl

        protected final String serviceUrl
    • Constructor Detail

      • HttpStatus

        public HttpStatus​(@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