[ https://issues.apache.org/jira/browse/LABS-192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simone Gianni updated LABS-192: ------------------------------- Remaining Estimate: 0h Original Estimate: 0h Could calling do_default on a webhandler be a way to use it in the context of a do method? do_default should be able to dispatch to the correct do method (basically, recollecting missing url segments from somewhere and calling the find method) but doing it on request. See for example LABS-465 . > WEB: Merge handler and producers in a single hierarchy > ------------------------------------------------------ > > Key: LABS-192 > URL: https://issues.apache.org/jira/browse/LABS-192 > Project: Labs > Issue Type: Improvement > Components: Magma > Affects Versions: Current > Reporter: Simone Gianni > Assignee: Simone Gianni > Fix For: Next > > Original Estimate: 0h > Remaining Estimate: 0h > > Having them separated makes a lot of stuff complex, and duplicates a lot of > code since both have very similar parameters (like the creating handler, the > base and complete path etc..). > The system could consider the handler a kind of producer which is further > resolvable to obtain yet another producer, until the resulting producer is > not resolvable anymore. > So, the common interface could contain a single method "resolve", which will > ultimately return a non resolvable producer, either the same producer that > has been called or null if the request is not resolvable. -- 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: labs-unsubscr...@labs.apache.org For additional commands, e-mail: labs-h...@labs.apache.org