public interface IAS4OutgoingDumper extends Serializable
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
onBeginRequest(String sMessageID,
com.helger.commons.http.HttpHeaderMap aCustomHeaders,
int nTry)
Called for new requests.
|
default void |
onEndRequest(String sMessageID)
Called after the request is finished.
|
@Nullable OutputStream onBeginRequest(@Nonnull @Nonempty String sMessageID, @Nullable com.helger.commons.http.HttpHeaderMap aCustomHeaders, @Nonnegative int nTry) throws IOException
sMessageID - The message ID of the outgoing message. Neither null
nor empty.aCustomHeaders - Custom headers to be added to the HTTP entity. May be
null.nTry - The index of the try. The first try has always index 0, the first
retry has index 1, the second retry has index 2 etc. Always ≥ 0.null is returned, nothing is dumped, else each byte
written to the target stream is also written to that output stream.IOException - in case of an errorCopyright © 2015–2020 Philip Helger. All rights reserved.