diff options
author | David Ostrovsky <david@ostrovsky.org> | 2014-03-10 01:50:49 +0100 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-05-05 11:16:30 -0400 |
commit | ec24568f14ee38b264c86133ce8ebcc35a39034b (patch) | |
tree | 053fc0a9c67a81ca7f7290f2e1e8f7f9ea5276e1 /src/site | |
parent | 3920e1f852b0417fd1217095d7ec12cbd6f41cb8 (diff) | |
download | gitblit-ec24568f14ee38b264c86133ce8ebcc35a39034b.tar.gz gitblit-ec24568f14ee38b264c86133ce8ebcc35a39034b.zip |
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.
Diffstat (limited to 'src/site')
-rw-r--r-- | src/site/plugins_extensions.mkd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/site/plugins_extensions.mkd b/src/site/plugins_extensions.mkd index 60f8b47d..e8b53d11 100644 --- a/src/site/plugins_extensions.mkd +++ b/src/site/plugins_extensions.mkd @@ -185,3 +185,23 @@ public class MyTicketHook extends TicketHook { } ``` +### Request Filter + +*SINCE 1.6.0* + +You can provide your own custom request filter by subclassing the *HttpRequestFilter* class. + +```java +import com.gitblit.extensions.HttpRequestFilter; +import ro.fortsoft.pf4j.Extension; + +@Extension +public class MyRequestFilter extends HttpRequestFilter { + + @Override + public void doFilter(ServletRequest request, ServletResponse response, + FilterChain chain) throws IOException, ServletException { + } +} +``` + |