| de.anomic.server.serverObjects
All known Subclasses: de.anomic.server.servletProperties,
serverObjects | public class serverObjects extends HashMap implements Cloneable(Code) | | |
Method Summary | |
public Object | clone() | public Object | get(String key, Object dflt) | public String | get(String key, String dflt) | public String[] | getAll(String keyMapper) | public int | getInt(String key, int dflt) | public long | getLong(String key, long dflt) | public long | inc(String key) | public String | put(String key, String value) Add a key-value pair of Objects to the map.
Parameters: key - This method will do nothing if the key is null . Parameters: value - The value that should be mapped to the key.If value is null , then the element at key is removed from the map. | public String | put(String key, byte[] value) Add byte array to the map, value is kept as it is.
Parameters: key - key name as String. Parameters: value - mapped value as a byte array. | public double | put(String key, double value) Add an unformatted String representation of a double/float value
to the map.
Parameters: key - key name as String. Parameters: value - value as double/float. | public long | put(String key, long value) | public String | put(String key, java.util.Date value) | public String | put(String key, serverDate value) | public String | put(String key, InetAddress value) | public void | putAll(serverObjects add) | public String | putHTML(String key, String value) Add a String to the map. | public String | putHTML(String key, String value, boolean forXML) Like
serverObjects.putHTML(String,String) but takes an extra argument defining, if the returned
String should be used in normal HTML: false . | public String | putNum(String key, long value) Add a byte/long/integer to the map. | public String | putNum(String key, double value) Variant for double/float types. | public String | putNum(String key, String value) Variant for string encoded numbers. | public String | putWiki(String key, String wikiCode) | public String | putWiki(String key, byte[] wikiCode) | public String | putWiki(String key, String wikiCode, String publicAddress) | public String | putWiki(String key, byte[] wikiCode, String publicAddress) | public void | setLocalized(boolean loc) Defines the localization state of this object. | public void | store(File f) |
serverObjects | public serverObjects()(Code) | | |
serverObjects | public serverObjects(int initialCapacity)(Code) | | |
put | public String put(String key, String value)(Code) | | Add a key-value pair of Objects to the map.
Parameters: key - This method will do nothing if the key is null . Parameters: value - The value that should be mapped to the key.If value is null , then the element at key is removed from the map. The value that was added to the map. See Also: java.util.Hashtable.put(KV) |
put | public String put(String key, byte[] value)(Code) | | Add byte array to the map, value is kept as it is.
Parameters: key - key name as String. Parameters: value - mapped value as a byte array. the previous value as String. |
put | public double put(String key, double value)(Code) | | Add an unformatted String representation of a double/float value
to the map.
Parameters: key - key name as String. Parameters: value - value as double/float. value as it was added to the map or NaN if an error occured. |
putHTML | public String putHTML(String key, String value)(Code) | | Add a String to the map. The content of the String is escaped to be usable in HTML output.
Parameters: key - key name as String. Parameters: value - a String that will be reencoded for HTML output. the modified String that was added to the map. See Also: htmlTools.encodeUnicode2html(Stringboolean) |
putHTML | public String putHTML(String key, String value, boolean forXML)(Code) | | Like
serverObjects.putHTML(String,String) but takes an extra argument defining, if the returned
String should be used in normal HTML: false .
If forXML is true , then only the characters & " < > will be
replaced in the returned String.
|
putNum | public String putNum(String key, long value)(Code) | | Add a byte/long/integer to the map. The number will be encoded into a String using
a localized format specified by
yFormatter and
serverObjects.setLocalized(boolean) .
Parameters: key - key name as String. Parameters: value - integer type value to be added to the map in its formatted String representation. the String value added to the map. |
setLocalized | public void setLocalized(boolean loc)(Code) | | Defines the localization state of this object.
Currently it is used for numbers added with the putNum() methods only.
Parameters: loc - if true store numbers in a localized format, otherwiseuse a default english locale without grouping. See Also: yFormatter.setLocale(String) See Also: |
|
|