Class HttpMessage.HttpMessageBuilder<T>
- java.lang.Object
-
- io.smallrye.reactive.messaging.http.HttpMessage.HttpMessageBuilder<T>
-
- Enclosing class:
- HttpMessage<T>
public static final class HttpMessage.HttpMessageBuilder<T> extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpMessage<T>
build()
static <T> HttpMessage.HttpMessageBuilder<T>
create()
HttpMessage.HttpMessageBuilder<T>
withAck(Supplier<CompletionStage<Void>> ack)
HttpMessage.HttpMessageBuilder<T>
withHeader(String key, String value)
HttpMessage.HttpMessageBuilder<T>
withHeader(String key, List<String> values)
HttpMessage.HttpMessageBuilder<T>
withHeaders(Map<String,List<String>> headers)
HttpMessage.HttpMessageBuilder<T>
withMethod(String method)
HttpMessage.HttpMessageBuilder<T>
withPayload(T payload)
HttpMessage.HttpMessageBuilder<T>
withQueryParameter(String key, String value)
HttpMessage.HttpMessageBuilder<T>
withQueryParameter(String key, List<String> values)
HttpMessage.HttpMessageBuilder<T>
withUrl(String url)
-
-
-
Method Detail
-
create
public static <T> HttpMessage.HttpMessageBuilder<T> create()
-
withPayload
public HttpMessage.HttpMessageBuilder<T> withPayload(T payload)
-
withMethod
public HttpMessage.HttpMessageBuilder<T> withMethod(String method)
-
withHeaders
public HttpMessage.HttpMessageBuilder<T> withHeaders(Map<String,List<String>> headers)
-
withHeader
public HttpMessage.HttpMessageBuilder<T> withHeader(String key, String value)
-
withHeader
public HttpMessage.HttpMessageBuilder<T> withHeader(String key, List<String> values)
-
withQueryParameter
public HttpMessage.HttpMessageBuilder<T> withQueryParameter(String key, String value)
-
withQueryParameter
public HttpMessage.HttpMessageBuilder<T> withQueryParameter(String key, List<String> values)
-
withUrl
public HttpMessage.HttpMessageBuilder<T> withUrl(String url)
-
withAck
public HttpMessage.HttpMessageBuilder<T> withAck(Supplier<CompletionStage<Void>> ack)
-
build
public HttpMessage<T> build()
-
-