Class OutgoingHttpMetadata.Builder
java.lang.Object
io.quarkus.reactivemessaging.http.runtime.OutgoingHttpMetadata.Builder
- Enclosing class:
- OutgoingHttpMetadata
OutgoingHttpMetadata buiilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd a HTTP headeraddPathParameter(String parameter, String value) Add a path parameter.addQueryParameter(String paramName, String paramValue) add a query parameterbuild()build the metadata objectreplaceHeader(String headerName, String headerValue) add a HTTP header.replaceQueryParameter(String paramName, String paramValue) add a query parameter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addQueryParameter
add a query parameter- Parameters:
paramName- name of the query parameterparamValue- value of the query parameter- Returns:
- this
-
replaceQueryParameter
add a query parameter. If there is a previous parameter with the same name, it will be removed- Parameters:
paramName- name of the query parameterparamValue- value of the query parameter- Returns:
- this
-
addHeader
add a HTTP header- Parameters:
headerName- name of the headerheaderValue- value of the header- Returns:
- this
-
replaceHeader
add a HTTP header. If there is a previous header with the same name, it will be removed- Parameters:
headerName- name of the headerheaderValue- value of the header- Returns:
- this
-
addPathParameter
Add a path parameter. To use parameters, it is needed to add a placeholder in the URL of the connector in the form of {parameterName}- Parameters:
parameter- path parameter name, should correspond to a placeholder like {parameter} in the URLvalue- path parameter value- Returns:
- this
-
build
build the metadata object- Returns:
- metadata
-