code: protected HTTPRequest createHTTPRequest(HTTPFaxClientSpi faxClientSpi,FaxActionType faxActionType,Enum<?> templateNameEnum,FaxJob faxJob)
      {
          //get template name string
          String templateName=templateNameEnum.toString();
  
          //get template
          String template=this.httpRequestTemplateMap.get(templateName);
  
          HTTPRequest httpRequest=null;
          if(template!=null)
          {
              //format template
              String content=this.formatTemplate(template,faxJob);
  
              //format resource
              String resource=this.formatHTTPResource(faxClientSpi,faxActionType,faxJob);
              
              //format URL parameters
              String parametersText=this.formatHTTPURLParameters(faxClientSpi,faxJob);
              
              //create HTTP request
              httpRequest=new HTTPRequest();
              
              //setup HTTP request
              httpRequest.setResource(resource);
              httpRequest.setContent(content);
              httpRequest.setParametersText(parametersText);
          }
  
          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   templateNameEnum
  The template name
  @param   faxJob
  The fax job object
  @return  The HTTP request to send