- encode
Encodes the URL. In client code, this method delegates to URL#encode(String) and
then unescapes brac
- fromString
Returns a SafeUri obtained by sanitizing the provided string. The input string
is sanitized using #s
- fromTrustedString
Returns a SafeUri constructed from a trusted string, i.e., without sanitizing
the string. No checks
- extractScheme
Extracts the scheme of a URI.
- encodeAllowEscapes
Encodes the URL, preserving existing %-escapes.
- fromSafeConstant
Returns a SafeUri constructed from a value that is fully under the control of
the program, e.g., a c
- isSafeUri
Determines if a String is safe to use as the value of a URI-valued HTML
attribute such as src or hre
- unsafeCastFromUntrustedString
Returns a SafeUri constructed from an untrusted string but without sanitizing
it.Despite this method