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 StringgetDefaultDirectoryAndFilename(String sAS4MessageID, int nTry) static Stringstatic StringgetDefaultFilename(OffsetDateTime aNow, String sAS4MessageID, int nTry) getFile(EAS4MessageMode eMsgMode, 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, @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
@Nonnull static String getDefaultFilename(@Nonnull OffsetDateTime aNow, @Nonnull @Nonempty String sAS4MessageID, @Nonnegative int nTry) -
getDefaultDirectoryAndFilename
@Nonnull static String getDefaultDirectoryAndFilename(@Nonnull @Nonempty String sAS4MessageID, @Nonnegative int nTry)
-