Class ClientFileUploadCommand

java.lang.Object
com.oorian.messaging.commands.Command
com.oorian.messaging.commands.ClientFileUploadCommand

public class ClientFileUploadCommand extends Command
Command to initiate a file upload from the client to the server.

This command instructs the client to upload files from a form within a specified shell container. It coordinates the file upload process between the client-side form and server-side handling.

Features:

  • Initiates client-to-server file uploads
  • Works with shell containers and forms
  • Coordinates file transfer protocol
  • Generates JSON for upload configuration

Usage:


 // Initiate file upload from a form
 ClientFileUploadCommand upload = new ClientFileUploadCommand("mainShell", "uploadForm");
 JsonObject json = upload.toJson();
 
Since:
2007
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • ClientFileUploadCommand

      public ClientFileUploadCommand(String shellId, String formId)
      Constructs a new ClientFileUploadCommand for the specified shell and form.
      Parameters:
      shellId - the ID of the shell container
      formId - the ID of the form containing file upload elements
  • Method Details

    • toJson

      public JsonObject toJson()
      Generates the JSON representation of this file upload command.

      The JSON includes the command ID, shell ID, and form ID.

      Specified by:
      toJson in class Command
      Returns:
      a JsonObject containing the file upload command attributes