@Internal public class NettyHttpParameters extends Object implements MutableHttpParameters
MutableHttpParameters for Netty.EMPTY| Constructor and Description |
|---|
NettyHttpParameters(Map<String,List<String>> parameters,
ConversionService conversionService) |
| Modifier and Type | Method and Description |
|---|---|
MutableHttpParameters |
add(CharSequence name,
List<CharSequence> values)
Adds a new http parameter.
|
String |
get(CharSequence name)
Get a value without applying any conversion.
|
<T> Optional<T> |
get(CharSequence name,
ArgumentConversionContext<T> conversionContext)
Resolve the given property for the given name.
|
List<String> |
getAll(CharSequence name)
Get all the values for the given name without applying conversion.
|
Set<String> |
names() |
Collection<List<String>> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddempty, forEach, forEachValue, getFirst, getFirst, getFirst, getFirst, isEmpty, iterator, ofasMap, asMap, asProperties, contains, getValueType, of, subMap, subMap, subMapget, get, getforEach, spliteratorpublic NettyHttpParameters(Map<String,List<String>> parameters, ConversionService conversionService)
parameters - The parametersconversionService - The conversion servicepublic Set<String> names()
names in interface ConvertibleValues<List<String>>public Collection<List<String>> values()
values in interface ConvertibleValues<List<String>>public List<String> getAll(CharSequence name)
ConvertibleMultiValuesgetAll in interface ConvertibleMultiValues<String>name - The header namepublic String get(CharSequence name)
ConvertibleMultiValuesget in interface ConvertibleMultiValues<String>name - The name of the valueConvertibleMultiValues.getFirst(CharSequence)public <T> Optional<T> get(CharSequence name, ArgumentConversionContext<T> conversionContext)
ValueResolverget in interface ValueResolver<CharSequence>T - The concrete typename - The nameconversionContext - The conversion contextpublic MutableHttpParameters add(CharSequence name, List<CharSequence> values)
MutableHttpParametersadd in interface MutableHttpParametersname - the name of the parametervalues - the values of the parameter