Package com.helger.phase4.dump
Interface IAS4OutgoingDumperFileProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull StringgetDefaultDirectoryAndFilename(@NonNull @Nonempty String sAS4MessageID, int nTry) static @NonNull StringgetDefaultDirectoryName(@NonNull OffsetDateTime aNow) static @NonNull StringgetDefaultFilename(@NonNull OffsetDateTime aNow, @NonNull @Nonempty String sAS4MessageID, int nTry) @NonNull FilegetFile(@NonNull EAS4MessageMode eMsgMode, @NonNull @Nonempty String sAS4MessageID, int nTry) Get theFileto write the dump to.
-
Field Details
-
DEFAULT_FILE_EXTENSION
The default file extension to be used- See Also:
-
-
Method Details
-
getFile
@NonNull File getFile(@NonNull EAS4MessageMode eMsgMode, @Nonempty @NonNull @Nonempty String sAS4MessageID, @Nonnegative int nTry) Get theFileto write the dump to. The filename must be globally unique. The resulting file should be an absolute path.- Parameters:
eMsgMode- Are we dumping a request or a response? Nevernull. Added in v1.2.0.sAS4MessageID- The AS4 message ID that was send out. Neithernullnor empty.nTry- The number of the try to send the message. The initial try has value 0, the first retry has value 1 etc.- Returns:
- A non-
nullFile. - See Also:
-
getDefaultDirectoryName
-
getDefaultFilename
static @NonNull String getDefaultFilename(@NonNull OffsetDateTime aNow, @Nonempty @NonNull @Nonempty String sAS4MessageID, @Nonnegative int nTry) -
getDefaultDirectoryAndFilename
-