A servlet to capture POST bodies into files
dependabot[bot] bd2fbc4671 Bump junit from 4.12 to 4.13.1 | 3 years ago | |
---|---|---|
src | 6 years ago | |
.editorconfig | 6 years ago | |
.gitignore | 6 years ago | |
.travis.yml | 6 years ago | |
LICENSE | 6 years ago | |
README.org | 6 years ago | |
pom.xml | 3 years ago |
I needed something that could capture POST bodies so that I could use real POST bodies in unit tests (specifically: I needed some examples of Sonar Webhooks for my sonar-collector utility).
Note: The temp files aren't cleaned up by the servlet or when uninstalling the servlet, so leaving this servlet running can create a lot of clutter in the temp directory.
Note also, that this servlet is written to be installed as a karaf feature in Apache Karaf and connect to the Pax Web Whiteboard Extender.
But outside of OSGi, Pax Web and Karaf, this is just a plain servlet with no special dependencies, and can presumably be used everywhere such a servlet can be used. I haven't tried this myself, however.
file:https://travis-ci.org/steinarb/post-body-capture.svg?branch=master file:https://coveralls.io/repos/steinarb/post-body-capture/badge.svg file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.debug-utils%3Apost-body-capture&metric=alert_status#.svg file:https://maven-badges.herokuapp.com/maven-central/no.priv.bang.debug-utils/post-body-capture/badge.svg
file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.debug-utils%3Apost-body-capture&metric=ncloc#.svg file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.debug-utils%3Apost-body-capture&metric=bugs#.svg file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.debug-utils%3Apost-body-capture&metric=vulnerabilities#.svg file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.debug-utils%3Apost-body-capture&metric=code_smells#.svg file:https://sonarcloud.io/api/project_badges/measure?project=no.priv.bang.debug-utils%3Apost-body-capture&metric=coverage#.svg
This will disconnect the servlet from the Pax Web Whiteboard Extender and uninstall the servlet, and all dependencies (e.g. Pax Web) that has been pulled in by this feature.
However, if a different feature has pulled in the same dependencies, the dependencies won't be uninstalled until everything that has required them is uninstalled.
This software project is licensed under Apache License v. 2.
See the LICENSE file for details.