接口 IReq

  • 所有已知实现类:
    ReqImpl

    public interface IReq
    跟web请求相关的工具类
    作者:
    andy.zhou
    • 方法详细资料

      • saveUpload

        List<File> saveUpload​(String uploadRelaPath,
                              List<org.apache.tapestry5.upload.services.UploadedFile> uploadFileList)
        文件上传工具方法
        参数:
        uploadRelaPath - 上传的文件
        返回:
      • uploadFile

        List<String> uploadFile()
        得到上传文件的UTF-8的编码
        返回:
      • getUploadFileList

        List<org.apache.tapestry5.upload.services.UploadedFile> getUploadFileList()
        得到上传文件的列表
        返回:
      • saveUpload

        List<File> saveUpload()
        文件上传工具方法:上传到默认的文件路径
        返回:
      • getContextFilePath

        String getContextFilePath()
        得到context的文件路径
        返回:
      • getContextDir

        File getContextDir()
        得到context的文件目录
        返回:
      • getUploadDir

        File getUploadDir()
        得到默认的文件上传目录
        返回:
      • getEnumConvert

        net.wicp.tams.common.callback.IConvertValue<String> getEnumConvert​(Class entityClass)
        得到枚举的转换器
        参数:
        entityClass -
        返回:
      • buildPage

        net.wicp.tams.common.web.PageAssist buildPage()
      • retSuccInfo

        org.apache.tapestry5.util.TextStreamResponse retSuccInfo()
        得到成功的回复
        返回:
      • retSuccInfo

        org.apache.tapestry5.util.TextStreamResponse retSuccInfo​(String sucInfo)
        得到成功的回复
        参数:
        sucInfo - 成功信息
        返回:
      • retErrorInfo

        org.apache.tapestry5.util.TextStreamResponse retErrorInfo​(String errmsg)
        得到错误的返回信息
        参数:
        errmsg - 错误信息
        返回:
      • getLoginPage

        String getLoginPage()
      • getIndexPage

        String getIndexPage()