Class OutgoingHttpMetadata.Builder
- java.lang.Object
-
- io.quarkus.reactivemessaging.http.runtime.OutgoingHttpMetadata.Builder
-
- Enclosing class:
- OutgoingHttpMetadata
public static final class OutgoingHttpMetadata.Builder extends Object
OutgoingHttpMetadata buiilder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutgoingHttpMetadata.Builder
addHeader(String headerName, String headerValue)
add a HTTP headerOutgoingHttpMetadata.Builder
addPathParameter(String parameter, String value)
Add a path parameter.OutgoingHttpMetadata.Builder
addQueryParameter(String paramName, String paramValue)
add a query parameterOutgoingHttpMetadata
build()
build the metadata objectOutgoingHttpMetadata.Builder
replaceHeader(String headerName, String headerValue)
add a HTTP header.OutgoingHttpMetadata.Builder
replaceQueryParameter(String paramName, String paramValue)
add a query parameter.
-
-
-
Method Detail
-
addQueryParameter
public OutgoingHttpMetadata.Builder addQueryParameter(String paramName, String paramValue)
add a query parameter- Parameters:
paramName
- name of the query parameterparamValue
- value of the query parameter- Returns:
- this
-
replaceQueryParameter
public OutgoingHttpMetadata.Builder replaceQueryParameter(String paramName, String paramValue)
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
public OutgoingHttpMetadata.Builder addHeader(String headerName, String headerValue)
add a HTTP header- Parameters:
headerName
- name of the headerheaderValue
- value of the header- Returns:
- this
-
replaceHeader
public OutgoingHttpMetadata.Builder replaceHeader(String headerName, String headerValue)
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
public OutgoingHttpMetadata.Builder addPathParameter(String parameter, String value)
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
public OutgoingHttpMetadata build()
build the metadata object- Returns:
- metadata
-
-