public class TinyFilterHandler extends Object implements FilterHandler
Constructor and Description |
---|
TinyFilterHandler(String servletPath,
javax.servlet.FilterChain filterChain,
WebContext context,
TinyFilterManager tinyFilterManager,
TinyProcessorManager tinyProcessorManager,
List<Pattern> passthruPatterns) |
Modifier and Type | Method and Description |
---|---|
void |
commitHeaders(WebContext wrapperedContext)
头部提交,保证内容只提交一次
|
WebContext |
getContext()
获取处理上下文
|
String |
getServletPath()
返回请求路径
|
void |
setContext(WebContext context) |
void |
tinyFilterProcessor(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
采用tiny-filter方式来处理
|
public TinyFilterHandler(String servletPath, javax.servlet.FilterChain filterChain, WebContext context, TinyFilterManager tinyFilterManager, TinyProcessorManager tinyProcessorManager, List<Pattern> passthruPatterns)
public WebContext getContext()
FilterHandler
getContext
in interface FilterHandler
public void setContext(WebContext context)
public void tinyFilterProcessor(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
tinyFilterProcessor
in interface FilterHandler
request
- response
- Exception
IOException
javax.servlet.ServletException
public String getServletPath()
FilterHandler
getServletPath
in interface FilterHandler
public void commitHeaders(WebContext wrapperedContext)
commitHeaders
in interface FilterHandler
wrapperedContext
- Copyright © 2006–2018 TinyGroup. All rights reserved.