code: protected String createSubmitFaxCommand(FaxJob faxJob)
      {
          //init buffer
          StringBuilder buffer=new StringBuilder();
          
          //create command
          buffer.append(this.submitCommand);
          buffer.append(" ");
          buffer.append(this.printQueueParameter);
          buffer.append(" ");
          buffer.append(this.printQueueName);
          buffer.append(" ");
          buffer.append(this.generalParameters);
          buffer.append(" ");
          buffer.append(this.phoneParameter);
          buffer.append("=");
          buffer.append(faxJob.getTargetAddress());
          String targetName=faxJob.getTargetName();
          if((targetName!=null)&&(targetName.length()>0))
          {
              buffer.append(" ");
              buffer.append(this.faxToParameter);
              buffer.append("=\"");
              targetName=SpiUtil.urlEncode(targetName);
              buffer.append(targetName);
              buffer.append("\"");
          }
          buffer.append(" \"");
          buffer.append(faxJob.getFilePath());
          buffer.append("\"");
  
          //get command
          String command=buffer.toString();
          
          return command;
      }
docs: Creates and returns the submit fax command.
  
  @param   faxJob
  The fax job object containing the needed information
  @return  The command