- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How can I set static response using HandleHttpResponse processor or other processor.
- Labels:
-
Apache NiFi
Created ‎08-25-2017 05:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Currently, I am using HandleHttpResponse processor to set http status code but I also want to send static body. I tried to add property but it is not working. Can anyone help me out with some pointers on what to try?
Created ‎08-25-2017 06:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The flowfile content should be returned as the response body. Have you provided content on the incoming flowfile?
Created ‎08-25-2017 06:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The flowfile content should be returned as the response body. Have you provided content on the incoming flowfile?
Created ‎08-25-2017 07:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do not want to send content of incoming flowfile rather I would like set my own response body which will be static.
Created ‎08-27-2017 07:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use a ReplaceText
processor to replace the content of the incoming flowfile with the static response body. Because you can provide multiple outgoing connections from the previous processor, you will not lose the flowfile content, but this is the way to control the response via HandleHTTPResponse
.
Created ‎08-29-2017 02:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you! It worked for me.
