Interface AS4RawResponseConsumerWriteToFile.IFileProvider

Enclosing class:
AS4RawResponseConsumerWriteToFile
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 static interface AS4RawResponseConsumerWriteToFile.IFileProvider
Callback interface to create a file based on the provided metadata.
Since:
0.10.2
Author:
Philip Helger
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The default file extension to be used
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull File
    createFile(@NonNull String sAS4MessageID)
    Get the File to write the raw response to.
    static @NonNull String
    getFilename(@NonNull String sAS4MessageID)
     
  • 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 String sAS4MessageID)
      Get the File to write the raw response to. The filename must be globally unique. The resulting file should be an absolute path.
      Parameters:
      sAS4MessageID - The AS4 message ID that was send out. Neither null nor empty.
      Returns:
      A non-null File.
      See Also:
    • getFilename

      static @NonNull String getFilename(@NonNull String sAS4MessageID)