URIResultParser class
Tries to parse results that are a URI of some kind.
@author Sean Owen
- Inheritance
-
- Object
- ResultParser
- URIResultParser
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isStringOfDigits(
String? value, int length) → bool -
inherited
-
matchPrefixedField(
String prefix, String rawText, String endChar, bool trim) → List< String> ? -
inherited
-
matchSinglePrefixedField(
String prefix, String rawText, String endChar, bool trim) → String? -
inherited
-
maybeWrap(
String? value) → List< String> ? -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
Result result) → URIParsedResult? -
Attempts to parse the raw Result's contents as a particular type
of information (email, URL, etc.) and return a ParsedResult encapsulating
the result of parsing.
override
-
parseNameValuePairs(
String uri) → Map< String, String> ? -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unescapeBackslash(
String escaped) → String -
inherited
-
urlDecode(
String encoded) → String -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isBasicallyValidURI(
String uri) → bool -
isPossiblyMaliciousURI(
String uri) → bool - @return true if the URI contains suspicious patterns that may suggest it intends to mislead the user about its true nature. At the moment this looks for the presence of user/password syntax in the host/authority portion of a URI which may be used in attempts to make the URI's host appear to be other than it is. Example: http://yourbank.com@phisher.com This URI connects to phisher.com but may appear to connect to yourbank.com at first glance.