|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.safehtml.shared.SafeUriHostedModeUtils
public class SafeUriHostedModeUtils
SafeUri utilities whose implementation differs between Development and Production Mode.
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.
Field Summary | |
---|---|
static java.lang.String |
FORCE_CHECK_VALID_URI
Name 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_UCSCHAR
All valid Web Addresses discrete characters, i.e. |
Constructor Summary | |
---|---|
SafeUriHostedModeUtils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String HREF_DISCRETE_UCSCHAR
public static final java.lang.String FORCE_CHECK_VALID_URI
Constructor Detail |
---|
public SafeUriHostedModeUtils()
Method Detail |
---|
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.
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |