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.

@FunctionalInterface public interface IAS4IncomingDumperFileProvider
Callback interface to create a file based on the provided metadata.
Since:
0.9.8
Author:
Philip Helger
  • Field Details

    • DEFAULT_FILE_EXTENSION

      static final String DEFAULT_FILE_EXTENSION
      The default file extension to be used
      See Also:
  • Method Details

    • createFile

      @NonNull File createFile(@NonNull IAS4IncomingMessageMetadata aMessageMetadata, @NonNull com.helger.http.header.HttpHeaderMap aHttpHeaderMap)
      Get the File to 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. Never null.
      aHttpHeaderMap - The HTTP headers of the incoming message. Never null.
      Returns:
      A non-null File.
      See Also:
    • getDefaultDirectoryName

      static @NonNull String getDefaultDirectoryName(@NonNull IAS4IncomingMessageMetadata aMessageMetadata)
    • getDefaultFilename

      static @NonNull String getDefaultFilename(@NonNull IAS4IncomingMessageMetadata aMessageMetadata)
    • getDefaultDirectoryAndFilename

      static @NonNull String getDefaultDirectoryAndFilename(@NonNull IAS4IncomingMessageMetadata aMessageMetadata)