Class RequestContext

java.lang.Object
org.sklsft.commons.log.context.RequestContext
All Implemented Interfaces:
Serializable

public class RequestContext extends Object implements Serializable
When invoking a transaction through one interface or via a batch, this context will go along with the transaction and give informations about it :
  • An identifier of the transaction
  • A correlation id, to associate this transaction to others
  • A {link RequestChannels channel to identify through which kind of interface the transaction was triggered
  • Author:
    Nicolas Thibault
    See Also:
    • Constructor Details

      • RequestContext

        public RequestContext()
      • RequestContext

        public RequestContext(String transactionId, String correlationId, RequestChannels channel)
    • Method Details

      • getTransactionId

        public String getTransactionId()
      • setTransactionId

        public void setTransactionId(String transactionId)
      • getCorrelationId

        public String getCorrelationId()
      • setCorrelationId

        public void setCorrelationId(String correlationId)
      • getChannel

        public RequestChannels getChannel()
      • setChannel

        public void setChannel(RequestChannels channel)