重构压缩文件判断逻辑 (#517)

* 重构压缩文件判断逻辑

* 重构压缩文件判断逻辑,移除无用的代码
This commit is contained in:
kl
2023-12-21 11:19:29 +08:00
committed by GitHub
parent a54cd75469
commit 8ac8cd8487
11 changed files with 158 additions and 138 deletions

View File

@@ -12,7 +12,8 @@ public class FileAttribute {
private String suffix;
private String name;
private String url;
private String fileKey;
private boolean isCompressFile = false;
private String compressFileKey;
private String filePassword;
private boolean usePasswordCache;
private String officePreviewType = ConfigConstants.getOfficePreviewType();
@@ -23,7 +24,7 @@ public class FileAttribute {
private String outFilePath;
private String originFilePath;
private String cacheListName;
private boolean isHtml;
private boolean isHtmlView = false;
/**
* 代理请求到文件服务器的认证请求头,格式如下:
@@ -50,12 +51,12 @@ public class FileAttribute {
this.officePreviewType = officePreviewType;
}
public String getFileKey() {
return fileKey;
public boolean isCompressFile() {
return isCompressFile;
}
public void setFileKey(String fileKey) {
this.fileKey = fileKey;
public void setCompressFile(boolean compressFile) {
isCompressFile = compressFile;
}
public String getFilePassword() {
@@ -98,6 +99,14 @@ public class FileAttribute {
this.suffix = suffix;
}
public String getCompressFileKey() {
return compressFileKey;
}
public void setCompressFileKey(String compressFileKey) {
this.compressFileKey = compressFileKey;
}
public String getName() {
return name;
}
@@ -113,8 +122,8 @@ public class FileAttribute {
public String getOriginFilePath() {
return originFilePath;
}
public boolean getIsHtml() {
return isHtml;
public boolean isHtmlView() {
return isHtmlView;
}
public void setCacheName(String cacheName) {
@@ -129,8 +138,8 @@ public class FileAttribute {
public void setOriginFilePath(String originFilePath) {
this.originFilePath = originFilePath;
}
public void setIsHtml(boolean isHtml) {
this.isHtml = isHtml;
public void setHtmlView(boolean isHtmlView) {
this.isHtmlView = isHtmlView;
}
public void setName(String name) {
this.name = name;