【仅供内部供应商使用,不提供对外解答和培训】

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

前言

在某些集成项目中,可能需要获取决策平台中数据上报的消息在其他系统中显示,下面我们就来看一看如何建立一个消息获取接口的插件。

关键接口

提供Web API请求的接口
public interface Service {

    public static final String XML_TAG = "WebService";

   /**
    * 返回该服务所附带的OP参数
    *
    * @return op参数
    */
   public String actionOP();

   /**
    * 处理HTTP请求
    *
    * @param req       HTTP请求
    * @param res       HTTP响应
    * @param op        op参数值
    * @param sessionID 当前广义报表对象的会话ID
    * @throws Exception
    */
   public void process(HttpServletRequest req, HttpServletResponse res, String op, String sessionID) throws Exception;
}
  • No labels