Class RequestSnapshot
java.lang.Object
com.predic8.membrane.core.exchange.snapshots.MessageSnapshot
com.predic8.membrane.core.exchange.snapshots.RequestSnapshot
-
Constructor Summary
ConstructorsConstructorDescriptionRequestSnapshot(Request request, ExceptionThrowingConsumer<AbstractExchangeSnapshot> bodyCopiedCallback, AbstractExchangeSnapshot aes, BodyCollectingMessageObserver.Strategy strategy, long limit) -
Method Summary
Methods inherited from class com.predic8.membrane.core.exchange.snapshots.MessageSnapshot
convertBody, convertHeader, getBody, getHeader, setBody, setHeader
-
Constructor Details
-
RequestSnapshot
public RequestSnapshot(Request request, ExceptionThrowingConsumer<AbstractExchangeSnapshot> bodyCopiedCallback, AbstractExchangeSnapshot aes, BodyCollectingMessageObserver.Strategy strategy, long limit) throws IOException - Parameters:
request- the request 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
-
RequestSnapshot
public RequestSnapshot()
-
-
Method Details
-
getMethod
-
setMethod
-
getUri
-
setUri
-
toRequest
-