Class NonResourcePolicyRule

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class NonResourcePolicyRule
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.
    • Constructor Summary

      Constructors 
      Constructor Description
      NonResourcePolicyRule()  
      NonResourcePolicyRule​(@NonNull java.util.List<java.lang.String> nonResourceURLs, @NonNull java.util.List<java.lang.String> verbs)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static NonResourcePolicyRule.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      @NonNull java.util.List<java.lang.String> getNonResourceURLs()
      `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty.
      @NonNull java.util.List<java.lang.String> getVerbs()
      `verbs` is a list of matching verbs and may not be empty.
      int hashCode()  
      void setNonResourceURLs​(@NonNull java.util.List<java.lang.String> nonResourceURLs)
      `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty.
      void setVerbs​(@NonNull java.util.List<java.lang.String> verbs)
      `verbs` is a list of matching verbs and may not be empty.
      NonResourcePolicyRule.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NonResourcePolicyRule

        public NonResourcePolicyRule​(@NonNull
                                     @NonNull java.util.List<java.lang.String> nonResourceURLs,
                                     @NonNull
                                     @NonNull java.util.List<java.lang.String> verbs)
      • NonResourcePolicyRule

        public NonResourcePolicyRule()
    • Method Detail

      • getNonResourceURLs

        @NonNull
        public @NonNull java.util.List<java.lang.String> getNonResourceURLs()
        `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:

        - "/healthz" is legal

        - "/hea*" is illegal

        - "/hea" is legal but matches nothing

        - "/hea/*" also matches nothing

        - "/healthz/*" matches all per-component health checks.

        "*" matches all non-resource urls. if it is present, it must be the only entry. Required.

      • getVerbs

        @NonNull
        public @NonNull java.util.List<java.lang.String> getVerbs()
        `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
      • setNonResourceURLs

        public void setNonResourceURLs​(@NonNull
                                       @NonNull java.util.List<java.lang.String> nonResourceURLs)
        `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:

        - "/healthz" is legal

        - "/hea*" is illegal

        - "/hea" is legal but matches nothing

        - "/hea/*" also matches nothing

        - "/healthz/*" matches all per-component health checks.

        "*" matches all non-resource urls. if it is present, it must be the only entry. Required.

      • setVerbs

        public void setVerbs​(@NonNull
                             @NonNull java.util.List<java.lang.String> verbs)
        `verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object