public class BaseSimulate extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
BaseSimulate.RestPath |
static class |
BaseSimulate.ReuqestBodyFunction |
| 构造器和说明 |
|---|
BaseSimulate(GroupTemplate gt,
JsonUtil jsonUtil,
String base) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
getCommonValueFile(javax.servlet.http.HttpServletRequest hq,
javax.servlet.http.HttpServletResponse response)
得出公用的脚本文件,默认是在在webroot目录下的/values/common.var
|
protected BaseSimulate.RestPath |
getRealPath(String path,
String method)
无法根据请求的url找到对应的path变量,因此暂时先不支持path变量,使用$$来代替
|
protected Map |
getScriptParas(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
getValuePath(javax.servlet.http.HttpServletRequest request)
得到对应的脚本值
|
protected void |
output(String result,
javax.servlet.http.HttpServletResponse response) |
protected void |
setValue(String key,
Object value,
javax.servlet.http.HttpServletRequest hq) |
protected GroupTemplate gt
protected String base
protected JsonUtil jsonUtil
public BaseSimulate(GroupTemplate gt, JsonUtil jsonUtil, String base)
protected String getCommonValueFile(javax.servlet.http.HttpServletRequest hq, javax.servlet.http.HttpServletResponse response)
hq - response - protected void output(String result, javax.servlet.http.HttpServletResponse response)
protected void setValue(String key, Object value, javax.servlet.http.HttpServletRequest hq)
protected Map getScriptParas(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public String getValuePath(javax.servlet.http.HttpServletRequest request)
request - protected BaseSimulate.RestPath getRealPath(String path, String method)
path - Copyright © 2018. All rights reserved.