Class HARDumperListener
- java.lang.Object
-
- io.yupiik.uship.httpclient.core.listener.impl.HARDumperListener
-
- All Implemented Interfaces:
RequestListener<HARDumperListener.Data>,AutoCloseable
public class HARDumperListener extends Object implements RequestListener<HARDumperListener.Data>, AutoCloseable
Usage:new HARDumperListener( Paths.get(clientConfiguration.getHarDump()), Clock.systemUTC(), new HARDumperListener.Har(), Logger.getLogger(getClass().getName()))
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classHARDumperListener.Datastatic classHARDumperListener.Har-
Nested classes/interfaces inherited from interface io.yupiik.uship.httpclient.core.listener.RequestListener
RequestListener.State<A>
-
-
Constructor Summary
Constructors Constructor Description HARDumperListener(Path output, Clock clock, Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter(HARDumperListener.Data state, HttpRequest request, Throwable error, HttpResponse<?> response)RequestListener.State<HARDumperListener.Data>before(long count, HttpRequest request)voidclose()HARDumperListener.HargetHar()
-
-
-
Method Detail
-
before
public RequestListener.State<HARDumperListener.Data> before(long count, HttpRequest request)
- Specified by:
beforein interfaceRequestListener<HARDumperListener.Data>
-
after
public void after(HARDumperListener.Data state, HttpRequest request, Throwable error, HttpResponse<?> response)
- Specified by:
afterin interfaceRequestListener<HARDumperListener.Data>
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getHar
public HARDumperListener.Har getHar()
-
-