[ https://issues.apache.org/jira/browse/HTTPCORE-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sam Berlin updated HTTPCORE-148: -------------------------------- Attachment: changes.txt Attached is a small revision to update javadocs, add an easy-to-use NHttpRequestHandlerRegistry (by refactoring the existing HttpRequestHandlerRegistry, so code isn't duplicated), add an NHttpResponseTrigger to allow asynchronous handler (which we already have a use for -- to delay sending a response till we've gotten confirmation from a third-party), and a simpler SimpleNHttpRequestHandler abstract impl so that not all request handler impls have to worry about the trigger (or entities). I also updated the access of a few things in AsyncNHttpServiceHandler so that subclasses can access & use the ServerConnState. One thing we additionally have (that I've avoided including thus far) is an 'HttpServiceEventListener' extension to EventListener. This interface adds notifications for 'requstReceived(NHttpConnection, HttpRequest)' and 'responseSent(NHttpConnection, HttpResponse)'. This allows various statistics to be processed & state to be updated on a per-connection basis. It'd be trivial to add support for this into the Async handler. Does something like this sound OK to you? Alternately, the handler can just have stubbed-out methods, "responseSent', 'requestReceived' that are called when necessary and subclasses can implement them to add the add event handling in. I'm going to start taking a look at the client side... IMO the server-side is basically done and can be merged into head independently of the client side. (Our CLA and ILAs are being looked at by legal folks right now. Should have'm sent to Apache in a day or two.) > Create AsyncNHttpServiceHandler & AsyncNHttpClientHandler > --------------------------------------------------------- > > Key: HTTPCORE-148 > URL: https://issues.apache.org/jira/browse/HTTPCORE-148 > Project: HttpComponents HttpCore > Issue Type: New Feature > Components: HttpCore NIO > Affects Versions: 4.0-beta1 > Reporter: Sam Berlin > Assignee: Oleg Kalnichevski > Fix For: 4.0-beta2 > > Attachments: changes.txt, changes.txt, changes2.txt > > > Attached is a patch for AsyncNHttpServiceHandler. It actually works (as > tested by running & hitting it with IE.) :) > To test, run the example 'AsyncNHttpFileServer' in the examples directory or > the TestAsyncNHttpHandlers test. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]