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 ; }
Creates and returns the submit fax command .