From ec24568f14ee38b264c86133ce8ebcc35a39034b Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Mon, 10 Mar 2014 01:50:49 +0100 Subject: [PATCH] Add http request filter extension point To allow for integration of 3rd party server monitoring solutions, Gitblit needs to expose an extension point for collecting http data. --- src/main/java/WEB-INF/web.xml | 11 ++- .../java/com/gitblit/dagger/DaggerFilter.java | 4 +- .../gitblit/extensions/HttpRequestFilter.java | 49 ++++++++++++ .../servlet/AccessRestrictionFilter.java | 5 +- .../gitblit/servlet/AuthenticationFilter.java | 3 +- .../servlet/EnforceAuthenticationFilter.java | 3 +- .../java/com/gitblit/servlet/GitFilter.java | 5 +- .../java/com/gitblit/servlet/ProxyFilter.java | 76 +++++++++++++++++++ .../java/com/gitblit/servlet/RpcFilter.java | 5 +- .../gitblit/servlet/SyndicationFilter.java | 5 +- src/site/plugins_extensions.mkd | 20 +++++ 11 files changed, 173 insertions(+), 13 deletions(-) create mode 100644 src/main/java/com/gitblit/extensions/HttpRequestFilter.java create mode 100644 src/main/java/com/gitblit/servlet/ProxyFilter.java diff --git a/src/main/java/WEB-INF/web.xml b/src/main/java/WEB-INF/web.xml index cb483af4..3a6c4490 100644 --- a/src/main/java/WEB-INF/web.xml +++ b/src/main/java/WEB-INF/web.xml @@ -214,6 +214,15 @@ /robots.txt + + ProxyFilter + com.gitblit.servlet.ProxyFilter + + + ProxyFilter + /* + +