Class HeaderMatchType

    • Method Detail

      • contains

        public final String contains()

        Specifies a contains type match.

        Returns:
        Specifies a contains type match.
      • exact

        public final String exact()

        Specifies an exact type match.

        Returns:
        Specifies an exact type match.
      • prefix

        public final String prefix()

        Specifies a prefix type match. Matches the value with the prefix.

        Returns:
        Specifies a prefix type match. Matches the value with the prefix.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromContains

        public static HeaderMatchType fromContains​(String contains)
        Create an instance of this class with contains() initialized to the given value.

        Specifies a contains type match.

        Parameters:
        contains - Specifies a contains type match.
      • fromExact

        public static HeaderMatchType fromExact​(String exact)
        Create an instance of this class with exact() initialized to the given value.

        Specifies an exact type match.

        Parameters:
        exact - Specifies an exact type match.
      • fromPrefix

        public static HeaderMatchType fromPrefix​(String prefix)
        Create an instance of this class with prefix() initialized to the given value.

        Specifies a prefix type match. Matches the value with the prefix.

        Parameters:
        prefix - Specifies a prefix type match. Matches the value with the prefix.