Class SLF4JMDCServletFilter

java.lang.Object
net.shibboleth.shared.servlet.AbstractConditionalFilter
net.shibboleth.idp.conf.impl.SLF4JMDCServletFilter
All Implemented Interfaces:
Filter, ChainableFilter, Ordered

public class SLF4JMDCServletFilter extends AbstractConditionalFilter implements ChainableFilter
Servlet filter that sets some interesting MDC attributes as the request comes in and clears the MDC as the response is returned.
  • Field Details

    • SERVER_ADDRESS_MDC_ATTRIBUTE

      @Nonnull @NotEmpty public static final String SERVER_ADDRESS_MDC_ATTRIBUTE
      MDC attribute name for host name of the server to which the current request was sent.
      See Also:
    • SERVER_PORT_MDC_ATTRIBUTE

      @Nonnull @NotEmpty public static final String SERVER_PORT_MDC_ATTRIBUTE
      MDC attribute name for port number to which the current request was sent.
      See Also:
    • CLIENT_ADDRESS_MDC_ATTRIBUTE

      @Nonnull @NotEmpty public static final String CLIENT_ADDRESS_MDC_ATTRIBUTE
      MDC attribute name for client address.
      See Also:
    • JSESSIONID_MDC_ATTRIBUTE

      @Nonnull @NotEmpty public static final String JSESSIONID_MDC_ATTRIBUTE
      MDC attribute name for container session ID.
      See Also:
    • createSession

      private boolean createSession
      Whether to create a session if it doesn't already exist.
    • headerMap

      @Nullable private Map<String,String> headerMap
      Map of attribute/header pairs to inject.
  • Constructor Details

    • SLF4JMDCServletFilter

      public SLF4JMDCServletFilter()
      Constructor.
  • Method Details