public class SetLocaleTinyFilter 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 |
|---|
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, wrapContextprotected void customInit()
AbstractTinyFiltercustomInit in class AbstractTinyFilterprotected 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
TinyFiltercontext - 请求上下文javax.servlet.ServletExceptionIOExceptionpublic void postProcess(WebContext context) throws javax.servlet.ServletException, IOException
TinyFiltercontext - 请求上下文javax.servlet.ServletExceptionIOExceptionprotected 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_PRECEDENCECopyright © 2006–2018 TinyGroup. All rights reserved.