public class UploadingContext extends Object
构造器和说明 |
---|
UploadingContext(FilePool pool) |
UploadingContext(String poolPath) |
限定符和类型 | 方法和说明 |
---|---|
static UploadingContext |
create(FilePool pool) |
static UploadingContext |
create(String poolPath) |
int |
getBufferSize() |
String |
getCharset() |
String |
getContentTypeFilter() |
FilePool |
getFilePool() |
int |
getMaxFileSize() |
String |
getNameFilter() |
boolean |
isContentTypeAccepted(String contentType) |
boolean |
isIgnoreNull() |
boolean |
isNameAccepted(String name) |
UploadingContext |
setBufferSize(int bufferSize) |
UploadingContext |
setCharset(String charset) |
UploadingContext |
setContentTypeFilter(String contentTypeFilter) |
UploadingContext |
setFilePool(FilePool pool) |
UploadingContext |
setIgnoreNull(boolean ignoreNull) |
UploadingContext |
setMaxFileSize(int maxFileSize) |
UploadingContext |
setNameFilter(String nameFilter) |
public UploadingContext(String poolPath)
public UploadingContext(FilePool pool)
public static UploadingContext create(String poolPath)
public static UploadingContext create(FilePool pool)
public String getCharset()
public UploadingContext setCharset(String charset)
public FilePool getFilePool()
public UploadingContext setFilePool(FilePool pool)
public int getBufferSize()
public UploadingContext setBufferSize(int bufferSize)
public boolean isIgnoreNull()
public UploadingContext setIgnoreNull(boolean ignoreNull)
public int getMaxFileSize()
public UploadingContext setMaxFileSize(int maxFileSize)
public String getNameFilter()
public UploadingContext setNameFilter(String nameFilter)
public boolean isNameAccepted(String name)
public String getContentTypeFilter()
public UploadingContext setContentTypeFilter(String contentTypeFilter)
public boolean isContentTypeAccepted(String contentType)
Copyright © 2017. All rights reserved.