public abstract class AbstractAS4OutgoingDumperWithHeaders extends Object implements IAS4OutgoingDumper
IAS4OutgoingDumper that always adds the
custom headers| Constructor and Description |
|---|
AbstractAS4OutgoingDumperWithHeaders() |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
onBeginRequest(String sMessageID,
com.helger.commons.http.HttpHeaderMap aCustomHeaders,
int nTry)
Called for new requests.
|
protected abstract OutputStream |
openOutputStream(String sMessageID,
com.helger.commons.http.HttpHeaderMap aCustomHeaders,
int nTry)
Create the output stream to which the data should be dumped.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonEndRequestpublic AbstractAS4OutgoingDumperWithHeaders()
@Nullable protected abstract OutputStream openOutputStream(@Nonnull @Nonempty String sMessageID, @Nullable com.helger.commons.http.HttpHeaderMap aCustomHeaders, @Nonnegative int nTry) throws IOException
sMessageID - 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 error@Nullable public OutputStream onBeginRequest(@Nonnull @Nonempty String sMessageID, @Nullable com.helger.commons.http.HttpHeaderMap aCustomHeaders, @Nonnegative int nTry) throws IOException
IAS4OutgoingDumperonBeginRequest in interface IAS4OutgoingDumpersMessageID - 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.