Class MessageSnapshot
java.lang.Object
com.predic8.membrane.core.exchange.snapshots.MessageSnapshot
- Direct Known Subclasses:
RequestSnapshot,ResponseSnapshot
-
Constructor Summary
ConstructorsConstructorDescriptionMessageSnapshot(Message msg, ExceptionThrowingConsumer<AbstractExchangeSnapshot> bodyCopiedCallback, AbstractExchangeSnapshot aes, BodyCollectingMessageObserver.Strategy strategy, long limit) -
Method Summary
-
Constructor Details
-
MessageSnapshot
public MessageSnapshot(Message msg, ExceptionThrowingConsumer<AbstractExchangeSnapshot> bodyCopiedCallback, AbstractExchangeSnapshot aes, BodyCollectingMessageObserver.Strategy strategy, long limit) throws IOException - Parameters:
msg- the message to snapshotbodyCopiedCallback- will be called once the body has been filled. if null, the body stream will be read into memory immediately.aes- parameter for the callbackstrategy- how to handle body lengths exceeding thelimit.limit- maximum length of the body.- Throws:
IOException
-
MessageSnapshot
public MessageSnapshot()
-
-
Method Details
-
getHeader
-
setHeader
-
getBody
public byte[] getBody() -
setBody
public void setBody(byte[] body) -
convertHeader
-
convertBody
-