public class BasicTinyFilter extends AbstractTinyFilter
filterName, logger, tinyFilterConfig
BASIC_FILTER_PRECEDENCE, BUFFERED_FILTER_PRECEDENCE, LAZY_COMMIT_FILTER_PRECEDENCE, PARSER_FILTER_PRECEDENCE, REWRITE_FILTER_PRECEDENCE, SESSION_FILTER_PRECEDENCE, SETLOCALE_FILTER_PRECEDENCE, TINY_FILTER, TINY_WRAPPER_FILTER
DEFAULT_PRECEDENCE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
BasicTinyFilter() |
Modifier and Type | Method and Description |
---|---|
protected void |
customInit()
由客户自定义初始化
|
WebContext |
getAlreadyWrappedContext(WebContext wrappedContext)
返回已经包装的上下文
|
int |
getOrder()
Return the order value of this object, with a
higher value meaning greater in terms of sorting.
|
protected void |
initContext(WebContext context) |
void |
postProcess(WebContext context)
tiny过滤器后置操作方法
|
void |
preProcess(WebContext context)
tiny过滤器前置处理方法
|
void |
setInterceptors(Object[] interceptors) |
void |
setMaxCookieSize(String maxCookieSize) |
destroyTinyFilter, get, getFilterName, initTinyFilter, isMatch, setFilterName, wrapContext
public void setInterceptors(Object[] interceptors)
public void setMaxCookieSize(String maxCookieSize)
protected void customInit()
AbstractTinyFilter
customInit
in class AbstractTinyFilter
public void preProcess(WebContext context) throws javax.servlet.ServletException, IOException
TinyFilter
context
- 请求上下文javax.servlet.ServletException
IOException
public void postProcess(WebContext context) throws javax.servlet.ServletException, IOException
TinyFilter
context
- 请求上下文javax.servlet.ServletException
IOException
public WebContext getAlreadyWrappedContext(WebContext wrappedContext)
AbstractTinyFilter
getAlreadyWrappedContext
in class AbstractTinyFilter
protected void initContext(WebContext context)
initContext
in class AbstractTinyFilter
public int getOrder()
Ordered
Normally starting with 0 or 1, with Ordered.LOWEST_PRECEDENCE
indicating greatest. Same order values will result in arbitrary
positions for the affected objects.
Higher value can be interpreted as lower priority, consequently the first object has highest priority (somewhat analogous to Servlet "load-on-startup" values).
Note that order values below 0 are reserved for framework purposes. Application-specified values should always be 0 or greater, with only framework components (internal or third-party) supposed to use lower values.
getOrder
in interface Ordered
getOrder
in class AbstractTinyFilter
Ordered.LOWEST_PRECEDENCE
Copyright © 2006–2018 TinyGroup. All rights reserved.