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 HttpLogFormatterIOExceptionpublic List<String> prepare(Precorrelation<HttpRequest> precorrelation) throws IOException
precorrelation - the request correlationIOExceptionprepare(Correlation),
format(List),
JsonHttpLogFormatter.prepare(Precorrelation)public String format(Correlation<HttpRequest,HttpResponse> correlation) throws IOException
format in interface HttpLogFormatterIOExceptionpublic List<String> prepare(Correlation<HttpRequest,HttpResponse> correlation) throws IOException
IOExceptionprepare(Precorrelation),
format(List),
JsonHttpLogFormatter.prepare(Correlation)public String format(List<String> lines)
lines - lines of an HTTP messageprepare(Precorrelation),
prepare(Correlation),
JsonHttpLogFormatter.format(Map)Copyright © 2015–2017 Zalando SE. All rights reserved.