public interface IHTTPOutgoingDumper extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Close the dumper.
|
void |
dumpHeader(String sName,
String sValue)
Get notified on a single outgoing HTTP headers.
|
void |
dumpPayload(byte[] aBytes,
int nOfs,
int nLen)
Dump a single payload byte.
|
void |
dumpPayload(int nByte)
Dump a single payload byte.
|
default void |
finishedHeaders()
Called after all headers were emitted.
|
default void |
finishedPayload()
Called after the payload was emitted.
|
default com.helger.commons.io.stream.WrappedOutputStream |
getDumpOS(OutputStream aBaseOS) |
default void |
start(String sUrl,
AS2Message aMsg)
Called when a new outgoing connection is initiated.
|
default void start(@Nonnull String sUrl, @Nonnull AS2Message aMsg)
sUrl - The URL to which a connection is established.aMsg - The message to be dumped. Never null.void dumpHeader(@Nonnull String sName, @Nonnull String sValue)
sName - HTTP header name. Never null.sValue - HTTP header value. Never null.default void finishedHeaders()
void dumpPayload(int nByte)
nByte - Current bytevoid dumpPayload(@Nonnull byte[] aBytes, @Nonnegative int nOfs, @Nonnegative int nLen)
aBytes - bytesnOfs - Offset into the arraynLen - Number of bytes to writedefault void finishedPayload()
default void close()
throws IOException
close in interface AutoCloseableIOException@Nonnull default com.helger.commons.io.stream.WrappedOutputStream getDumpOS(@Nonnull OutputStream aBaseOS)
Copyright © 2013–2022 Philip Helger. All rights reserved.