public abstract class AbstractQueryStringProcessor extends java.lang.Object implements StringConstants
A URL containing a query string is as follows:
scheme://domain/path?query_string
The 'processNameValue' method must be implemented to process the name-value pairs.
processNameValue(String, String)
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_NAME_VALUE_PAIR_SERIES_SEPARATOR
The default name value pair series separator.
|
static java.lang.String |
DEFAULT_NAME_VALUE_SEPARATOR
The default name value separator.
|
static java.lang.String |
DEFAULT_QUERY_STRING_SEPARATOR
The default query string separator.
|
ALPHA_CAP_CHARS, ALPHA_CHARS, ALPHA_LOW_CHARS, ALPHANUM_CHARS_STRING, ALPHANUMERIC_CHARS, BOOLEAN_FALSE_TEXT, BOOLEAN_TRUE_TEXT, DATE_FORMAT_AMPM_STR, DATE_FORMAT_RFC_822_STR, DATE_FORMAT24_STR, DEFAULT_JAVA_VERSION_STRING, DEFAULT_NULL_STR, DEFAULT_SEP_STR, EFLOAT_CHARS, EMPTY_CHARS, EMPTY_STRING, EMPTY_STRINGS, FLOAT_CHARS, HEX_ALPHA_CAP_CHARS, HEX_ALPHA_LOW_CHARS, HEX_CHARS, HEX_PREFIX, INTEGER_CHARS, INVALID_FILENAME_CHARS, MODIFIER_TEXT_ALT, MODIFIER_TEXT_CTRL, MODIFIER_TEXT_META, MODIFIER_TEXT_META_ALT, MODIFIER_TEXT_META_CTRL, NONE, QUOTE_STRING, SIGNED_EFLOAT_CHARS, SIGNED_FLOAT_CHARS, SIGNED_INT_CHARS, SMTP_ENCRYPTION_OPTIONS, SMTP_SERVER_AUTHENTICATION_NAME, SMTP_SERVER_AUTHENTICATION_TEXT, SPACE_STRING, SSL, SSL_KEY_STORE_PROP_KEY, SSL_KEY_STORE_TYPE_PROP_KEY, SSL_TRUST_STORE_PROP_KEY, SSL_TRUST_STORE_TYPE_PROP_KEY, STARTTLS, TLS, TOD_CHARS, UNKNOWN_STRING, US_ASCII, WHITE_SPACE_CHARS, WILDCARD_ALL_CHAR, WILDCARD_CHARS, WILDCARD_SINGLE_CHAR
Constructor and Description |
---|
AbstractQueryStringProcessor() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNameValuePairSeriesSeparator()
Get the name value pair series separator.
|
java.lang.String |
getNameValueSeparator()
Get the name value separator.
|
java.lang.String |
getParamsStartText()
Get the query string separator.
|
boolean |
isDecodeFlag()
Determines if the code flag is set.
|
abstract boolean |
processNameValue(java.lang.String name,
java.lang.String value)
Process the name value.
|
void |
processQueryString(java.lang.String urlText)
Process the query string in the URL text.
|
void |
processQueryString(java.net.URL url)
Process the query string in the URL.
|
void |
setDecodeFlag(boolean decodeFlag)
Set the decode flag.
|
void |
setNameValuePairSeriesSeparator(java.lang.String nameValuePairSeriesSeparator)
Set the name value pair series separator.
|
void |
setNameValueSeparator(java.lang.String nameValueSeparator)
Set the name value separator.
|
void |
setParamsStartText(java.lang.String queryStringSeparator)
Set the query string separator.
|
public static final java.lang.String DEFAULT_NAME_VALUE_PAIR_SERIES_SEPARATOR
public static final java.lang.String DEFAULT_NAME_VALUE_SEPARATOR
public static final java.lang.String DEFAULT_QUERY_STRING_SEPARATOR
public java.lang.String getNameValuePairSeriesSeparator()
public java.lang.String getNameValueSeparator()
public java.lang.String getParamsStartText()
public boolean isDecodeFlag()
public abstract boolean processNameValue(java.lang.String name, java.lang.String value)
name
- the name.value
- the value.public void processQueryString(java.lang.String urlText)
urlText
- the URL text.public void processQueryString(java.net.URL url)
url
- the URL.public void setDecodeFlag(boolean decodeFlag)
decodeFlag
- true if decoding, false otherwise.public void setNameValuePairSeriesSeparator(java.lang.String nameValuePairSeriesSeparator)
the
- name value pair series separator.public void setNameValueSeparator(java.lang.String nameValueSeparator)
the
- name value separator.public void setParamsStartText(java.lang.String queryStringSeparator)
the
- query string separator.