Class RemoteBuilderEndPoint

    • Method Detail

      • processQueuedTransaction

        protected boolean processQueuedTransaction​(int code,
                                                   ReadTransaction trans)
        This method must be implemented in all extending classes.
        Specified by:
        processQueuedTransaction in class AbstractEndPoint
        code - The transaction code.
        trans - The transaction.
        true if the transaction has been processed, false otherwise.
      • onClientPropsCreated

        protected void onClientPropsCreated​(PropCnr root)
        Called when the root is created from a transaction from the client. Override to perform some additional processing such as adding server environment, etc.
        onClientPropsCreated in class AbstractEndPoint
      • isAccepted

        public boolean isAccepted​(HttpServletRequest request)
        Checks if the uploader service would accept this upload request or not.
        Specified by:
        isAccepted in interface IWSUploaderAcceptor
        request - The request.
        true if accepted, false otherwise.
      • getAlternateAcceptor

        public IWSUploaderAcceptor getAlternateAcceptor​(HttpServletRequest request)
        Checks if the service wishes to return an alternate uploader. This can only be done once and the new instance's "getAlternateAcceptor(request)" will not be called.
        Specified by:
        getAlternateAcceptor in interface IWSUploaderAcceptor
        The IWSUploaderAcceptor instance registered for the target URL, or null for default.
      • getUploadDirectory

        public getUploadDirectory​( defaultDir,
                                               java.util.List<WSUploadPart> parts)
        Gets the directory where to store the files.
        Specified by:
        getUploadDirectory in interface IWSUploaderAcceptor
        defaultDir - The default directory where to place the files.
        parts - The parts that would be saved to disk.
        The directory where to store the files, or null to reject the request.
      • onUploaded

        public boolean onUploaded​(java.util.List<WSUploadPart> parts)
        Called when the upload has completed.
        Specified by:
        onUploaded in interface IWSUploaderAcceptor
        parts - The parts that have been written to disk.
        true To delete the files, false to keep them. If an IOException is thrown, the default is to delete the files!
        Throws: - If there are error e.g. reading the files.