Class PathMatchCondition


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20170115")
    public final class PathMatchCondition
    extends RuleCondition
    The path string and match condition to apply when evaluating an incoming URI for redirection.
    Note: Objects should always be created or deserialized using the PathMatchCondition.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the PathMatchCondition.Builder, which maintain a set of all explicitly set fields called PathMatchCondition.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Method Detail

      • getAttributeValue

        public String getAttributeValue()
        The path string that the redirection rule applies to.

        Example: /example

        Returns:
        the value
      • getOperator

        public PathMatchCondition.Operator getOperator()
        A string that specifies how to compare the PathMatchCondition object’s attributeValue string to the incoming URI.

        **EXACT_MATCH** - The incoming URI path must exactly and completely match the attributeValue string.

        **FORCE_LONGEST_PREFIX_MATCH** - The system looks for the attributeValue string with the best, longest match of the beginning portion of the incoming URI path.

        **PREFIX_MATCH** - The beginning portion of the incoming URI path must exactly match the attributeValue string.

        **SUFFIX_MATCH** - The ending portion of the incoming URI path must exactly match the attributeValue string.

        Returns:
        the value
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Overrides:
        toString in class RuleCondition
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation