Skip to content

How to properly dump i/o messages and as4 receipts? #204

Answered by phax
iansmirlis asked this question in Q&A
Discussion options

You must be logged in to vote

Well, for that reason I introduced the IAS4IncomingDumper and IAS4OutgoingDumper that give you the possibility to dump all messages on the wire, even the ones that are invalid AS4 messages. The SPI processors however are only invoked for incoming "valid AS4 messages". Global dumpers are set via AS4DumpManager.setIncomingDumper and AS4DumpManager.setOutgoingDumper. For sending you can also use the global once or use the builder methods .incomingDumper and .outgoingDumper to set specific instances per transmission.

This particular example ExampleReceiveMessageProcessorSPI you mention has two original intentions: a) show that multiple SPI handlers are possible and b) show how to "de-onioniz…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by iansmirlis
Comment options

You must be logged in to vote
1 reply
@phax
Comment options

phax Jan 3, 2024
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants