public interface TinyFilter extends Ordered, WebContextFactory<WebContext>
Modifier and Type | Field and Description |
---|---|
static int |
BASIC_FILTER_PRECEDENCE |
static int |
BUFFERED_FILTER_PRECEDENCE |
static int |
LAZY_COMMIT_FILTER_PRECEDENCE |
static int |
PARSER_FILTER_PRECEDENCE |
static int |
REWRITE_FILTER_PRECEDENCE |
static int |
SESSION_FILTER_PRECEDENCE |
static int |
SETLOCALE_FILTER_PRECEDENCE |
static String |
TINY_FILTER |
static String |
TINY_WRAPPER_FILTER |
DEFAULT_PRECEDENCE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Modifier and Type | Method and Description |
---|---|
void |
destroyTinyFilter()
tiny过滤器的销毁方法
|
String |
getFilterName()
返回tiny过滤器名称
|
void |
initTinyFilter(TinyFilterConfig config)
tiny过滤器的初始化方法
|
boolean |
isMatch(String url)
tiny过滤器的匹配方法,此过滤器是否可以处理此请求路径
|
void |
postProcess(WebContext context)
tiny过滤器后置操作方法
|
void |
preProcess(WebContext context)
tiny过滤器前置处理方法
|
void |
setFilterName(String filterName)
设置tiny过滤器名称
|
wrapContext
static final String TINY_FILTER
static final String TINY_WRAPPER_FILTER
static final int BASIC_FILTER_PRECEDENCE
static final int PARSER_FILTER_PRECEDENCE
static final int BUFFERED_FILTER_PRECEDENCE
static final int LAZY_COMMIT_FILTER_PRECEDENCE
static final int SESSION_FILTER_PRECEDENCE
static final int SETLOCALE_FILTER_PRECEDENCE
static final int REWRITE_FILTER_PRECEDENCE
void preProcess(WebContext context) throws javax.servlet.ServletException, IOException
context
- 请求上下文javax.servlet.ServletException
IOException
void postProcess(WebContext context) throws javax.servlet.ServletException, IOException
context
- 请求上下文javax.servlet.ServletException
IOException
void initTinyFilter(TinyFilterConfig config) throws javax.servlet.ServletException
config
- tiny过滤器配置对象javax.servlet.ServletException
void destroyTinyFilter()
boolean isMatch(String url)
url
- 请求路径String getFilterName()
void setFilterName(String filterName)
filterName
- 过滤器名称Copyright © 2006–2018 TinyGroup. All rights reserved.