Class LoggingClientBuilder
- java.lang.Object
-
- dev.aherscu.qa.testing.utils.rest.LoggingClientBuilder
-
public final class LoggingClientBuilder extends Object
Builds a logging REST client.- Author:
- aherscu
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static jakarta.ws.rs.client.Client
newClient()
Replacement forClientBuilder.newClient()
.static jakarta.ws.rs.client.Client
newClient(jakarta.ws.rs.client.Client client)
Adorns a provided client with logging.
-
-
-
Method Detail
-
newClient
public static jakarta.ws.rs.client.Client newClient()
Replacement forClientBuilder.newClient()
.- Returns:
- a client having a
LoggingRequestFilter
andLoggingResponseFilter
-
newClient
public static jakarta.ws.rs.client.Client newClient(jakarta.ws.rs.client.Client client)
Adorns a provided client with logging.- Parameters:
client
- the provided client- Returns:
- a client like the provided client plus registered
LoggingRequestFilter
,LoggingResponseFilter
,LoggingWriterInterceptor
andLoggingReaderInterceptor
-
-