Package com.sap.cds.services.request
Interface ModifiableParameterInfo
- All Superinterfaces:
ParameterInfo
Interface to modify the values of the
ParameterInfo used in a RequestContext.-
Method Summary
Modifier and TypeMethodDescriptionsetCorrelationId(String correlationId) Sets the correlation ID for the request.Sets the value of the header with the given identifier.setHeaders(Map<String, String> headers) Sets all the header values.Sets theLocaleof the request.setQueryParameter(String key, String value) Sets the value of the query parameter with the given key.setQueryParameters(Map<String, String> queryParamters) Sets all the query parameters.setValidAt(Instant validAt) Sets the "valid-at" time stamp for the request.setValidFrom(Instant validFrom) Sets the "valid-from" time stamp for the request.setValidTo(Instant validTo) Sets the "valid-to" time stamp for the request.Methods inherited from interface com.sap.cds.services.request.ParameterInfo
copy, getCorrelationId, getHeader, getHeaders, getLocale, getQueryParameter, getQueryParams, getValidFrom, getValidTo
-
Method Details
-
setHeader
Sets the value of the header with the given identifier.- Parameters:
id- the header identifier.value- the value of the header.- Returns:
- the same
ModifiableParameterInfoinstance
-
setHeaders
Sets all the header values.- Parameters:
headers- the headers.- Returns:
- the same
ModifiableParameterInfoinstance
-
setQueryParameter
Sets the value of the query parameter with the given key.- Parameters:
key- the query parameter key.value- the value of the query parameter.- Returns:
- the same
ModifiableParameterInfoinstance
-
setQueryParameters
Sets all the query parameters.- Parameters:
queryParamters- the map of query parameters.- Returns:
- the same
ModifiableParameterInfoinstance
-
setLocale
Sets theLocaleof the request.- Parameters:
locale- the preferredLocaleset by the request.- Returns:
- the same
ModifiableParameterInfoinstance
-
setValidFrom
Sets the "valid-from" time stamp for the request.- Parameters:
validFrom- theInstantfor valid from time stamp.- Returns:
- the same
ModifiableParameterInfoinstance
-
setValidTo
Sets the "valid-to" time stamp for the request.- Parameters:
validTo- theInstantfor valid to time stamp.- Returns:
- the same
ModifiableParameterInfoinstance
-
setValidAt
Sets the "valid-at" time stamp for the request. This is a utility method, which sets corresponding values onsetValidFrom(Instant)andsetValidTo(Instant)- Parameters:
validAt- theInstantfor valid at time stamp.- Returns:
- the same
ModifiableParameterInfoinstance
-
setCorrelationId
Sets the correlation ID for the request.- Parameters:
correlationId- the correlation ID.- Returns:
- the same
ModifiableParameterInfoinstance
-