Class Command


  • public class Command
    extends java.lang.Object
    Command object with a single command for the Cloud Office Print server. The command should be present in the aop_config.json file on the Cloud Office Print server.
    • Constructor Summary

      Constructors 
      Constructor Description
      Command​(java.lang.String command, com.google.gson.JsonObject args)
      -
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.gson.JsonObject getArgs()  
      java.lang.String getCommand()  
      com.google.gson.JsonObject getJSON()  
      com.google.gson.JsonObject getJSONForPost()  
      com.google.gson.JsonObject getJSONForPre()  
      void setArgs​(com.google.gson.JsonObject args)  
      void setCommand​(java.lang.String command)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Command

        public Command​(java.lang.String command,
                       com.google.gson.JsonObject args)
        -
        Parameters:
        command - Command to execute.
        args - JsonObject with the parameters for the command. E.g.: { "p1":"Parameter 1", "p2": "Parameter 2" , "p3" : "Parameter 3"} The parameter tags need to be defined in the aop_config.json file on the Cloud Office Print server.
    • Method Detail

      • getCommand

        public java.lang.String getCommand()
        Returns:
        command to execute.
      • setCommand

        public void setCommand​(java.lang.String command)
        Parameters:
        command - to execute.
      • getArgs

        public com.google.gson.JsonObject getArgs()
        Returns:
        JsonObject with the parameters for the command. E.g.: { "p1":"Parameter 1", "p2": "Parameter 2" , "p3" : "Parameter 3"} The parameter tags need to be defined in the aop_config.json file on the Cloud Office Print server.
      • setArgs

        public void setArgs​(com.google.gson.JsonObject args)
        Parameters:
        args - JsonObject with the parameters for the command. E.g.: { "p1":"Parameter 1", "p2": "Parameter 2" , "p3" : "Parameter 3"} The parameter tags need to be defined in the aop_config.json file on the Cloud Office Print server.
      • getJSON

        public com.google.gson.JsonObject getJSON()
        Returns:
        JSONObject with the tags for the postprocess-command for the Cloud Office Print server.
      • getJSONForPre

        public com.google.gson.JsonObject getJSONForPre()
        Returns:
        JSONObject with the tags for the pre-command for the Cloud Office Print server.
      • getJSONForPost

        public com.google.gson.JsonObject getJSONForPost()
        Returns:
        JSONObject with the tags for the post-command for the Cloud Office Print server.