Class SimpleUrlPattern


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20230501")
    public final class SimpleUrlPattern
    extends UrlPattern
    Pattern describing an http/https URL or set thereof as a concatenation of optional host component and optional path component.

    *.example.com will match http://example.com/ and https://foo.example.com/foo?bar.

    www.example.com/foo* will match https://www.example.com/foo and http://www.exampe.com/foobar and https://www.example.com/foo/bar?baz, but not http://sub.www.example.com/foo or https://www.example.com/FOO.

    *.example.com/foo* will match http://example.com/foo and https://sub2.sub.example.com/foo/bar?baz, but not http://example.com/FOO.
    Note: Objects should always be created or deserialized using the SimpleUrlPattern.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 SimpleUrlPattern.Builder, which maintain a set of all explicitly set fields called SimpleUrlPattern.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).

    • Constructor Detail

      • SimpleUrlPattern

        @Deprecated
        public SimpleUrlPattern​(String pattern)
        Deprecated.
    • Method Detail

      • getPattern

        public String getPattern()
        A string consisting of a concatenation of optional host component and optional path component.

        The host component may start with *. to match the case-insensitive domain and all its subdomains. The path component must start with a /, and may end with

        • to match all paths of which it is a case-sensitive prefix. A missing host component matches all request domains, and a missing path component matches all request paths. An empty value matches all requests.
        Returns:
        the value
      • toString

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