Include jetty-servlets as dep for use with filter framework 40/56140/2
authorRyan Goulding <ryandgoulding@gmail.com>
Wed, 26 Apr 2017 21:31:57 +0000 (17:31 -0400)
committerRyan Goulding <ryandgoulding@gmail.com>
Thu, 27 Apr 2017 17:25:50 +0000 (17:25 +0000)
commit50abda158dd70a53dfd7fbd28090d42c02747ee5
tree402d22a1c426bbacff5accd78bd68cf60e3cff03
parentb061458fad1daa1119e13d6364880c9eb5be9dc9
Include jetty-servlets as dep for use with filter framework

jetty-servlets is super useful to do things like DoS and QoS filtering
in the context of a J2EE servlet.  This patch adds a dependency on
jetty-servlets (whatever version is in odlparent) to allow easy
configuration and specification of DoS/QoSFilter.  To enable DoSFilter
for example, write the following to
etc/org.opendaylight.aaa.filterchain.cfg:

customFilterList=org.eclipse.jetty.servlets.DoSFilter
org.eclipse.jetty.servlets.DoSFilter.maxRequestsPerSec=1
org.eclipse.jetty.servlets.DoSFilter.delayMs=10000

By simply adding the dependency, it allows us to use filter(s) from
jetty-servlets without manually installing the bundle.  It also
allows us to avoid version skew as we are just grabbing whatever
upstream odlparent offers.

Change-Id: I63f135872c447e9be75dde0547f81d7876afe761
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
features/shiro/odl-aaa-shiro/pom.xml