public class RewriteTinyFilter extends AbstractTinyFilter
filterName, logger, tinyFilterConfigBASIC_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_FILTERDEFAULT_PRECEDENCE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
RewriteTinyFilter() |
| 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 |
parserExtraConfig() |
void |
postProcess(WebContext context)
tiny过滤器后置操作方法
|
void |
preProcess(WebContext context)
tiny过滤器前置处理方法
|
void |
setRules(RewriteRule[] rules) |
destroyTinyFilter, get, getFilterName, initContext, initTinyFilter, isMatch, setFilterName, wrapContextpublic void setRules(RewriteRule[] rules)
protected void parserExtraConfig()
public void preProcess(WebContext context) throws javax.servlet.ServletException, IOException
TinyFiltercontext - 请求上下文javax.servlet.ServletExceptionIOExceptionpublic void postProcess(WebContext context) throws javax.servlet.ServletException, IOException
TinyFiltercontext - 请求上下文javax.servlet.ServletExceptionIOExceptionpublic WebContext getAlreadyWrappedContext(WebContext wrappedContext)
AbstractTinyFiltergetAlreadyWrappedContext in class AbstractTinyFilterpublic int getOrder()
OrderedNormally 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 OrderedgetOrder in class AbstractTinyFilterOrdered.LOWEST_PRECEDENCEprotected void customInit()
AbstractTinyFiltercustomInit in class AbstractTinyFilterCopyright © 2006–2018 TinyGroup. All rights reserved.