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
public final class LoggingClient extends SimpleDecoratingClient<I,O> implements HttpClient
-
Method Summary
Modifier and Type Method Description static LoggingClientBuilderbuilder()Returns a newly createdLoggingClientBuilder.HttpResponseexecute(ClientRequestContext ctx, HttpRequest req)static Function<? super HttpClient,LoggingClient>newDecorator()Returns a newHttpClientdecorator that logsRequests andResponses atLogLevel.DEBUGfor success,LogLevel.WARNfor failure.Methods inherited from class com.linecorp.armeria.common.util.AbstractUnwrappable
as, toString, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.linecorp.armeria.client.HttpClient
execute
-
Method Details
-
newDecorator
Returns a newHttpClientdecorator that logsRequests andResponses atLogLevel.DEBUGfor success,LogLevel.WARNfor failure. SeeLoggingClientBuilderfor more information on the default settings. -
builder
Returns a newly createdLoggingClientBuilder. -
execute
Description copied from interface:Client
-