Comment #6 on issue 405 by limpbizkit: guice servlet: capturing parts of  
the URIs
http://code.google.com/p/google-guice/issues/detail?id=405

Hmm... I already want us to change the path dispatcher to capture the  
proper capture group; see issue 376.

Could we just add an annotated binding for the Matcher that matched the  
current servlet? Then the user can
interpret this however he wants:
   @Provides @Named("Request ID")
   String provideRequestedId(@Named("Request Path") Matcher matcher) {
     return matcher.group(1);
   }

Perhaps this is too loose, but I'd prefer to avoid creating a metalanguage  
for servlets. That's for rich
frameworks to do.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to