Safeurl is domain for ringtone download .available for sale
com.google.common.html.types
Class SafeUrl
- java.lang.Object
- com.google.common.html.types.SafeUrl
@Immutable @JsType public final class SafeUrl extends ObjectA string that is safe to use in URL context in DOM APIs and HTML documents.A SafeUrl is a string-like object that carries the security type contract that its value as a string will not cause untrusted script execution when evaluated as a hyperlink URL in a browser.Values of this type are guaranteed to be safe to use in URL/hyperlink contexts, such as, assignment to URL-valued DOM properties, or interpolation into a HTML template in URL context (e.g., inside a href attribute), in the sense that the use will not result in a Cross-Site-Scripting vulnerability.Note that this type’s contract does not imply any guarantees regarding the resource the URL refers to. In particular, SafeUrls are not safe to use in a context where the referred-to resource is interpreted as trusted code, e.g., as the src of a script tag.
- Field SummaryFieldsModifier and TypeField and Description
static SafeUrl
INNOCUOUS
The SafeUrl generated bySafeUrls.sanitize(String)
(orportable.builders.SafeUrls
) when passed an unsafe URL.static String
INNOCUOUS_STRING
The innocuous string generated bySafeUrls.sanitize(String)
(orportable.builders.SafeUrls
) when passed an unsafe URL. - Method SummaryAll MethodsInstance MethodsConcrete MethodsModifier and TypeMethod and Description
boolean
equals(Object other)
String
getSafeUrlString()
Returns this value’s underlying string.int
hashCode()
String
toString()
Returns a debug representation of this value’s underlying string, NOT the string representation of the URL.
- Field SummaryFieldsModifier and TypeField and Description
- Field Detail
- INNOCUOUS_STRINGpublic static final String INNOCUOUS_STRINGThe innocuous string generated by
SafeUrls.sanitize(String)
(orportable.builders.SafeUrls
) when passed an unsafe URL. about:invalid is registered in http://www.w3.org/TR/css3-values/#about-invalid. http://tools.ietf.org/html/rfc6694#section-2.1 permits about URLs to contain a fragment, which is not to be considered when determining if an about URL is well-known.See Also:Constant Field Values
- INNOCUOUSpublic static final SafeUrl INNOCUOUSThe SafeUrl generated by
SafeUrls.sanitize(String)
(orportable.builders.SafeUrls
) when passed an unsafe URL. WrapsINNOCUOUS_STRING
.
- INNOCUOUS_STRINGpublic static final String INNOCUOUS_STRINGThe innocuous string generated by
- Method Detail
- toStringpublic String toString()Returns a debug representation of this value’s underlying string, NOT the string representation of the URL.Having
toString()
return a debug representation is intentional. This type has a GWT-compiled JavaScript version; JavaScript has no static typing and a distinct method method name provides a modicum of type-safety.Overrides:toString
in classObject
See Also:getSafeUrlString()
- getSafeUrlStringpublic String getSafeUrlString()Returns this value’s underlying string. See class documentation for what guarantees exist on the returned string.
- toStringpublic String toString()Returns a debug representation of this value’s underlying string, NOT the string representation of the URL.Having
- Field Detail
One response to “SAFE URL”
Hi, this is a comment.
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from Gravatar.