[jax-rs-spec users] [jsr339-experts] Boolean matrix parameters

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


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


where we have

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