Interface RequestContext

All Known Implementing Classes:
DefaultRequestContext

public interface RequestContext
Implemented by classes that provide an application wide request context. Each request context has its own ID, which is unique per request. The ID can hence be used for tracking specific user requests by correlating it with user name. The request context references a ApplicationContext, which can be used to store name-value-pairs. The ApplicationContext allows to have a application-wide session if it is stored between requests (what is done by the RequestContextFilter).

Note: As request contexts can be serialized it is imperative that any referenced objects are also serializable and that the overall size is kept at a minimum.

  • Method Details

    • getTraceId

      String getTraceId()
    • getConversationId

      String getConversationId()
    • getClientId

      String getClientId()
    • getPrincipal

      String getPrincipal()
    • getCalledObject

      String getCalledObject()
    • getCalledMethod

      String getCalledMethod()
    • getStart

      long getStart()
    • getFanOutRequestCounter

      AtomicLong getFanOutRequestCounter()
    • getFullRequestContext

      Object[][] getFullRequestContext()
    • getFullResponseContext

      Object[][] getFullResponseContext()