public abstract class AbstractRequestInterceptor extends AbstractProvider implements RequestInterceptor
RequestInterceptor.ActionKey
CURRENT_LEVEL, MARK_STRING
DEFAULT_LAYER_INDEX
构造器和说明 |
---|
AbstractRequestInterceptor() |
限定符和类型 | 方法和说明 |
---|---|
void |
actionCMD(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
执行请求
|
void |
actionCMD(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String sessionID)
执行
|
int |
currentAPILevel()
当前接口的API等级,用于判断是否需要升级插件
|
int |
layerIndex()
对于不可变接口,这个值越高的,加载的优先级越高,也就是会覆盖掉其他低优先级的使用同样接口的插件
|
java.lang.String |
mark4Provider()
获取当前provider的标记(可以使用类路径保证唯一)以避免provider的重复加载
|
equals, hashCode
getCMD
public java.lang.String mark4Provider()
Provider
mark4Provider
在接口中 Provider
mark4Provider
在类中 AbstractProvider
public int currentAPILevel()
Level
currentAPILevel
在接口中 Level
public void actionCMD(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.lang.String sessionID) throws java.lang.Exception
RequestCMDReceiver
actionCMD
在接口中 RequestCMDReceiver
req
- http请求res
- http应答sessionID
- 会话IDjava.lang.Exception
- 处理失败则抛出异常public void actionCMD(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
RequestCMDReceiver
actionCMD
在接口中 RequestCMDReceiver
req
- http请求res
- http响应java.lang.Exception
- 处理失败则抛出异常public int layerIndex()
Layer
layerIndex
在接口中 Layer