Package com.linecorp.armeria.client
Class ClientDecorationBuilder
java.lang.Object
com.linecorp.armeria.client.ClientDecorationBuilder
Creates a new
ClientDecoration
using the builder pattern.-
Method Summary
Modifier and TypeMethodDescriptionadd
(ClientDecoration clientDecoration) Adds the specifiedClientDecoration
.add
(DecoratingHttpClientFunction decorator) Adds the specified HTTP-leveldecorator
.add
(Function<? super HttpClient, ? extends HttpClient> decorator) Adds the specified HTTP-leveldecorator
.addRpc
(DecoratingRpcClientFunction decorator) Adds the specified RPC-leveldecorator
.Adds the specified RPC-leveldecorator
.build()
Returns a newly-createdClientDecoration
based on the decorators added to this builder.clear()
Clears all HTTP-level and RPC-level decorators set so far.
-
Method Details
-
add
Adds the specifiedClientDecoration
. -
add
Adds the specified HTTP-leveldecorator
.- Parameters:
decorator
- theFunction
that transforms anHttpClient
to another
-
add
Adds the specified HTTP-leveldecorator
.- Parameters:
decorator
- theDecoratingHttpClientFunction
that intercepts an invocation
-
clear
Clears all HTTP-level and RPC-level decorators set so far. -
addRpc
Adds the specified RPC-leveldecorator
. -
addRpc
Adds the specified RPC-leveldecorator
.- Parameters:
decorator
- theDecoratingHttpClientFunction
that intercepts an invocation
-
build
Returns a newly-createdClientDecoration
based on the decorators added to this builder.
-