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 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