一、特殊名词介绍

二、接口/方法/对象源码——【FineReport V10 2018-07-30】

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

五、开源案例

免责声明:所有文档中的开源示例,均为开发者自行开发并提供。仅用于参考和学习使用,开发者和官方均无义务对开源案例所涉及的所有成果进行教学和指导。若作为商用一切后果责任由使用者自行承担。