Package io.micronaut.http
Interface MutableHttpParameters
- All Superinterfaces:
ConversionServiceAware,ConversionServiceProvider,ConvertibleMultiValues<String>,ConvertibleValues<List<String>>,HttpParameters,Iterable<Map.Entry<String,,List<String>>> ValueResolver<CharSequence>
- All Known Implementing Classes:
NettyHttpParameters,SimpleHttpParameters
Mutable version of
HttpParameters which allows adding new parameters.- Since:
- 1.0
- Author:
- Vladimir Orany
-
Field Summary
Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues
EMPTY -
Method Summary
Modifier and TypeMethodDescriptiondefault MutableHttpParametersadd(CharSequence name, CharSequence value) Adds a new http parameter.add(CharSequence name, List<CharSequence> values) Adds a new http parameter.Methods inherited from interface io.micronaut.core.convert.ConversionServiceAware
setConversionServiceMethods inherited from interface io.micronaut.core.convert.value.ConvertibleMultiValues
forEach, forEachValue, get, getAll, getFirst, getFirst, getFirst, getFirst, getFirst, isEmpty, iteratorMethods inherited from interface io.micronaut.core.convert.value.ConvertibleValues
asMap, asMap, asProperties, contains, getConversionService, getValue, getValueType, names, subMap, subMap, subMap, valuesMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface io.micronaut.core.value.ValueResolver
get, get, get, get
-
Method Details
-
add
Adds a new http parameter.- Parameters:
name- the name of the parametervalue- the value of the parameter- Returns:
- self
-
add
Adds a new http parameter.- Parameters:
name- the name of the parametervalues- the values of the parameter- Returns:
- self
-