public class AS4OutgoingDumperSingleUse extends AbstractAS4OutgoingDumperWithHeaders
IAS4OutgoingDumper that can be used for a single
transmission and dumps it to the OutputStream provided in the
constructor. As there are can be retries for outgoing messages, only the
first try is logged and consecutive calls don't result in dump.| Constructor and Description |
|---|
AS4OutgoingDumperSingleUse(OutputStream aOS) |
| Modifier and Type | Method and Description |
|---|---|
protected OutputStream |
getOutputStream() |
protected OutputStream |
openOutputStream(String sMessageID,
com.helger.commons.http.HttpHeaderMap aCustomHeaders,
int nTry)
Create the output stream to which the data should be dumped.
|
onBeginRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonEndRequestpublic AS4OutgoingDumperSingleUse(@Nonnull @WillNotClose OutputStream aOS)
@Nonnull protected final OutputStream getOutputStream()
protected OutputStream openOutputStream(@Nonnull @Nonempty String sMessageID, @Nullable com.helger.commons.http.HttpHeaderMap aCustomHeaders, @Nonnegative int nTry) throws IOException
AbstractAS4OutgoingDumperWithHeadersopenOutputStream in class AbstractAS4OutgoingDumperWithHeaderssMessageID - The AS4 message ID of the outgoing message. Neither
null nor empty.aCustomHeaders - The HTTP headers of the outgoing message. Never 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 if no dumping
should be performed.IOException - On IO errorCopyright © 2015–2020 Philip Helger. All rights reserved.