Package com.helger.phase4.dump
Interface IAS4IncomingDumperFileProvider
- 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 StringgetDefaultDirectoryAndFilename(IAS4IncomingMessageMetadata aMessageMetadata) static StringgetDefaultDirectoryName(IAS4IncomingMessageMetadata aMessageMetadata) static StringgetDefaultFilename(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:
-
getDefaultDirectoryName
@Nonnull static String getDefaultDirectoryName(@Nonnull IAS4IncomingMessageMetadata aMessageMetadata) -
getDefaultFilename
-
getDefaultDirectoryAndFilename
@Nonnull static String getDefaultDirectoryAndFilename(@Nonnull IAS4IncomingMessageMetadata aMessageMetadata)
-