|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.velocity.tools.generic.SafeConfig org.apache.velocity.tools.generic.LocaleConfig org.apache.velocity.tools.generic.ConversionTool org.apache.velocity.tools.generic.ValueParser org.apache.velocity.tools.view.ParameterTool org.apache.velocity.tools.view.tools.ParameterParser velosurf.web.HttpQueryTool
@Deprecated public class HttpQueryTool
(Deprecated - please use org.apache.velocity.tools.view.ParameterTool)
This class extends the tool org.apache.velocity.tools.view.tools.ParameterParser, adding a generic setter. Values that are set manually hide any previous values that are present in the query under the same key. It is meant for the query scope.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary | |
---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
extraValues
Deprecated. extra values map. |
Fields inherited from class org.apache.velocity.tools.generic.ValueParser |
---|
ALLOWSUBKEYS_KEY, READONLY_KEY |
Fields inherited from class org.apache.velocity.tools.generic.ConversionTool |
---|
DATE_FORMAT_KEY, DEFAULT_DATE_FORMAT, DEFAULT_NUMBER_FORMAT, DEFAULT_STRINGS_DELIMITER, DEFAULT_STRINGS_TRIM, NUMBER_FORMAT_KEY, STRINGS_DELIMITER_FORMAT_KEY, STRINGS_TRIM_KEY |
Fields inherited from class org.apache.velocity.tools.generic.LocaleConfig |
---|
DEFAULT_LOCALE |
Fields inherited from class org.apache.velocity.tools.generic.SafeConfig |
---|
LOCK_CONFIG_KEY, OLD_LOCK_CONFIG_KEY, SAFE_MODE_KEY |
Constructor Summary | |
---|---|
HttpQueryTool()
Deprecated. Constructor. |
Method Summary | |
---|---|
void |
clear()
Deprecated. Clear extra parameters. |
boolean |
containsKey(java.lang.Object key)
Deprecated. Check for the presence of a parameter. |
boolean |
containsValue(java.lang.Object value)
Deprecated. Check for the presence of a value. |
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
entrySet()
Deprecated. |
java.lang.Object |
get(java.lang.Object key)
Deprecated. Generic getter. |
java.lang.Object |
get(java.lang.String key)
Deprecated. Generic getter with String argument (necessary to properly overload super getter). |
java.util.Set<java.lang.String> |
getExtraKeys()
Deprecated. |
java.lang.Integer |
getInteger(java.lang.String key)
Deprecated. |
java.lang.String |
getQueryString()
Deprecated. Debugging method: returns a query string corresponding to query parameters Warning: it also includes POST parameters (so strictly speaking it's not the real query string) |
void |
init(java.lang.Object viewContext)
Deprecated. Initialize this tool. |
boolean |
isEmpty()
Deprecated. Check for the presence of parameters. |
java.util.Set |
keySet()
Deprecated. Get the set of parameter names. |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Deprecated. Generic setter. |
void |
putAll(java.util.Map map)
Deprecated. Put all key/values from a map. |
java.lang.Object |
remove(java.lang.Object key)
Deprecated. Remove a parameter (from extra values). |
int |
size()
Deprecated. Get the number of parameters. |
java.lang.String |
toString()
Deprecated. |
java.util.Collection |
values()
Deprecated. Get the collection of values |
Methods inherited from class org.apache.velocity.tools.view.ParameterTool |
---|
configure, getAll, getRequest, getSource, getValue, getValues, setRequest, setSource |
Methods inherited from class org.apache.velocity.tools.generic.ValueParser |
---|
exists, getAllowSubkeys, getBoolean, getBoolean, getBoolean, getBooleans, getDouble, getDouble, getDouble, getDoubles, getInt, getInteger, getInts, getLocale, getLocale, getLocales, getNumber, getNumber, getNumbers, getReadOnly, getString, getString, getStrings, getSubkey, getValue, hasSubkeys, setAllowSubkeys, setReadOnly |
Methods inherited from class org.apache.velocity.tools.generic.ConversionTool |
---|
getDateFormat, getNumberFormat, getStringsDelimiter, getStringsTrim, parseBoolean, parseDate, parseDate, parseDate, parseDate, parseDate, parseLocale, parseNumber, parseNumber, parseNumber, parseNumber, parseStringList, setDateFormat, setNumberFormat, setStringsDelimiter, setStringsTrim, toBoolean, toBooleans, toBooleans, toCalendar, toCalendars, toCalendars, toDate, toDates, toDates, toDouble, toDoubles, toInteger, toIntegers, toInts, toLocale, toLocales, toLocales, toNumber, toNumbers, toNumbers, toString, toStrings |
Methods inherited from class org.apache.velocity.tools.generic.LocaleConfig |
---|
getLocale, setLocale |
Methods inherited from class org.apache.velocity.tools.generic.SafeConfig |
---|
configure, isConfigLocked, isSafeMode, setLockConfig, setSafeMode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
private java.util.Map<java.lang.String,java.lang.Object> extraValues
Constructor Detail |
---|
public HttpQueryTool()
Method Detail |
---|
public void init(java.lang.Object viewContext)
init
in class org.apache.velocity.tools.view.tools.ParameterParser
viewContext
- view contextpublic java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map<java.lang.String,java.lang.Object>
get
in class org.apache.velocity.tools.generic.ValueParser
key
- key
public java.lang.Object get(java.lang.String key)
get
in class org.apache.velocity.tools.generic.ValueParser
key
- key
public java.lang.Object put(java.lang.String key, java.lang.Object value)
put
in interface java.util.Map<java.lang.String,java.lang.Object>
put
in class org.apache.velocity.tools.generic.ValueParser
key
- keyvalue
- value
public int size()
size
in interface java.util.Map<java.lang.String,java.lang.Object>
size
in class org.apache.velocity.tools.generic.ValueParser
public boolean isEmpty()
isEmpty
in interface java.util.Map<java.lang.String,java.lang.Object>
isEmpty
in class org.apache.velocity.tools.generic.ValueParser
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<java.lang.String,java.lang.Object>
containsKey
in class org.apache.velocity.tools.generic.ValueParser
key
- parameter name
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<java.lang.String,java.lang.Object>
containsValue
in class org.apache.velocity.tools.generic.ValueParser
value
- value to find
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map<java.lang.String,java.lang.Object>
remove
in class org.apache.velocity.tools.generic.ValueParser
key
- parameter name
public void putAll(java.util.Map map)
putAll
in interface java.util.Map<java.lang.String,java.lang.Object>
putAll
in class org.apache.velocity.tools.generic.ValueParser
map
- source mappublic void clear()
clear
in interface java.util.Map<java.lang.String,java.lang.Object>
clear
in class org.apache.velocity.tools.generic.ValueParser
public java.util.Set keySet()
keySet
in interface java.util.Map<java.lang.String,java.lang.Object>
keySet
in class org.apache.velocity.tools.generic.ValueParser
public java.util.Collection values()
values
in interface java.util.Map<java.lang.String,java.lang.Object>
values
in class org.apache.velocity.tools.generic.ValueParser
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
entrySet
in interface java.util.Map<java.lang.String,java.lang.Object>
entrySet
in class org.apache.velocity.tools.generic.ValueParser
public java.lang.String toString()
toString
in class org.apache.velocity.tools.generic.ValueParser
public java.util.Set<java.lang.String> getExtraKeys()
public java.lang.String getQueryString()
public java.lang.Integer getInteger(java.lang.String key)
getInteger
in class org.apache.velocity.tools.generic.ValueParser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |