Package com.linecorp.armeria.common
Interface PathAndQueryParamSetters
- All Known Subinterfaces:
HttpRequestSetters
,RequestPreparationSetters
- All Known Implementing Classes:
AbstractHttpRequestBuilder
,BlockingWebClientRequestPreparation
,FutureTransformingRequestPreparation
,HttpRequestBuilder
,RestClientPreparation
,TransformingRequestPreparation
,WebClientRequestPreparation
Provides the setters for building a path and a query string.
-
Method Summary
Modifier and TypeMethodDescriptionDisables path parameters substitution.Sets a path param for this message.pathParams
(Map<String, ?> pathParams) Sets multiple path params for this message.queryParam
(String name, Object value) Adds a query param for this message.queryParams
(Iterable<? extends Map.Entry<? extends String, String>> queryParams) Adds multiple query params for this message.
-
Method Details
-
pathParam
Sets a path param for this message. -
pathParams
Sets multiple path params for this message. -
disablePathParams
PathAndQueryParamSetters disablePathParams()Disables path parameters substitution. If path parameter is not disabled and a parameter is specified using{}
or:
, value is not found, anIllegalStateException
is thrown. -
queryParam
Adds a query param for this message. -
queryParams
PathAndQueryParamSetters queryParams(Iterable<? extends Map.Entry<? extends String, String>> queryParams) Adds multiple query params for this message.
-