@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
).
Modifier and Type | Class and Description |
---|---|
static class |
SimpleUrlPattern.Builder |
UrlPattern.Type
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
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–2024. All rights reserved.