【仅供内部供应商使用,不提供对外解答和培训】
Table of Contents |
---|
无
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
package com.fr.web.core;
import com.fr.stable.fun.RequestInterceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* @author kunsnat E-mail:kunsnat@gmail.com
* @version 创建时间:2011-12-12 下午03:36:47
* 类说明: No SessionID
*/
public abstract class ActionNoSessionCMD implements ActionCMD, RequestInterceptor {
public int layerIndex() {
return CURRENT_LEVEL;
}
public int currentAPILevel() {
return CURRENT_LEVEL;
}
public String mark4Provider() {
return getClass().getName();
}
/**
* 执行
* @param req http请求
* @param res http应答
* @param sessionID 会话ID
* @throws Exception 异常
*/
public void actionCMD(HttpServletRequest req, HttpServletResponse res,
String sessionID) throws Exception {
actionCMD(req, res);
}
/**
* 执行
* @param req http请求
* @param res http应答
* @throws Exception 异常
*/
public void actionCMD(HttpServletRequest req, HttpServletResponse res) throws Exception {
}
} |
该接口主要用于CMD请求分发不带sessionID的场景,开发时一般也只要实现void actionCMD(HttpServletRequest req, HttpServletResponse res)方法即可。
demo地址:demo-web-service
com.fr.stable.web.RequestCMDReceiver
com.fr.stable.fun.RequestInterceptor
com.fr.web.core.WebActionsDispatcher
免责声明:所有文档中的开源示例,均为开发者自行开发并提供。仅用于参考和学习使用,开发者和官方均无义务对开源案例所涉及的所有成果进行教学和指导。若作为商用一切后果责任由使用者自行承担。