public FaxJob submitFaxJob ( T inputData ) { if ( inputData == null ) { throw new FaxException ( "Input data not provided." ) ; } //create fax job FaxJob faxJob = this . createFaxJob ( ) ; //update fax job info this . requestParser . updateFaxJobFromInputData ( inputData , faxJob ) ; //create file info FileInfo fileInfo = this . requestParser . getFileInfoFromInputData ( inputData ) ; if ( fileInfo == null ) { throw new FaxException ( "Unable to extract file info from input data." ) ; } //submit fax job this . submitFaxJob ( faxJob , fileInfo ) ; return faxJob ; }
This function will submit a new fax job .