Package com.iizix.jetty
Interface IWSUploaderService
-
- All Superinterfaces:
IWSUploader
public interface IWSUploaderService extends IWSUploader
Interface used to handle uploads to the server from a client, e.g. profile images. In order to be able to accept an upload from a client, it must beforehand be registered by a client session to get a IWSUploaderAcceptor instance. This instance is required to perform validation if upload is enabled and of what is being uploaded and to where.- Author:
- Christopher Mindus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IWSUploaderAcceptor
getAcceptor(HttpServletRequest request, HttpServletResponse response)
Checks if the server would accept this upload request or not.-
Methods inherited from interface com.iizix.comm.IWSUploader
getFileUploadStagingDirectory, getMaximumUploadFileSize, isFileUploadEnabled
-
-
-
-
Method Detail
-
getAcceptor
IWSUploaderAcceptor getAcceptor(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
Checks if the server would accept this upload request or not.- Parameters:
request
- The request.response
- The response.- Returns:
- The IWSUploaderAcceptor instance to handle the upload, or null if not accepted.
- Throws:
java.io.IOException
-
-