public class SafeUriHostedModeUtils extends Object
This class has a super-source peer that provides the Production Mode implementation.
Do not use this class - it is used for implementation only, and its methods may change in the future.
Modifier and Type | Field and Description |
---|---|
static String |
FORCE_CHECK_VALID_URI
Name of system property that if set, enables checks in server-side code (even if assertions are
disabled).
|
Constructor and Description |
---|
SafeUriHostedModeUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isValidUriCharset(String uri)
Tests whether all characters in the given URI are valid Web Addresses characters.
|
static void |
maybeCheckValidUri(String uri)
Checks if the provided URI is a valid Web Address (per RFC 3987bis).
|
static void |
setForceCheckValidUri(boolean check)
Sets a global flag that controls whether or not
maybeCheckValidUri(String) should
perform its check in a server-side environment. |
static void |
setForceCheckValidUriFromProperty()
Sets a global flag that controls whether or not
maybeCheckValidUri(String) should
perform its check in a server-side environment from the value of the "com.google.gwt.safehtml.ForceCheckValidUri" property. |
public static final String FORCE_CHECK_VALID_URI
public static boolean isValidUriCharset(String uri)
public static void maybeCheckValidUri(String uri)
uri
- the URL to checkpublic static void setForceCheckValidUri(boolean check)
maybeCheckValidUri(String)
should
perform its check in a server-side environment.check
- if true, perform server-side checks.public static void setForceCheckValidUriFromProperty()
maybeCheckValidUri(String)
should
perform its check in a server-side environment from the value of the "com.google.gwt.safehtml.ForceCheckValidUri" property.Copyright © 2016. All rights reserved.