SLING-11304: upgrade to sling 47 (#1)

- fix for broken builds and upgrade to sling 47
- simple osgi mock test has been added

Note: ServerConfiguration.java was removed since its manual options to setup pax exam IT and its no longer required (because org.apache.sling.testing.paxexam comes with default options)
10 files changed
tree: ea62a7daae709b911979979f880ca8a768b67fc0
  1. src/
  2. .gitignore
  3. CODE_OF_CONDUCT.md
  4. CONTRIBUTING.md
  5. Jenkinsfile
  6. LICENSE
  7. pom.xml
  8. README.md
README.md

Apache Sling

Build Status Test Status Coverage Sonarcloud Status JavaDoc Maven Central Contrib License

Apache Sling SLF4J MDC Filter

This module is part of the Apache Sling project.

This filter exposes various request details as part of [MDC][1].

Currently it exposes following variables:

  1. req.remoteHost - Request remote host
  2. req.userAgent - User Agent Header
  3. req.requestURI - Request URI
  4. req.queryString - Query String from request
  5. req.requestURL -
  6. req.xForwardedFor -
  7. sling.userId - UserID associated with the request. Obtained from ResourceResolver
  8. jcr.sessionId - Session ID of the JCR Session associated with current request.

The filter also allow configuration to extract data from request cookie, header and parameters. Look for configuration with name ‘Apache Sling Logging MDC Inserting Filter’ for details on specifying header, cookie, param names.

[1] http://www.slf4j.org/manual.html#mdc