Class Commands


  • public class Commands
    extends java.lang.Object
    Commands object with commands for the Cloud Office Print server to run before or after the post processing. The commands should be present in the aop_config.json file on the Cloud Office Print server.
    • Constructor Detail

      • Commands

        public Commands()
    • Method Detail

      • getPostProcess

        public Command getPostProcess()
        Returns:
        Command to run on the Cloud Office Print server after the POST request is processed.
      • setPostProcess

        public void setPostProcess​(Command postProcess)
        Parameters:
        postProcess - Command to run on the Cloud Office Print server after the POST request is processed.
      • getPostProcessReturn

        public java.lang.Boolean getPostProcessReturn()
        If you are already doing something with the file and don't want it to be returned in the response set this to true.
        Returns:
        Whether to return the output file or not. Note this output is Cloud Office Print's output and not the post process command output.
      • setPostProcessReturn

        public void setPostProcessReturn​(java.lang.Boolean postProcessReturn)
        Parameters:
        postProcessReturn - Whether to return the output file or not. Note this output is Cloud Office Print's output and not the post process command output.
      • getPostProcessDeleteDelay

        public int getPostProcessDeleteDelay()
        Cloud Office Print deletes the file provided to the command directly after executing it. This can be delayed with this option. If you have a postcommand to execute on this file and it takes some time to execute, add a postProcessDeleteDelay.
        Returns:
        delay in ms.
      • setPostProcessDeleteDelay

        public void setPostProcessDeleteDelay​(int postProcessDeleteDelay)
        Cloud Office Print deletes the file provided to the command directly after executing it. This can be delayed with this option. If you have a postcommand to execute on this file and it takes some time to execute, add a postProcessDeleteDelay.
        Parameters:
        postProcessDeleteDelay - delay in ms.
      • getPreConversion

        public Command getPreConversion()
        Returns:
        Command to run before conversion.
      • setPreConversion

        public void setPreConversion​(Command preConversion)
        Parameters:
        preConversion - Command to run before conversion.
      • getPostConversion

        public Command getPostConversion()
        Returns:
        Command to run after conversion.
      • setPostConversion

        public void setPostConversion​(Command postConversion)
        Parameters:
        postConversion - Command to run after conversion.
      • getPostMerge

        public Command getPostMerge()
        Returns:
        Command to run after merging has happened.
      • setPostMerge

        public void setPostMerge​(Command postMerge)
        Parameters:
        postMerge - Command to run after merging has happened
      • getJSON

        public com.google.gson.JsonObject getJSON()
        Returns:
        JSONObject with the tags for the commands for the Cloud Office Print server.