Class DynamicAbstractExchangeSnapshot
java.lang.Object
com.predic8.membrane.core.exchange.snapshots.AbstractExchangeSnapshot
com.predic8.membrane.core.exchange.snapshots.DynamicAbstractExchangeSnapshot
-
Constructor Summary
ConstructorsConstructorDescriptioncalled by JSON deserializerDynamicAbstractExchangeSnapshot(AbstractExchange exc, Interceptor.Flow flow, ExceptionThrowingConsumer<AbstractExchangeSnapshot> bodyCopiedCallback, BodyCollectingMessageObserver.Strategy strategy, long limit) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddObservers(AbstractExchange exc, AbstractExchangeSnapshot excCopy, ExceptionThrowingConsumer<AbstractExchangeSnapshot> callback, Interceptor.Flow flow) static voidupdate(ExceptionThrowingConsumer<AbstractExchangeSnapshot> callback, AbstractExchangeSnapshot excCopy, AbstractExchange exc, Interceptor.Flow flow) Methods inherited from class com.predic8.membrane.core.exchange.snapshots.AbstractExchangeSnapshot
getDestinations, getErrorMessage, getId, getOriginalRequestUri, getRemoteAddr, getRemoteAddrIp, getRequest, getResponse, getRule, getServer, getStatus, getTime, getTimeReqReceived, getTimeReqSent, getTimeResReceived, getTimeResSent, setDestinations, setErrorMessage, setId, setOriginalRequestUri, setRemoteAddr, setRemoteAddrIp, setRequest, setResponse, setRule, setServer, setStatus, setTime, setTimeReqReceived, setTimeReqSent, setTimeResReceived, setTimeResSent, toAbstractExchange, updateFrom
-
Constructor Details
-
DynamicAbstractExchangeSnapshot
public DynamicAbstractExchangeSnapshot(AbstractExchange exc, Interceptor.Flow flow, ExceptionThrowingConsumer<AbstractExchangeSnapshot> bodyCopiedCallback, BodyCollectingMessageObserver.Strategy strategy, long limit) throws IOException - Parameters:
exc- the exchange to snapshotflow- what to copy from the exchange besides general propertiesbodyCopiedCallback- will be called once theflow's body has been filled. if null, the body stream will be read into memory immediately.strategy- how to handle body lengths exceeding thelimit.limit- maximum length of the body.- Throws:
IOException
-
DynamicAbstractExchangeSnapshot
public DynamicAbstractExchangeSnapshot()called by JSON deserializer
-
-
Method Details
-
addObservers
public static void addObservers(AbstractExchange exc, AbstractExchangeSnapshot excCopy, ExceptionThrowingConsumer<AbstractExchangeSnapshot> callback, Interceptor.Flow flow) -
update
public static void update(ExceptionThrowingConsumer<AbstractExchangeSnapshot> callback, AbstractExchangeSnapshot excCopy, AbstractExchange exc, Interceptor.Flow flow)
-