Interface ClientBuilderDecorator
-
public interface ClientBuilderDecoratorA decorator around the client builder.Allows users to change the
ClientBuilderand callClientBuilder.build()themselves to create theClient.
-
-
Field Summary
Fields Modifier and Type Field Description static ClientProperty<ClientBuilderDecorator>PROPERTYUse this property to register a differentClientBuilderDecoratorfor building theClient.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description jakarta.ws.rs.client.Clientfinish(jakarta.ws.rs.client.ClientBuilder builder)Build a client.
-
-
-
Field Detail
-
PROPERTY
static final ClientProperty<ClientBuilderDecorator> PROPERTY
Use this property to register a differentClientBuilderDecoratorfor building theClient.The default
ClientBuilderDecoratorsimply callsClientBuilder.build().
-
-
Method Detail
-
finish
jakarta.ws.rs.client.Client finish(jakarta.ws.rs.client.ClientBuilder builder)
Build a client.The
ClientBuilderis properly set up.However, it is even possible to return a completely different
Client, created in a custom way.- Parameters:
builder- client builder properly set up using theStandardClientPropertiesandJersey3ClientProperties.- Returns:
- client
-
-