PhoenixmlDb.XQuery
UriRule
Defines a scoped access rule for resource URIs.
#UriRule
Namespace: PhoenixmlDb.XQuery.Security
Defines a scoped access rule for resource URIs.
#Properties
| Name | Description |
|---|---|
Access
|
Which resource operations this rule allows. |
Host
|
Optional host pattern. Null matches any host. Supports leading wildcard (e.g. "*.example.com"). |
PathPrefix
|
Optional path prefix. Null matches any path. Must start with "/" if specified. It matches whole path segments (/data admits /data/x but not /database), compared case-sensitively except for file: paths on a case-insensitive file system (Windows, macOS). A file: prefix is compared with the canonical path, symbolic links resolved.
|
Port
|
Optional port. Null means the scheme's default port when UriRule.Host is set (allowing example.com no longer allows example.com:8080), and any port when it is not. UriRule.AnyPort allows every port on the host.
|
Scheme
|
URI scheme to match (e.g. "https", "file", "s3"). Use "*" for any scheme. |
#Methods
#Matches(Uri,PhoenixmlDb.XQuery.Security.ResourceAccessKind)
Tests whether this rule matches the given URI and access kind.
#Fields
| Name | Description |
|---|---|
AnyPort
|
A UriRule.Port value that allows every port. |