public interface ModifiableParameterInfo extends ParameterInfo
ParameterInfo
used in a RequestContext
.Modifier and Type | Method and Description |
---|---|
ModifiableParameterInfo |
setHeader(String id,
String value)
Sets the value of the header with the given identifier.
|
ModifiableParameterInfo |
setHeaders(Map<String,String> headers)
Sets all the header values.
|
ModifiableParameterInfo |
setLocale(Locale locale)
Sets the
Locale of the request. |
ModifiableParameterInfo |
setQueryParameter(String key,
String value)
Sets the value of the query parameter with the given key.
|
ModifiableParameterInfo |
setQueryParameters(Map<String,String> queryParamters)
Sets all the query parameters.
|
ModifiableParameterInfo |
setValidAt(Instant validAt)
Sets the "valid-at" time stamp for the request.
|
ModifiableParameterInfo |
setValidFrom(Instant validFrom)
Sets the "valid-from" time stamp for the request.
|
ModifiableParameterInfo |
setValidTo(Instant validTo)
Sets the "valid-to" time stamp for the request.
|
copy, create, getHeader, getHeaders, getLocale, getQueryParameter, getQueryParameters, getQueryParams, getValidFrom, getValidTo
ModifiableParameterInfo setHeader(String id, String value)
id
- the header identifier.value
- the value of the header.ModifiableParameterInfo
instanceModifiableParameterInfo setHeaders(Map<String,String> headers)
headers
- the headers.ModifiableParameterInfo
instanceModifiableParameterInfo setQueryParameter(String key, String value)
key
- the query parameter key.value
- the value of the query parameter.ModifiableParameterInfo
instanceModifiableParameterInfo setQueryParameters(Map<String,String> queryParamters)
queryParamters
- the map of query parameters.ModifiableParameterInfo
instanceModifiableParameterInfo setLocale(Locale locale)
Locale
of the request.locale
- the preferred Locale
set by the request.ModifiableParameterInfo
instanceModifiableParameterInfo setValidFrom(Instant validFrom)
validFrom
- the Instant
for valid from time stamp.ModifiableParameterInfo
instanceModifiableParameterInfo setValidTo(Instant validTo)
validTo
- the Instant
for valid to time stamp.ModifiableParameterInfo
instanceModifiableParameterInfo setValidAt(Instant validAt)
setValidFrom(Instant)
and setValidTo(Instant)
validAt
- the Instant
for valid at time stamp.ModifiableParameterInfo
instanceCopyright © 2021. All rights reserved.