/** * This will add the given name and value to the parameters map. If any previous value of the * given name has been inserted into the map then this will overwrite that value. This is used to * ensure that the string value is inserted to the map. * * @param name this is the name of the value to be inserted * @param value this is the value of a that is to be inserted */ private void insert(ParseBuffer name, ParseBuffer value) { map.put(name.toString(), value.toString()); }
/** * This will add a named parameter to the content type header. If a parameter of the specified * name has already been added to the header then that value will be replaced by the new value * given. Parameters such as the <code>boundary</code> as well as other common parameters can be * set with this method. * * @param name this is the name of the parameter to be added * @param value this is the value to associate with the name */ public void setParameter(String name, String value) { map.put(name, value); }