@API(status=STABLE) public final class DefaultHttpLogFormatter extends Object implements HttpLogFormatter
| Constructor and Description |
|---|
DefaultHttpLogFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Correlation<HttpRequest,HttpResponse> correlation) |
String |
format(List<String> lines)
Renders an HTTP-like message into a printable string.
|
String |
format(Precorrelation<HttpRequest> precorrelation) |
List<String> |
prepare(Correlation<HttpRequest,HttpResponse> correlation)
Produces an HTTP-like response in individual lines.
|
List<String> |
prepare(Precorrelation<HttpRequest> precorrelation)
Produces an HTTP-like request in individual lines.
|
public String format(Precorrelation<HttpRequest> precorrelation) throws IOException
format in interface HttpLogFormatterIOException@API(status=EXPERIMENTAL) public List<String> prepare(Precorrelation<HttpRequest> precorrelation) throws IOException
precorrelation - the request correlationIOException - if reading body failsprepare(Correlation),
format(List),
JsonHttpLogFormatter.prepare(Precorrelation)public String format(Correlation<HttpRequest,HttpResponse> correlation) throws IOException
format in interface HttpLogFormatterIOException@API(status=EXPERIMENTAL) public List<String> prepare(Correlation<HttpRequest,HttpResponse> correlation) throws IOException
Pr@param correlation the response correlation
correlation - the correlated request and response pairIOException - if reading body failsprepare(Precorrelation),
format(List),
JsonHttpLogFormatter.prepare(Correlation)@API(status=EXPERIMENTAL) public String format(List<String> lines)
lines - lines of an HTTP messageprepare(Precorrelation),
prepare(Correlation),
JsonHttpLogFormatter.format(Map)Copyright © 2015–2018 Zalando SE. All rights reserved.