@Generated(value="OracleSDKGenerator", comments="API Version: 20211001") 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.
Key points: 1. Use the specific URLs or construct the URL patterns you want to match using
wildcard *
and token characters ./
. 2. In the host component and path component
don't enter consecutive wildcard *
for example: example.*.*.com
. 3. To match the
exact domain and its subdirectories add a trailing slash /
to your entry. 4. The firewall
interprets entries that do not end in a /
or *
with an implicit asterisk *
to their end, which further increases the potential matches. 5. The Use of multiple wildcards
in a single pattern can impact the performance of the firewall.
Domain/subdomains match examples: 1. *.example.com.*
will match sub1.sub2.example.com.info.us
and sub1.example.com.us
and sub1.example.com/subdirectory
but not match sub1.example.com
. 2. *.example.com
will match sub1.example.com
and sub1.sub2.example.com
and sub1.example.com.au
but not match example.com
. 3. *.example.com/
will match
sub1.sub2.example.com
and sub1.example.com
but not match sub1.example.com.au
. 4. example.com
will match example.com
and example.com.au
and example.com.info.us
and example.com/subdirectory
. 5. example.com/
will match example.com
and example.com/foo
but not example.com.info.us
. 6. example.*.com
will match example.sub1.com
and example.sub1.sub2.com
and example.sub1.com.au
and example.sub1.com/subdirecroty
.
7. example.*.com/
will match example.sub1.com
and example.sub1.sub2.com
and example.sub1.com/subdirecroty
but not match example.sub1.com.au
. 8. example.com.*
will match example.com.us
and example.com.info.us
and example.com.us/subdirectory
but not match sub1.example.com
.
Subdirectory or path match examples: 1. example.com/*
will match example.com/foo
and example.com/bar
and any example.com/subdirectory
. 2. example.com/foo
will match example.com/foo
. 3. www.example.com/foo/*
will match
www.exampe.com/foo/subdiectory
, but not match www.example.com/FOO
or www.example.com/bar/subdirectory
. 4. *.example.com/foo/*
will match sub2.sub.example.com/foo/subdirectory
but not match sub1.example.com/FOO
or sub1.example.com/bar/subdirectory
.
Other examples containing IP addresses in urls: 1. 103.12.14.122/ will match 103.12.14.122 and
103.12.14.122/subdirectory. 2. 103.12.14.122:8081/ will match 103.12.14.122:8081 and
103.12.14.122:8081/subdirectory. 3. 2607:9d80:4680:3f01:0000:0000:00d0:00c0/ will match
2607:9d80:4680:3f01:0000:0000:00d0:00c0 and 2607:9d80:4680:3f01:0000:0000:00d0:00c0/subdirecroty.
4. [2607:9d80:4680:3f01:0000:0000:00d0:00c0]:8081/ will match
[2607:9d80:4680:3f01:0000:0000:00d0:00c0]:8081 and
[2607:9d80:4680:3f01:0000:0000:00d0:00c0]:8081/subdirecroty.
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 ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and
equals(Object)
methods are implemented to take ExplicitlySetBmcModel.__explicitlySet__
into account.
The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the
constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
SimpleUrlPattern.Builder |
UrlPattern.Type
Constructor and Description |
---|
SimpleUrlPattern(String pattern)
Deprecated.
|
Modifier and Type | Method and 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.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public SimpleUrlPattern(String pattern)
public static SimpleUrlPattern.Builder builder()
Create a new builder.
public SimpleUrlPattern.Builder toBuilder()
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.
public String toString()
toString
in class UrlPattern
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class UrlPattern
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class UrlPattern
public int hashCode()
hashCode
in class UrlPattern
Copyright © 2016–2023. All rights reserved.