public static class UrlQueryFilter.ValueFilter extends Object
1, the character is
valid. If the value is 0, the character is invalid and will be filtered out.| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
ALLOW_8BIT_ASCII |
Indicates a filtering policy flag, which allows 8-bit ASCII characters (character code 128-255).
|
static int |
ALLOW_ALL |
Indicates a filtering policy flag, which allows all characters.
|
static int |
ALLOW_ALL_BUT_NUL |
Indicates a filtering policy flag, which allows any characters except
\0. |
static int |
ALLOW_AMP |
Indicates a filtering policy flag, which allows character
&. |
static int |
ALLOW_ENCODED_URL |
Indicates a filtering policy flag, which allows all possible characters in an encoded URL.
|
static int |
ALLOW_ESCHAR |
Indicates a filtering policy flag, which allows special escape characters
\t, \f, \n,
\r, and \0x000b. |
static int |
ALLOW_NOTHING |
Indicates a filtering policy flag, which regards all special characters as invalid characters.
|
static int |
ALLOW_NUL |
Indicates a filtering policy flag, which allows
\0 characters. |
static int |
ALLOW_PCT |
Indicates a filtering policy flag, which allows character
%. |
static int |
ALLOW_SINGLE_QUOTE |
Indicates a filtering policy flag, which allows character
'. |
static int |
ALLOW_SPACE |
Indicates a filtering policy flag, which allows spaces.
|
| 构造器 | 说明 |
|---|---|
ValueFilter(int flags) |
A constructor used to create a
ValueFilter instance. |
public static final int ALLOW_8BIT_ASCII
public static final int ALLOW_ALL
0x7ff.public static final int ALLOW_ALL_BUT_NUL
\0.public static final int ALLOW_AMP
&.public static final int ALLOW_ENCODED_URL
public static final int ALLOW_ESCHAR
\t, \f, \n,
\r, and \0x000b. The value of this flag is 1<<2.public static final int ALLOW_NOTHING
0.public static final int ALLOW_NUL
\0 characters. The value of this flag is
1<<1.public static final int ALLOW_PCT
%.public static final int ALLOW_SINGLE_QUOTE
'.public static final int ALLOW_SPACE
1.