类的使用
com.gdxsoft.easyweb.conf.ConfRestful
使用ConfRestful的程序包
-
com.gdxsoft.easyweb.conf中ConfRestful的使用
修饰符和类型方法说明ConfRestfuls.getConfRestful(String path, String httpMethod, RequestValue rv, RestfulResult<Object> result) 根据 path 和 method 获取restful配置ConfRestfuls.getConfRestfulFromEwaConf(String path, String httpMethod, RequestValue rv, RestfulResult<Object> result) 根据 path 和 method 获取restful配置ConfRestfuls.getConfRestfulFromJdbc(String path, String httpMethod, RequestValue rv, RestfulResult<Object> result) 根据 path 和 method 获取restful配置 -
com.gdxsoft.easyweb.script.servlets中ConfRestful的使用
修饰符和类型方法说明voidServletRestful.handleDownload(ConfRestful conf, RequestValue rv, javax.servlet.http.HttpServletResponse response, RestfulResult<Object> result) 处理文件下载请求(Content-Disposition: attachment) 通过 HtmlControl 获取文件路径并将文件写入 responsevoidServletRestful.handleImage(ConfRestful conf, RequestValue rv, javax.servlet.http.HttpServletResponse response, RestfulResult<Object> result) 处理图片及内联展示(Content-Disposition inline),支持 resize 参数voidServletRestful.handleUpload(ConfRestful conf, RequestValue rv, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RestfulResult<Object> result) 处理上传逻辑:解析 multipart 请求并调用 Upload 组件完成文件保存voidServletRestful.initUploadParameters(ConfRestful conf, RequestValue rv, RestfulResult<Object> result) 初始化上传所需的参数并进行 ACL 校验。static voidServletRestful.mapUploadParametersToRv(ConfRestful conf, Upload up, RequestValue rv) 将上传文件元数据映射到 RequestValue,使 Item Action SQL 可引用 @字段名, @字段名_EXT 等参数。