Package com.helger.phase4.dump
Class AS4IncomingDumperSingleUse
java.lang.Object
com.helger.phase4.dump.AbstractAS4IncomingDumperWithHeaders<AS4IncomingDumperSingleUse>
com.helger.phase4.dump.AS4IncomingDumperSingleUse
- All Implemented Interfaces:
com.helger.commons.traits.IGenericImplTrait<AS4IncomingDumperSingleUse>,IAS4IncomingDumper
public class AS4IncomingDumperSingleUse
extends AbstractAS4IncomingDumperWithHeaders<AS4IncomingDumperSingleUse>
A simple
IAS4IncomingDumper that can be used for a single
transmission and dumps it to the OutputStream provided in the
constructor. As there are no retries for incoming messages, the
implementation is pretty straight forward.- Since:
- 0.9.8
- Author:
- Philip Helger
-
Field Summary
Fields inherited from class com.helger.phase4.dump.AbstractAS4IncomingDumperWithHeaders
DEFAULT_INCLUDE_HEADERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final OutputStreamprotected OutputStreamopenOutputStream(IAS4IncomingMessageMetadata aMessageMetadata, com.helger.commons.http.HttpHeaderMap aHttpHeaderMap) Create the output stream to which the data should be dumped.Methods inherited from class com.helger.phase4.dump.AbstractAS4IncomingDumperWithHeaders
isIncludeHeaders, onEndRequest, onNewRequest, setIncludeHeadersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsT
-
Constructor Details
-
AS4IncomingDumperSingleUse
-
-
Method Details
-
getOutputStream
-
openOutputStream
protected OutputStream openOutputStream(@Nonnull IAS4IncomingMessageMetadata aMessageMetadata, @Nonnull com.helger.commons.http.HttpHeaderMap aHttpHeaderMap) throws IOException Description copied from class:AbstractAS4IncomingDumperWithHeadersCreate the output stream to which the data should be dumped.- Specified by:
openOutputStreamin classAbstractAS4IncomingDumperWithHeaders<AS4IncomingDumperSingleUse>- Parameters:
aMessageMetadata- Request metadata. Nevernull. Since v0.9.8.aHttpHeaderMap- The HTTP headers of the incoming message. Nevernull.- Returns:
- The output stream to dump to or
nullif no dumping should be performed. - Throws:
IOException- On IO error
-