Class AbstractExchangeSnapshot
java.lang.Object
com.predic8.membrane.core.exchange.snapshots.AbstractExchangeSnapshot
- Direct Known Subclasses:
DynamicAbstractExchangeSnapshot
-
Constructor Summary
ConstructorsConstructorDescriptioncalled by JSON deserializerAbstractExchangeSnapshot(AbstractExchange exc, Interceptor.Flow flow, ExceptionThrowingConsumer<AbstractExchangeSnapshot> bodyCopiedCallback, BodyCollectingMessageObserver.Strategy strategy, long limit) -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()getRule()getTime()longlonglonglongvoidsetDestinations(List<String> destinations) voidsetErrorMessage(String errorMessage) voidsetId(long id) voidsetOriginalRequestUri(String originalRequestUri) voidsetRemoteAddr(String remoteAddr) voidsetRemoteAddrIp(String remoteAddrIp) voidsetRequest(RequestSnapshot request) voidsetResponse(ResponseSnapshot response) voidvoidvoidsetStatus(ExchangeState status) voidvoidsetTimeReqReceived(long timeReqReceived) voidsetTimeReqSent(long timeReqSent) voidsetTimeResReceived(long timeResReceived) voidsetTimeResSent(long timeResSent) <T extends AbstractExchangeSnapshot>
TupdateFrom(AbstractExchange source, Interceptor.Flow flow)
-
Constructor Details
-
AbstractExchangeSnapshot
public AbstractExchangeSnapshot(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
-
AbstractExchangeSnapshot
public AbstractExchangeSnapshot()called by JSON deserializer
-
-
Method Details
-
updateFrom
public <T extends AbstractExchangeSnapshot> T updateFrom(AbstractExchange source, Interceptor.Flow flow) throws IOException - Throws:
IOException
-
toAbstractExchange
-
getRequest
-
setRequest
-
getResponse
-
setResponse
-
getId
public long getId() -
setId
public void setId(long id) -
getOriginalRequestUri
-
setOriginalRequestUri
-
getTime
-
setTime
-
getErrorMessage
-
setErrorMessage
-
getStatus
-
setStatus
-
getTimeReqSent
public long getTimeReqSent() -
setTimeReqSent
public void setTimeReqSent(long timeReqSent) -
getTimeReqReceived
public long getTimeReqReceived() -
setTimeReqReceived
public void setTimeReqReceived(long timeReqReceived) -
getTimeResSent
public long getTimeResSent() -
setTimeResSent
public void setTimeResSent(long timeResSent) -
getTimeResReceived
public long getTimeResReceived() -
setTimeResReceived
public void setTimeResReceived(long timeResReceived) -
getDestinations
-
setDestinations
-
getRemoteAddr
-
setRemoteAddr
-
getRemoteAddrIp
-
setRemoteAddrIp
-
getRule
-
setRule
-
getServer
-
setServer
-