public class

ServletFilterModuleContainerFilter

extends Object
implements Filter
java.lang.Object
   ↳ com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter

Class Overview

Applications need to create a concrete subclass of this for use in their filter stack. This filters responsiblity is to retrieve the filters to be applied to the request from the ServletModuleManager and build a FilterChain from them. Once all the filters in the chain have been applied to the request, this filter returns control to the main chain.

There is one init parameters that must be configured for this filter, the "location" parameter. It can be one of "top", "middle" or "bottom". A filter with a "top" location must appear before the filter with a "middle" location which must appear before a filter with a "bottom" location. Where any other application filters lie in the filter stack is completely up to the application.

Summary

Public Constructors
ServletFilterModuleContainerFilter()
Public Methods
void destroy()
void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
void init(FilterConfig filterConfig)
Protected Methods
final FilterConfig getFilterConfig()
final FilterLocation getFilterLocation()
ServletModuleManager getServletModuleManager()
Retrieve the DefaultServletModuleManager from your container framework.
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.servlet.Filter

Public Constructors

public ServletFilterModuleContainerFilter ()

Public Methods

public void destroy ()

public void doFilter (ServletRequest request, ServletResponse response, FilterChain chain)

Throws
IOException
ServletException

public void init (FilterConfig filterConfig)

Throws
ServletException

Protected Methods

protected final FilterConfig getFilterConfig ()

protected final FilterLocation getFilterLocation ()

protected ServletModuleManager getServletModuleManager ()

Retrieve the DefaultServletModuleManager from your container framework. Uses the ServletContextServletModuleManagerAccessor by default.