public interface ParameterInfo
Modifier and Type | Method and Description |
---|---|
default ModifiableParameterInfo |
copy()
Creates a
ModifiableParameterInfo based on this ParameterInfo . |
static ModifiableParameterInfo |
create()
Creates a
ModifiableUserInfo based on default values of a clear ParameterInfo . |
default String |
getHeader(String id)
Returns the value of a header with the given identifier.
|
default Map<String,String> |
getHeaders()
Returns the header values as
Map . |
default Locale |
getLocale() |
default String |
getQueryParameter(String key)
Returns the value of a query parameter with the given key
|
default Stream<String> |
getQueryParameters()
Deprecated.
|
default Map<String,String> |
getQueryParams()
Returns the query parameter values as
Map . |
default Instant |
getValidFrom() |
default Instant |
getValidTo() |
default String getHeader(String id)
id
has several values, the result contains the values comma-separated.id
- the header identifierdefault Map<String,String> getHeaders()
Map
.
Note that this might be an expensive operation.Map
.default String getQueryParameter(String key)
key
- the query parameter keydefault Map<String,String> getQueryParams()
Map
.
Note that this might be an expensive operation.Map
.@Deprecated default Stream<String> getQueryParameters()
default Instant getValidFrom()
Instant
value of request parameter "valid-from" or constructed from Long.MIN_VALUE
if not available or parsing failed.default Instant getValidTo()
Instant
value of request parameter "valid-to" or constructed from Long.MAX_VALUE
if not available or parsing failed.default ModifiableParameterInfo copy()
ModifiableParameterInfo
based on this ParameterInfo
.ModifiableParameterInfo
instance.static ModifiableParameterInfo create()
ModifiableUserInfo
based on default values of a clear ParameterInfo
.ModifiableUserInfo
instance.Copyright © 2021. All rights reserved.