org.tinygroup.weblayer
public abstract class AbstractTinyProcessor extends Object implements TinyProcessor
| Modifier and Type | Field and 描述 |
|---|---|
protected static org.tinygroup.logger.Logger |
logger |
protected String |
processorName |
protected TinyProcessorConfig |
tinyProcessorConfig |
TINY_PROCESSOR| Constructor and 描述 |
|---|
AbstractTinyProcessor() |
| Modifier and Type | Method and 描述 |
|---|---|
protected abstract void |
customInit() |
void |
destroy()
tinyprocessor的销毁操作
|
protected String |
get(String param) |
protected Map<String,String> |
getInitParamMap() |
int |
getOrder() |
String |
getProcessorName() |
void |
init(TinyProcessorConfig tinyProcessorConfig)
初始化操作
|
boolean |
isMatch(String urlString)
判断url是否匹配,如果匹配,返回True
|
void |
process(String urlString,
WebContext context)
处理
|
abstract void |
reallyProcess(String urlString,
WebContext context)
tinyprocessor的逻辑处理方法,由子类来完成
|
void |
setProcessorName(String processorName) |
protected String processorName
protected TinyProcessorConfig tinyProcessorConfig
protected static org.tinygroup.logger.Logger logger
public void setProcessorName(String processorName)
setProcessorName 接口 {1} 中的 {0} TinyProcessorpublic String getProcessorName()
getProcessorName 接口 {1} 中的 {0} TinyProcessorpublic void init(TinyProcessorConfig tinyProcessorConfig) throws javax.servlet.ServletException
TinyProcessorinit 接口 {1} 中的 {0} TinyProcessorjavax.servlet.ServletExceptionprotected abstract void customInit()
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic void destroy()
TinyProcessordestroy 接口 {1} 中的 {0} TinyProcessorpublic boolean isMatch(String urlString)
TinyProcessorisMatch 接口 {1} 中的 {0} TinyProcessorpublic void process(String urlString, WebContext context) throws javax.servlet.ServletException, IOException
TinyProcessorprocess 接口 {1} 中的 {0} TinyProcessorjavax.servlet.ServletExceptionIOExceptionpublic int getOrder()
getOrder 接口 {1} 中的 {0} org.tinygroup.commons.order.Orderedpublic abstract void reallyProcess(String urlString, WebContext context) throws javax.servlet.ServletException, IOException
urlString - context - javax.servlet.ServletExceptionIOExceptionCopyright © 2006–2015 TinyGroup. All rights reserved.