类 ReqImpl

  • 所有已实现的接口:
    IReq

    @Scope("perthread")
    public class ReqImpl
    extends Object
    implements IReq
    • 字段详细资料

      • requestGlobals

        @Inject
        protected org.apache.tapestry5.http.services.RequestGlobals requestGlobals
      • supportedLocales

        @InjectService("locales")
        protected ISupportedLocales supportedLocales
    • 构造器详细资料

      • ReqImpl

        public ReqImpl()
    • 方法详细资料

      • saveUpload

        public List<File> saveUpload​(String uploadRelaPath,
                                     List<org.apache.tapestry5.upload.services.UploadedFile> uploadFileList)
        从接口复制的说明: IReq
        文件上传工具方法
        指定者:
        saveUpload 在接口中 IReq
        参数:
        uploadRelaPath - 上传的文件
        返回:
      • getUploadFileList

        public List<org.apache.tapestry5.upload.services.UploadedFile> getUploadFileList()
        从接口复制的说明: IReq
        得到上传文件的列表
        指定者:
        getUploadFileList 在接口中 IReq
        返回:
      • uploadFile

        public List<String> uploadFile​(net.wicp.tams.common.constant.Encoding oriEncoding)
      • uploadFile

        public List<String> uploadFile()
        从接口复制的说明: IReq
        得到上传文件的UTF-8的编码
        指定者:
        uploadFile 在接口中 IReq
        返回:
      • saveUpload

        public List<File> saveUpload()
        从接口复制的说明: IReq
        文件上传工具方法:上传到默认的文件路径
        指定者:
        saveUpload 在接口中 IReq
        返回:
      • getContextFilePath

        public String getContextFilePath()
        从接口复制的说明: IReq
        得到context的文件路径
        指定者:
        getContextFilePath 在接口中 IReq
        返回:
      • getContextDir

        public File getContextDir()
        从接口复制的说明: IReq
        得到context的文件目录
        指定者:
        getContextDir 在接口中 IReq
        返回:
      • getUploadDir

        public File getUploadDir()
        从接口复制的说明: IReq
        得到默认的文件上传目录
        指定者:
        getUploadDir 在接口中 IReq
        返回:
      • getEnumConvert

        public net.wicp.tams.common.callback.IConvertValue<String> getEnumConvert​(Class entityClass)
        从接口复制的说明: IReq
        得到枚举的转换器
        指定者:
        getEnumConvert 在接口中 IReq
        返回:
      • buildPage

        public net.wicp.tams.common.web.PageAssist buildPage()
        指定者:
        buildPage 在接口中 IReq
      • retSuccInfo

        public org.apache.tapestry5.util.TextStreamResponse retSuccInfo()
        从接口复制的说明: IReq
        得到成功的回复
        指定者:
        retSuccInfo 在接口中 IReq
        返回:
      • retSuccInfo

        public org.apache.tapestry5.util.TextStreamResponse retSuccInfo​(String sucInfo)
        从接口复制的说明: IReq
        得到成功的回复
        指定者:
        retSuccInfo 在接口中 IReq
        参数:
        sucInfo - 成功信息
        返回:
      • retErrorInfo

        public org.apache.tapestry5.util.TextStreamResponse retErrorInfo​(String errmsg)
        从接口复制的说明: IReq
        得到错误的返回信息
        指定者:
        retErrorInfo 在接口中 IReq
        参数:
        errmsg - 错误信息
        返回: