public class SafeUriHostedModeUtils
extends java.lang.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 java.lang.String | FORCE_CHECK_VALID_URIName of system property that if set, enables checks in server-side code (even if assertions are
 disabled). | 
| (package private) static java.lang.String | HREF_DISCRETE_UCSCHARAll valid Web Addresses discrete characters, i.e. | 
| Constructor and Description | 
|---|
| SafeUriHostedModeUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | isValidUriCharset(java.lang.String uri)Tests whether all characters in the given URI are valid Web Addresses characters. | 
| static void | maybeCheckValidUri(java.lang.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. | 
static final java.lang.String HREF_DISCRETE_UCSCHAR
public static final java.lang.String FORCE_CHECK_VALID_URI
public static boolean isValidUriCharset(java.lang.String uri)
public static void maybeCheckValidUri(java.lang.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.