|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.AbstractQueryStringProcessor
public abstract class AbstractQueryStringProcessor
Abstract class AbstractQueryStringProcessor processes the query string in a URL.
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)
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
AbstractQueryStringProcessor()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public AbstractQueryStringProcessor()
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |