Class FileUploadServiceImpl

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, FileUploadService, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    @WebServlet("/enterprisedemo/jwt-fileupload")
    public class FileUploadServiceImpl
    extends com.google.gwt.user.server.rpc.RemoteServiceServlet
    implements FileUploadService
    Service, handling split Uploads
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet

        perThreadRequest, perThreadResponse
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cancel​(String uuid)
      Cancel the Upload
      void finish​(String uuid)
      Inform the server that all parts are send to the server
      InputStream getInputStream​(String uuid)  
      void init()  
      String prepareUpload()  
      void upload​(String uuid, String data)
      Upload some data-parts to the Server
      • Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet

        checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponse
      • Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet

        doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
    • Constructor Detail

      • FileUploadServiceImpl

        public FileUploadServiceImpl()
    • Method Detail

      • init

        public void init()
                  throws javax.servlet.ServletException
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
      • upload

        public void upload​(String uuid,
                           String data)
                    throws IOException
        Description copied from interface: FileUploadService
        Upload some data-parts to the Server
        Specified by:
        upload in interface FileUploadService
        Parameters:
        uuid - UUID of the file, created by prepareUpload
        data - (complete data as dataurl, dataparts: 4byte-chunks (base64endocing))
        Throws:
        IOException
      • finish

        public void finish​(String uuid)
        Description copied from interface: FileUploadService
        Inform the server that all parts are send to the server
        Specified by:
        finish in interface FileUploadService
        Parameters:
        uuid - UUID of the file, created by prepareUpload
      • cancel

        public void cancel​(String uuid)
        Description copied from interface: FileUploadService
        Cancel the Upload
        Specified by:
        cancel in interface FileUploadService
        Parameters:
        uuid - UUID of the file, created by prepareUpload