Integrating LogDigger into the Spring FrameworkΒΆ

The LogDigger servlet filters support initialization via the Spring Framework’s DelegatingFilterProxy. The following example integrates LogDigger’s RequestLogCollectorFilter with a custom authorizer bean:

web.xml

...
<filter>
    <filter-name>logdiggerFilter</filter-name>
    <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
    <filter-name>logdiggerFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
...

applicationContext.xml

...
<bean id="logdiggerFilter"
      class="com.logdigger.connector.servlet.filter.RequestLogCollectorFilter">
    <property name="authorizer" ref="myAppAuthorizer" />
</bean>
...

Previous topic

Simple Authorizer

Next topic

LogDigger Connector for Grails

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 2.5