com.gitee.easyopen.Invoker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of easyopen-mini Show documentation
Show all versions of easyopen-mini Show documentation
easyopen mini版,保留基本签名校验,文档功能。https://gitee.com/durcframework/easyopen
package com.gitee.easyopen;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* 处理请求
* @author tanghc
*
*/
public interface Invoker {
/**
* 调用接口方法
*
* @param request
* @param response
* @return 返回最终业务结果
* @throws Throwable
*/
Object invoke(HttpServletRequest request, HttpServletResponse response) throws Throwable;
/**
* 调用接口方法,返回mock数据
* @param request
* @param response
* @return 返回mock数据
* @throws Throwable
*/
Object invokeMock(HttpServletRequest request, HttpServletResponse response) throws Throwable;
}