public abstract class AbstractAS4IncomingDumperWithHeaders extends Object implements IAS4IncomingDumper
IAS4IncomingDumper that emits all headers on the
output stream.| Constructor and Description |
|---|
AbstractAS4IncomingDumperWithHeaders() |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
onNewRequest(IAS4IncomingMessageMetadata aMessageMetadata,
com.helger.commons.http.HttpHeaderMap aHttpHeaderMap)
Called for new requests.
|
protected abstract OutputStream |
openOutputStream(IAS4IncomingMessageMetadata aMessageMetadata,
com.helger.commons.http.HttpHeaderMap aHttpHeaderMap)
Create the output stream to which the data should be dumped.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonEndRequestpublic AbstractAS4IncomingDumperWithHeaders()
@Nullable protected abstract OutputStream openOutputStream(@Nonnull IAS4IncomingMessageMetadata aMessageMetadata, @Nonnull com.helger.commons.http.HttpHeaderMap aHttpHeaderMap) throws IOException
aMessageMetadata - Request metadata. Never null. Since v0.9.8.aHttpHeaderMap - The HTTP headers of the incoming message. Never null.null if no dumping
should be performed.IOException - On IO error@Nullable public OutputStream onNewRequest(@Nonnull IAS4IncomingMessageMetadata aMessageMetadata, @Nonnull com.helger.commons.http.HttpHeaderMap aHttpHeaderMap) throws IOException
IAS4IncomingDumperonNewRequest in interface IAS4IncomingDumperaMessageMetadata - Message metadata. Never null. Since v0.9.8.aHttpHeaderMap - The HTTP headers of the request. Never null.null is returned, nothing is dumped, else each byte
read from the source stream is written to that output stream.IOException - in case of an errorCopyright © 2015–2020 Philip Helger. All rights reserved.