Package org.zalando.logbook
Class CurlHttpLogFormatter
java.lang.Object
org.zalando.logbook.CurlHttpLogFormatter
- All Implemented Interfaces:
HttpLogFormatter
@API(status=EXPERIMENTAL) public final class CurlHttpLogFormatter extends java.lang.Object implements HttpLogFormatter
Formats requests as cURL commands.
-
Constructor Summary
Constructors Constructor Description CurlHttpLogFormatter()
CurlHttpLogFormatter(HttpLogFormatter fallback)
-
Method Summary
Modifier and Type Method Description java.lang.String
format(Correlation correlation, HttpResponse response)
java.lang.String
format(Precorrelation precorrelation, HttpRequest request)
-
Constructor Details
-
CurlHttpLogFormatter
public CurlHttpLogFormatter() -
CurlHttpLogFormatter
-
-
Method Details
-
format
public java.lang.String format(Precorrelation precorrelation, HttpRequest request) throws java.io.IOException- Specified by:
format
in interfaceHttpLogFormatter
- Throws:
java.io.IOException
-
format
public java.lang.String format(Correlation correlation, HttpResponse response) throws java.io.IOException- Specified by:
format
in interfaceHttpLogFormatter
- Throws:
java.io.IOException
-