public interface TinyProcessor extends Ordered
Modifier and Type | Field and Description |
---|---|
static String |
TINY_PROCESSOR |
DEFAULT_PRECEDENCE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Modifier and Type | Method and Description |
---|---|
void |
destroy()
处理器的销毁方法
|
String |
getProcessorName()
获取处理器名称
|
void |
init(TinyProcessorConfig tinyProcessorConfig)
初始化方法
|
boolean |
isMatch(String urlString)
判断url是否匹配,如果匹配,返回True
|
void |
process(String urlString,
WebContext context)
处理方法
|
void |
setProcessorName(String processorName)
设置处理器名称
|
static final String TINY_PROCESSOR
boolean isMatch(String urlString)
urlString
- 请求路径void process(String urlString, WebContext context) throws javax.servlet.ServletException, IOException
urlString
- 请求路径context
- 请求上下文javax.servlet.ServletException
IOException
void init(TinyProcessorConfig tinyProcessorConfig) throws javax.servlet.ServletException
tinyProcessorConfig
- 处理器配置对象javax.servlet.ServletException
void destroy()
String getProcessorName()
void setProcessorName(String processorName)
processorName
- 处理器名称Copyright © 2006–2018 TinyGroup. All rights reserved.