IT. Expert System.

Android Reference

UrlQuerySanitizer.IllegalCharacterValueSanitizer


android.net

Class UrlQuerySanitizer.IllegalCharacterValueSanitizer

    • Field Detail

      • OTHER_WHITESPACE_OK

        public static final int OTHER_WHITESPACE_OK
        Allow whitespace characters other than space. The other whitespace characters are '\t' '\f' '\n' '\r' and '\0x000b' (vertical tab)
        See Also:
        Constant Field Values
      • NON_7_BIT_ASCII_OK

        public static final int NON_7_BIT_ASCII_OK
        Allow characters with character codes 128 to 255.
        See Also:
        Constant Field Values
      • DQUOTE_OK

        public static final int DQUOTE_OK
        Allow double quote characters. ('"')
        See Also:
        Constant Field Values
      • SQUOTE_OK

        public static final int SQUOTE_OK
        Allow single quote characters. ('\'')
        See Also:
        Constant Field Values
      • GT_OK

        public static final int GT_OK
        Allow greater-than characters. ('>')
        See Also:
        Constant Field Values
      • PCT_OK

        public static final int PCT_OK
        Allow percent-sign characters ('%')
        See Also:
        Constant Field Values
      • SCRIPT_URL_OK

        public static final int SCRIPT_URL_OK
        Allow text to start with a script URL such as "javascript:" or "vbscript:"
        See Also:
        Constant Field Values
      • ALL_WHITESPACE_OK

        public static final int ALL_WHITESPACE_OK
        Mask with both regular space and other whitespace OK
        See Also:
        Constant Field Values
      • ALL_ILLEGAL

        public static final int ALL_ILLEGAL
        • Deny all special characters.
        • Deny script URLs.
        See Also:
        Constant Field Values
      • ALL_BUT_NUL_LEGAL

        public static final int ALL_BUT_NUL_LEGAL
        • Allow all special characters except Nul. ('\0').
        • Allow script URLs.
        See Also:
        Constant Field Values
      • ALL_BUT_WHITESPACE_LEGAL

        public static final int ALL_BUT_WHITESPACE_LEGAL
        • Allow all special characters except for:
          • whitespace characters
          • Nul ('\0')
        • Allow script URLs.
        See Also:
        Constant Field Values
      • URL_LEGAL

        public static final int URL_LEGAL
        • Allow characters used by encoded URLs.
        • Deny script URLs.
        See Also:
        Constant Field Values
      • URL_AND_SPACE_LEGAL

        public static final int URL_AND_SPACE_LEGAL
        • Allow characters used by encoded URLs.
        • Allow spaces.
        • Deny script URLs.
        See Also:
        Constant Field Values
      • AMP_LEGAL

        public static final int AMP_LEGAL
        • Allow ampersand.
        • Deny script URLs.
        See Also:
        Constant Field Values
      • AMP_AND_SPACE_LEGAL

        public static final int AMP_AND_SPACE_LEGAL
        • Allow ampersand.
        • Allow space.
        • Deny script URLs.
        See Also:
        Constant Field Values
      • SPACE_LEGAL

        public static final int SPACE_LEGAL
        • Allow space.
        • Deny script URLs.
        See Also:
        Constant Field Values
      • ALL_BUT_NUL_AND_ANGLE_BRACKETS_LEGAL

        public static final int ALL_BUT_NUL_AND_ANGLE_BRACKETS_LEGAL
        • Allow all but.
          • Nul ('\0')
          • Angle brackets ('<', '>')
        • Deny script URLs.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UrlQuerySanitizer.IllegalCharacterValueSanitizer

        public UrlQuerySanitizer.IllegalCharacterValueSanitizer(int flags)
        Construct a sanitizer. The parameters set the behavior of the sanitizer.
        Parameters:
        flags - some combination of the XXX_OK flags.
    • Method Detail

      • sanitize

        public String sanitize(String value)
        Sanitize a value.
        1. If script URLs are not OK, the will be removed.
        2. If neither spaces nor other white space is OK, then white space will be trimmed from the beginning and end of the URL. (Just the actual white space characters are trimmed, not other control codes.)
        3. Illegal characters will be replaced with either ' ' or '_', depending on whether a space is itself a legal character.
        Specified by:
        sanitize in interface UrlQuerySanitizer.ValueSanitizer
        Parameters:
        value -
        Returns:
        the sanitized value


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 285 / 158693000. Delta: 0.04729 с