ninja
Interface Filter
- All Known Implementing Classes:
- LoggerFilter, SecureFilter, TeaPotFilter
public interface Filter
A simple filter that can be applied to controller methods or while classes.
usually you use
@FilterWith(MyFilter.class)
where MyFilter.class is implementing
this interface.
@FilterWith
works also with multiple filter
@FilterWith({MyFirstFilter.class, MySecondFilter.class})
- Author:
- ra
filter
Result filter(FilterChain filterChain,
Context context)
- Filter the request. Filters should invoke the filterChain.nextFilter() method if they wish the request to
proceed.
- Parameters:
filterChain
- The filter chaincontext
- The context
Copyright © 2012. All Rights Reserved.