Package com.helger.phase4.dump
Interface AS4IncomingDumperFileBased.IFileProvider
- Enclosing class:
- AS4IncomingDumperFileBased
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface to create a file based on the provided metadata.
- Since:
- 0.9.8
- Author:
- Philip Helger
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateFile(IAS4IncomingMessageMetadata aMessageMetadata, com.helger.commons.http.HttpHeaderMap aHttpHeaderMap) Get theFileto write the dump to.static StringgetFilename(IAS4IncomingMessageMetadata aMessageMetadata)
-
Field Details
-
DEFAULT_FILE_EXTENSION
The default file extension to be used- See Also:
-
-
Method Details
-
createFile
@Nonnull File createFile(@Nonnull IAS4IncomingMessageMetadata aMessageMetadata, @Nonnull com.helger.commons.http.HttpHeaderMap aHttpHeaderMap) Get theFileto write the dump to. The filename must be globally unique. The resulting file should be an absolute path.- Parameters:
aMessageMetadata- The message metadata of the incoming message. Nevernull.aHttpHeaderMap- The HTTP headers of the incoming message. Nevernull.- Returns:
- A non-
nullFile. - See Also:
-
getFilename
-