[
https://issues.apache.org/jira/browse/NIFI-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14292830#comment-14292830
]
Mark Payne commented on NIFI-221:
---------------------------------
Joe,
Regarding the StandardHTTPContextMap:
- Line 59: agreed.
- I think we can do better than the check-then-modify. I think we should just
change the signature so that rather than being a void method that throws an
Exception we should just return a boolean indicating whether or not we were
able to register it. Not sure why I went the Exception route to begin with.
- Agreed, we need the ability to timeout. I will address this.
HandleHttpRequest:
- I think the allowable path is a good idea. I hadn't thought about it until
Adam mentioned it. While it's not necessary, as we could just use
RouteOnAttribute, etc., I think it will significantly simply the flow for a lot
of cases. For instance, if you wan to allow only the path /data, it's much
easier to configured the allowable path than to add a RouteOnAttribute to check
it, and then route to a HandleHttpResponse. Though I could be convinced either
way probably :)
- This method was moved to ProcessContext in 0.0.1-incubating under a different
ticket.
Will hopefully have this all wrapped up soon.
> Build Processors that allow for receiving and responding to arbitrary HTTP
> requests
> -----------------------------------------------------------------------------------
>
> Key: NIFI-221
> URL: https://issues.apache.org/jira/browse/NIFI-221
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Mark Payne
> Assignee: Mark Payne
>
> The idea here is that we can receipt an HTTP request and use NiFi, in essence
> to build a web server graphically. This opens up a wide range of
> possibilities, by allowing a DFM to easily add a web front-end to any service
> that NiFi can interact with or to perform any sort of action that NiFi has
> the ability to perform, such as data format conversion, etc.
> For example, if you want to provide a web-based front-end to an SFTP Server,
> you could do so by creating a flow like:
> ReceiveHTTPRequest -> PutSFTP -> RespondHTTPRequest
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)