|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.google.gwt.safecss.shared.SafeStylesHostedModeUtils
public class SafeStylesHostedModeUtils
SafeStyles 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_STYLES
Name of system property that if set, enables checks in server-side code (even if assertions are disabled). |
| Constructor Summary | |
|---|---|
SafeStylesHostedModeUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
isValidStyleName(java.lang.String name)
Check if the specified style property name is valid. |
static java.lang.String |
isValidStyleValue(java.lang.String value)
Check if the specified style property value is valid. |
static void |
maybeCheckValidStyleName(java.lang.String name)
Checks if the provided string is a valid style property name. |
static void |
maybeCheckValidStyleValue(java.lang.String value)
Checks if the provided string is a valid style property value. |
static void |
setForceCheckValidStyle(boolean check)
Sets a global flag that controls whether or not maybeCheckValidStyleName(String) and
maybeCheckValidStyleValue(String) should perform their checks in a
server-side environment. |
(package private) static void |
setForceCheckValidStyleFromProperty()
Sets a global flag that controls whether or not maybeCheckValidStyleName(String) and
maybeCheckValidStyleValue(String) should perform their checks in a
server-side environment from the value of the
"com.google.gwt.safecss.ForceCheckValidStyles" property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FORCE_CHECK_VALID_STYLES
| Constructor Detail |
|---|
public SafeStylesHostedModeUtils()
| Method Detail |
|---|
public static java.lang.String isValidStyleName(java.lang.String name)
NOTE: This method does NOT guarantee the safety of a style name. It looks for common errors, but does not check for every possible error. It is intended to help validate a string that the user has already asserted is safe.
name - the name to check
public static java.lang.String isValidStyleValue(java.lang.String value)
NOTE: This method does NOT guarantee the safety of a style value. It looks for common errors, but does not check for every possible error. It is intended to help validate a string that the user has already asserted is safe.
value - the value to check
public static void maybeCheckValidStyleName(java.lang.String name)
name - the style namepublic static void maybeCheckValidStyleValue(java.lang.String value)
value - the style valuepublic static void setForceCheckValidStyle(boolean check)
maybeCheckValidStyleName(String) and
maybeCheckValidStyleValue(String) should perform their checks in a
server-side environment.
check - if true, perform server-side checks.static void setForceCheckValidStyleFromProperty()
maybeCheckValidStyleName(String) and
maybeCheckValidStyleValue(String) should perform their checks in a
server-side environment from the value of the
"com.google.gwt.safecss.ForceCheckValidStyles" property.
|
GWT 2.7.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||