Interface HttpDataFactory
- All Known Implementing Classes:
DefaultHttpDataFactory
public interface HttpDataFactory
Interface to enable creation of InterfaceHttpData objects
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemove all InterfaceHttpData from virtual File storage from clean list for all requestsvoidcleanRequestHttpDatas(HttpRequest request) Remove all InterfaceHttpData from virtual File storage from clean list for the requestcreateAttribute(HttpRequest request, String name) createAttribute(HttpRequest request, String name, String value) createFileUpload(HttpRequest request, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size) voidremoveHttpDataFromClean(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)voidsetMaxLimit(long max) To set a max size limitation on fields.
-
Method Details
-
setMaxLimit
void setMaxLimit(long max) To set a max size limitation on fields. Exceeding it will generate an ErrorDataDecoderException. A value of -1 means no limitation (default).- Parameters:
max-
-
createAttribute
- Parameters:
request- associated request- Returns:
- a new Attribute with no value
-
createAttribute
- Parameters:
request- associated request- Returns:
- a new Attribute
-
createFileUpload
FileUpload createFileUpload(HttpRequest request, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size) - Parameters:
request- associated requestsize- the size of the Uploaded file- Returns:
- a new FileUpload
-
removeHttpDataFromClean
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)- Parameters:
request- associated request
-
cleanRequestHttpDatas
Remove all InterfaceHttpData from virtual File storage from clean list for the request- Parameters:
request- associated request
-
cleanAllHttpDatas
void cleanAllHttpDatas()Remove all InterfaceHttpData from virtual File storage from clean list for all requests
-