code: protected Map<String,ContentPart<?>> getContentPartsAsMap(HTTPRequest httpRequest)
      {
          Map<String,ContentPart<?>> contentPartsMap=null;
          ContentType contentType=httpRequest.getContentType();
          switch(contentType)
          {
              case MULTI_PART:
                  //init map
                  contentPartsMap=new HashMap<String,HTTPRequest.ContentPart<?>>();
  
                  //get parts
                  ContentPart<?>[] contentParts=httpRequest.getContentAsParts();
                  int amount=contentParts.length;
                  ContentPart<?> contentPart=null;
                  String partName=null;
                  for(int index=0;index<amount;index++)
                  {
                      //get next part
                      contentPart=contentParts[index];
                      
                      //get part name
                      partName=contentPart.getName();
                      
                      //put in map
                      contentPartsMap.put(partName,contentPart);
                  }
                  break;
              default:
                  throw new FaxException("Unsupported content type: "+contentType);
          }
          
          return contentPartsMap;
      }
docs: This function returns the HTTP request multi parts as map.
  
  @param   httpRequest
  The HTTP request
  @return  The HTTP request multi parts as map