Created
August 25, 2017 21:33
-
-
Save ctataryn/5cdcc7642d034a27a4a8beb58d7641d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from("direct:saveFile") | |
.transform() | |
.simple("Content Uploaded") | |
.to("file:outbox?fileName=myFile.pdf") | |
.process(new Processor() { | |
public void process(Exchange exchange) throws Exception { | |
exchange.getIn().setHeader(Exchange.CONTENT_TYPE, "text/plain"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment