code: public HTTPRequest createHTTPRequest(HTTPFaxClientSpi faxClientSpi,FaxActionType faxActionType,FaxJob faxJob)
      {
          FaxJob2HTTPRequestConverterConfigurationConstants templateName=null;
          switch(faxActionType)
          {
              case SUBMIT_FAX_JOB:
                  templateName=FaxJob2HTTPRequestConverterConfigurationConstants.SUBMIT_FAX_JOB_TEMPLATE_PROPERTY_KEY;
                  break;
              case SUSPEND_FAX_JOB:
                  templateName=FaxJob2HTTPRequestConverterConfigurationConstants.SUSPEND_FAX_JOB_TEMPLATE_PROPERTY_KEY;
                  break;
              case RESUME_FAX_JOB:
                  templateName=FaxJob2HTTPRequestConverterConfigurationConstants.RESUME_FAX_JOB_TEMPLATE_PROPERTY_KEY;
                  break;
              case CANCEL_FAX_JOB:
                  templateName=FaxJob2HTTPRequestConverterConfigurationConstants.CANCEL_FAX_JOB_TEMPLATE_PROPERTY_KEY;
                  break;
              case GET_FAX_JOB_STATUS:
                  templateName=FaxJob2HTTPRequestConverterConfigurationConstants.GET_FAX_JOB_STATUS_TEMPLATE_PROPERTY_KEY;
                  break;
              default:
                  throw new FaxException("Fax action type: "+faxActionType+" not supported.");
          }
  
          //create HTTP request
          HTTPRequest httpRequest=this.createHTTPRequest(faxClientSpi,faxActionType,templateName,faxJob);
          
          return httpRequest;
      }
docs: Creates the HTTP request from the fax job data.
  
  @param   faxClientSpi
  The HTTP fax client SPI
  @param   faxActionType
  The fax action type
  @param   faxJob
  The fax job object
  @return  The HTTP request to send