MVN

com.mattunderscore : filter-utils

Maven & Gradle

Jul 26, 2014
2 usages

Filter Utilities · Provides basic support of servlet filter. Boilerplate code etc. It provides a boilerplate implementation of the Filter interface. The GenericFilter provides a getter and setter for the FilterConfig object and ensures that this is set when init is called. The init method also calls the configureFilter method after the FilterConfig object is set and can be used by subclasses to process the filter config during initiation. It also provides an empty implementation of the destory method. The only method that requires implementation is the doFilter method. The GenericHTTPFilter extends the GenericFilter class, it provides a doFilter method that attempts to cast the ServletRequest and ServletResponse objects to HttpServletRequest and HttpServletResponse objects. If these objects can be cast successfuly then it calls the doHTTPFilter method and passes the cast objects references. If the objects cannot be cast a ServletException is thrown. The doHTTPFilter method is abstract and must be implemented by subclasses.

<dependency>
    <groupId>com.mattunderscore</groupId>
    <artifactId>filter-utils</artifactId>
    <version>0.2.8</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of com.mattunderscore : filter-utils to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 0.2.8

All Versions

Choose a version of com.mattunderscore : filter-utils to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
0.2.x
filter-utils-0.2.8
filter-utils-0.2.7
filter-utils-0.2.6
filter-utils-0.2.5
filter-utils-0.2.3
filter-utils-0.2.2
filter-utils-0.2.1
filter-utils-0.2.0
0.1.x
filter-utils-0.1.2
filter-utils-0.1.1
filter-utils-0.1.0

How to add a dependency to Maven

Add the following com.mattunderscore : filter-utils maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>com.mattunderscore</groupId>
    <artifactId>filter-utils</artifactId>
    <version>0.2.8</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following com.mattunderscore : filter-utils gradle dependency to your build.gradle file:

implementation 'com.mattunderscore:filter-utils:0.2.8'

Gradle Kotlin DSL: Add the following com.mattunderscore : filter-utils gradle kotlin dependency to your build.gradle.kts file:

implementation("com.mattunderscore:filter-utils:0.2.8")

How to add a dependency to SBT Scala

SBT Scala: Add the following com.mattunderscore : filter-utils sbt scala dependency to your build.sbt file:

libraryDependencies += "com.mattunderscore" % "filter-utils" % "0.2.8"