Class SimpleUrlPattern
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.networkfirewall.model.UrlPattern
-
- com.oracle.bmc.networkfirewall.model.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 theSimpleUrlPattern.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 theSimpleUrlPattern.Builder
, which maintain a set of all explicitly set fields calledSimpleUrlPattern.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SimpleUrlPattern.Builder
-
Nested classes/interfaces inherited from class com.oracle.bmc.networkfirewall.model.UrlPattern
UrlPattern.Type
-
-
Constructor Summary
Constructors Constructor Description SimpleUrlPattern(String pattern)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleUrlPattern.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getPattern()
A string consisting of a concatenation of optional host component and optional path component.int
hashCode()
SimpleUrlPattern.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
SimpleUrlPattern
@Deprecated public SimpleUrlPattern(String pattern)
Deprecated.
-
-
Method Detail
-
builder
public static SimpleUrlPattern.Builder builder()
Create a new builder.
-
toBuilder
public SimpleUrlPattern.Builder toBuilder()
-
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()
- Overrides:
toString
in classUrlPattern
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classUrlPattern
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classUrlPattern
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classUrlPattern
-
-