jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Boolean matrix parameters

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Mon, 25 Nov 2013 16:07:47 +0000

Hi

CXF user pointed to [1] where it is recommended to show boolean matrix
parameters with their names only.

I wonder if JAX-RS applications are expected to support requests like

/path;inStokeOnly

where we have

@GET
@Path("path")
public Response getInStock(@MatrixParam("inStockOnly") boolean
inStockOnly) {}

It is easy to check if a matrix parameter has no value in which case it
is defaulted to 'true' but I'm not sure what
PathSegment.getMatrixParameters().get("inStockOnly") should return,
return, may be 'true'...

Would it be a good idea for JAX-RS to support it ? WADL is of course not
JAX-RS specific but it appears some users expect the support of matrix
parameters as per [1]

Thanks, Sergey



[1] http://www.w3.org/Submission/wadl/#x3-130002.6.1