Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

Get Matrix Parameter from current path segment #680

Open
glassfishrobot opened this issue Nov 2, 2009 · 8 comments
Open

Get Matrix Parameter from current path segment #680

glassfishrobot opened this issue Nov 2, 2009 · 8 comments

Comments

@glassfishrobot
Copy link

The @MatrixParam annotation will only detect matrix parameters when they are the
last thing in the URL. For example:

.../X;a=b will work

but .../X;a=b/ will not work

and .../X;a=b/Y/ will not work

Paul's suggestion to address this would be:

  1. The ability to get the current path segment or segments associated with the
    resource; and

  2. a qualifier on @MatrixParam to declare that the matrix parameter is
    associated with the current path segment
    (or the last path segment in the current set).

Environment

Operating System: All
Platform: Macintosh

Affected Versions

[1.1.1-ea]

@glassfishrobot
Copy link
Author

Reported by [email protected]

@glassfishrobot
Copy link
Author

Issue-Links:
blocks
JERSEY-1370
JERSEY-1548

@glassfishrobot
Copy link
Author

tvf said:
I'd like to see @MatrixParam supporting this as being able to use MatrixParams embedded in the URI is one of the main advantages of using them at all.

IMO @MatrixParam should always handle the matrix params at the end of the currently matched path. Whether or not other matrix parameters come later in the URI should be of no relevance for this.

@glassfishrobot
Copy link
Author

@japod said:
Moved to unplanned, as this should be fixed soon.

@glassfishrobot
Copy link
Author

cowwoc said:
Please see my (related) proposal here: https://java.net/jira/browse/JAX_RS_SPEC-3

@glassfishrobot
Copy link
Author

emailnbw said:
Whats the status on this? I need my MatrixParameters in sub resources

@glassfishrobot
Copy link
Author

cowwoc said:
Jakub,

8 months have elapsed. Do you plan on fixing this anytime soon?

@glassfishrobot
Copy link
Author

This issue was imported from java.net JIRA JERSEY-408

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants