public interface HttpDataFactory
限定符和类型 | 方法和说明 |
---|---|
void |
cleanAllHttpDatas()
Remove all InterfaceHttpData from virtual File storage from clean list for all requests
|
void |
cleanRequestHttpDatas(HttpRequest request)
Remove all InterfaceHttpData from virtual File storage from clean list for the request
|
Attribute |
createAttribute(HttpRequest request,
java.lang.String name) |
Attribute |
createAttribute(HttpRequest request,
java.lang.String name,
java.lang.String value) |
FileUpload |
createFileUpload(HttpRequest request,
java.lang.String name,
java.lang.String filename,
java.lang.String contentType,
java.lang.String contentTransferEncoding,
java.nio.charset.Charset charset,
long size) |
void |
removeHttpDataFromClean(HttpRequest request,
InterfaceHttpData data)
Remove the given InterfaceHttpData from clean list (will not delete the file, except if the file
is still a temporary one as setup at construction)
|
void |
setMaxLimit(long max)
To set a max size limitation on fields.
|
void setMaxLimit(long max)
max
- Attribute createAttribute(HttpRequest request, java.lang.String name)
request
- associated requestAttribute createAttribute(HttpRequest request, java.lang.String name, java.lang.String value)
request
- associated requestFileUpload createFileUpload(HttpRequest request, java.lang.String name, java.lang.String filename, java.lang.String contentType, java.lang.String contentTransferEncoding, java.nio.charset.Charset charset, long size)
request
- associated requestsize
- the size of the Uploaded filevoid removeHttpDataFromClean(HttpRequest request, InterfaceHttpData data)
request
- associated requestvoid cleanRequestHttpDatas(HttpRequest request)
request
- associated requestvoid cleanAllHttpDatas()