tidemyr commented on issue #2318:
URL: https://github.com/apache/camel-quarkus/issues/2318#issuecomment-791325245


   It's just sets the Azure blob name:
   
   `    private final Processor setHeaders = new Processor() {
           @Override
           public void process(Exchange exchange) throws Exception {
   
               Message message = exchange.getIn();
   
               String datetime = OffsetDateTime.now(ZoneOffset.UTC).format(dtf);
               message.setHeader(BlobConstants.BLOB_NAME, "missingName-" + 
datetime + ".csv");
               Map<String, Object> headers = message.getHeaders();
               Iterator iterator = headers.entrySet().iterator();
               while (iterator.hasNext()) {
                   Map.Entry pair = (Map.Entry)iterator.next();
                   if (pair.getKey().equals("CamelFileNameOnly")) {
                       message.setHeader(BlobConstants.BLOB_NAME, 
pair.getValue().toString());
                       break;
                   }
               }
   
           }
       };
   `


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to