You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Jeremy Karlson (JIRA)" <ji...@apache.org> on 2014/03/17 20:07:43 UTC

[jira] [Comment Edited] (FLUME-2333) HTTP source handler doesn't allow for responses

    [ https://issues.apache.org/jira/browse/FLUME-2333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13938204#comment-13938204 ] 

Jeremy Karlson edited comment on FLUME-2333 at 3/17/14 7:06 PM:
----------------------------------------------------------------

Made a couple of minor tweaks to the patch.  This one is cumulative and replaces all other existing patches.  FLUME-2333-CUMULATIVE.diff.


was (Author: karlj000):
Made a couple of minor tweaks to the patch.  This one is cumulative and replaces all other existing patches.

> HTTP source handler doesn't allow for responses
> -----------------------------------------------
>
>                 Key: FLUME-2333
>                 URL: https://issues.apache.org/jira/browse/FLUME-2333
>             Project: Flume
>          Issue Type: Improvement
>            Reporter: Jeremy Karlson
>            Assignee: Jeremy Karlson
>         Attachments: FLUME-2333-2.diff, FLUME-2333-3.diff, FLUME-2333-4.diff, FLUME-2333-CUMULATIVE.diff, FLUME-2333.diff
>
>
> Existing HTTP source handlers recieve events via a HTTPServletRequest.  This works, but because the handler doesn't have access to the HTTPServletResponse, there is no ability to return a response.  This makes it unsuitable for some sort of protocol that relies on bidirectional communication.
> My solution: In addition to the existing HTTPSource interface, I've added a BidirectionalHTTPSource interface that is provided the servlet response as a parameter.  I've made some changes in the HTTP source allow for both types to co-exist, and my changes shouldn't affect anyone who is already using the existing interface.
> Also includes minor documentation updates to reflect this.
> Review: https://reviews.apache.org/r/18555/



--
This message was sent by Atlassian JIRA
(v6.2#6252)