FileParameter.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package jnpf.entity;
  2. import lombok.Data;
  3. import lombok.experimental.Accessors;
  4. @Data
  5. @Accessors(chain = true)
  6. public class FileParameter {
  7. public FileParameter() {
  8. }
  9. public FileParameter(String remotePath, String remoteFileName) {
  10. this.remotePath = remotePath;
  11. this.remoteFileName = remoteFileName;
  12. }
  13. /**
  14. * 下载的远端路径/上传路径
  15. */
  16. private String remotePath;
  17. /**
  18. * 下载的远端文件名/上传的远端文件名
  19. */
  20. private String remoteFileName;
  21. /**
  22. * 下载到本地的路径
  23. */
  24. private String locaFilelPath;
  25. /**
  26. * 下载的本地文件名/上传源文件名
  27. */
  28. private String localFileName;
  29. /**
  30. * 是否生成缩略图
  31. */
  32. private boolean thumbnail;
  33. /**
  34. * 平台文件类型
  35. * @see jnpf.constant.FileTypeConstant
  36. */
  37. private String platformFileType;
  38. /**
  39. * 递归列出文件夹下的所有文件
  40. * 列出文件列表时使用
  41. */
  42. private boolean recursive;
  43. /**
  44. * 文件类型
  45. */
  46. // private String fileType;
  47. /**
  48. * 是否从本地下载
  49. */
  50. private boolean orgin;
  51. }