src/org/kocakosm/pitaya/net/MediaType.java
public MediaType withParameters(Map<String, String> parameters)
	{
		Map<String, String> params = new LinkedHashMap<String, String>();
		params.putAll(this.parameters);
		params.putAll(normalizeParameters(parameters));
		return new MediaType(type, subtype, params);
	}
public MediaType withParameters(Map<String, String> parameters)
	{
		Map<String, String> params = new LinkedHashMap<String, String>();
		params.putAll(this.parameters);
		params.putAll(normalizeParameters(parameters));
		return new MediaType(type, subtype, params);
	}
public MediaType withParameters ( Map < String , String > parameters ) { Map < String , String > params = new LinkedHashMap < String , String > ( ) ; params . putAll ( this . parameters ) ; params . putAll ( normalizeParameters ( parameters ) ) ; return new MediaType ( type , subtype , params ) ; }
Returns a new {@code MediaType} instance having the same type and
subtype as this one but whose parameters is the "union" of this
instances' parameters with the given ones (the given parameters have
precedence over this instance's parameters).

@param parameters the parameters.

@return the created {@code MediaType}.

@throws NullPointerException if {@code parameters} is {@code null} or
if it contains the {@code null} key or a {@code null} value.
@throws IllegalArgumentException if {@code parameters} contains an
invalid attribute.
Returns a new { @code MediaType } instance having the same type and subtype as this one but whose parameters is the union of this instances parameters with the given ones ( the given parameters have precedence over this instance s parameters ) .