Package ch.bailu.gtk.glib
Interface UriFlags
public interface UriFlags
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
When parsing a URI, this indicates that `%`-encoded
characters in the userinfo, path, query, and fragment fields
should not be decoded.static final int
Same as %G_URI_FLAGS_ENCODED, for the
fragment only.static final int
Same as %G_URI_FLAGS_ENCODED, for the path only.static final int
Same as %G_URI_FLAGS_ENCODED, for the query
field only.static final int
The userinfo may contain additional
authentication-related parameters, which will be separated from
the username and/or password by `;`.static final int
The userinfo field may contain a password,
which will be separated from the username by `:`.static final int
The host component should not be assumed to be a
DNS hostname or IP address (for example, for `smb` URIs with NetBIOS
hostnames).static final int
No flags set.static final int
Parse the URI more relaxedly than the
[RFC 3986](https://tools.ietf.org/html/rfc3986) grammar specifies,
fixing up or ignoring common mistakes in URIs coming from external
sources.static final int
A scheme-based normalization will be applied.
-
Field Details
-
NONE
static final int NONENo flags set.- See Also:
-
PARSE_RELAXED
static final int PARSE_RELAXEDParse the URI more relaxedly than the
[RFC 3986](https://tools.ietf.org/html/rfc3986) grammar specifies,
fixing up or ignoring common mistakes in URIs coming from external
sources. This is also needed for some obscure URI schemes where `;`
separates the host from the path. Don’t use this flag unless you need to.- See Also:
-
HAS_PASSWORD
static final int HAS_PASSWORDThe userinfo field may contain a password,
which will be separated from the username by `:`.- See Also:
-
HAS_AUTH_PARAMS
static final int HAS_AUTH_PARAMSThe userinfo may contain additional
authentication-related parameters, which will be separated from
the username and/or password by `;`.- See Also:
-
ENCODED
static final int ENCODEDWhen parsing a URI, this indicates that `%`-encoded
characters in the userinfo, path, query, and fragment fields
should not be decoded. (And likewise the host field if
%G_URI_FLAGS_NON_DNS is also set.) When building a URI, it indicates
that you have already `%`-encoded the components, and so #GUri
should not do any encoding itself.- See Also:
-
NON_DNS
static final int NON_DNSThe host component should not be assumed to be a
DNS hostname or IP address (for example, for `smb` URIs with NetBIOS
hostnames).- See Also:
-
ENCODED_QUERY
static final int ENCODED_QUERYSame as %G_URI_FLAGS_ENCODED, for the query
field only.- See Also:
-
ENCODED_PATH
static final int ENCODED_PATHSame as %G_URI_FLAGS_ENCODED, for the path only.- See Also:
-
ENCODED_FRAGMENT
static final int ENCODED_FRAGMENTSame as %G_URI_FLAGS_ENCODED, for the
fragment only.- See Also:
-
SCHEME_NORMALIZE
static final int SCHEME_NORMALIZEA scheme-based normalization will be applied.
For example, when parsing an HTTP URI changing omitted path to `/` and
omitted port to `80`; and when building a URI, changing empty path to `/`
and default port `80`). This only supports a subset of known schemes. (Since: 2.68)- See Also:
-