dev@jersey.java.net

Platonic/distinct URIs

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 02 Oct 2007 13:26:42 +0200

Hi Frank,

This is a heads up that the URI matching algorithm will be augmented in
the future to support platonic and distinct URIs such that requests like
the following:

   GET /resource/1
   GET /resource/1.xml

can get routed to a single HTTP method with correct overriding of the
accept header in the latter request. For more details on the discussion
see the related thread [1] on the jsr311 list (specifically see my
emails on what the regular expressions would look like).

We don't need to do anything about it right now but it does mean in the
future the generated matching automata will need to be a bit smarter
when dealing with matching groups. One way we might progress quickly is
to implement the changes and use the linear algorithm. That way we can
get the abstractions and tests correct.

Paul.

[1]
https://jsr311.dev.java.net/servlets/BrowseList?list=dev&by=thread&from=918132


-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109