Class LoggingClient
java.lang.Object
com.linecorp.armeria.common.util.AbstractUnwrappable<Client<T_I,T_O>>
com.linecorp.armeria.client.DecoratingClient<I,O,I,O>
com.linecorp.armeria.client.SimpleDecoratingClient<I,O>
com.linecorp.armeria.client.logging.LoggingClient
- All Implemented Interfaces:
Client<HttpRequest,
,HttpResponse> HttpClient
,Unwrappable
-
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingClientBuilder
builder()
Returns a newly createdLoggingClientBuilder
.final HttpResponse
execute
(ClientRequestContext ctx, HttpRequest req) static Function<? super HttpClient,
LoggingClient> Returns a newHttpClient
decorator that logsRequest
s andResponse
s atLogLevel.DEBUG
for success,LogLevel.WARN
for failure.Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, toString, unwrap, unwrapAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.client.HttpClient
execute
Methods inherited from interface com.linecorp.armeria.common.util.Unwrappable
equalsIgnoreWrapper, unwrapAll
-
Method Details
-
newDecorator
Returns a newHttpClient
decorator that logsRequest
s andResponse
s atLogLevel.DEBUG
for success,LogLevel.WARN
for failure. SeeLoggingClientBuilder
for more information on the default settings. -
builder
Returns a newly createdLoggingClientBuilder
. -
execute
Description copied from interface:Client
-