public class SetLocaleTinyFilter 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 |
---|
SetLocaleTinyFilter() |
Modifier and Type | Method and Description |
---|---|
protected void |
customInit()
由客户自定义初始化
|
protected 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(XmlNode setLocale) |
void |
postProcess(WebContext context)
tiny过滤器后置操作方法
|
void |
preProcess(WebContext context)
tiny过滤器前置处理方法
|
void |
setDefaultCharset(String defaultCharset) |
void |
setDefaultLocale(Locale defaultLocale) |
void |
setInputCharsetPattern(Pattern inputCharsetPattern) |
void |
setOutputCharsetPattern(Pattern outputCharsetPattern) |
void |
setOverriders(SetLocaleOverrider[] overriders) |
void |
setParamKey(String paramKey) |
void |
setSessionKey(String sessionKey) |
destroyTinyFilter, get, getFilterName, initContext, initTinyFilter, isMatch, setFilterName, wrapContext
protected void customInit()
AbstractTinyFilter
customInit
in class AbstractTinyFilter
protected void parserExtraConfig(XmlNode setLocale)
public void setInputCharsetPattern(Pattern inputCharsetPattern)
public void setOutputCharsetPattern(Pattern outputCharsetPattern)
public void setOverriders(SetLocaleOverrider[] overriders)
public void setDefaultLocale(Locale defaultLocale)
public void setDefaultCharset(String defaultCharset)
public void setSessionKey(String sessionKey)
public void setParamKey(String paramKey)
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
protected WebContext getAlreadyWrappedContext(WebContext wrappedContext)
AbstractTinyFilter
getAlreadyWrappedContext
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.