Class ContextPropagationProperties

java.lang.Object
es.kukenan.smartfi.common.context.config.ContextPropagationProperties

@RefreshScope @PropertySource("classpath:common-config.properties") @Configuration public class ContextPropagationProperties extends Object
This class is used to hold the configuration preferences used in context propagation related beans.

Common filters configuration. Currently, next filters are configured:

  • Request context propagation
In order to fully propagate this metadata, and due to it is stored as thread variables, it must be copied in asynchronous invocations (see @{link AsyncExecutorConfig}.
  • Field Details

    • contextEntryPrefix

      @Value("${api.headers.context-entry.prefix}") private String contextEntryPrefix
      Name for the requestId HTTP Header.
    • requestIdContextEntryName

      @Value("${context.entries.requestId}") private String requestIdContextEntryName
      Name for the requestId MDC Context Entry.
    • companyIdContextEntryName

      @Value("${context.entries.companyId}") private String companyIdContextEntryName
      Name for the companyId MDC Context Entry.
    • channelContextEntryName

      @Value("${context.entries.channel}") private String channelContextEntryName
      Name for the channel MDC Context Entry.
    • sessionContextEntryName

      @Value("${context.entries.session}") private String sessionContextEntryName
      Name for the session MDC Context Entry.
    • managerContextEntryName

      @Value("${context.entries.manager}") private String managerContextEntryName
      Name for the manager MDC Context Entry.
    • userIdContextEntryName

      @Value("${context.entries.userId}") private String userIdContextEntryName
      Name for the userId MDC Context Entry.
    • userIpContextEntryName

      @Value("${context.entries.userIp}") private String userIpContextEntryName
      Name for the userIp MDC Context Entry.
    • userAgentContextEntryName

      @Value("${context.entries.userAgent}") private String userAgentContextEntryName
      Name for the userAgent MDC Context Entry.
  • Constructor Details

    • ContextPropagationProperties

      public ContextPropagationProperties()