Hi
On 25/11/13 12:15, Christian Balzer wrote:
Hi everyone!
I just joined a team that uses CXF to develop a REST service.
One of the matrix parameters we have is a boolean one, much like
;sortByDate=true
What baffled me a bit is that our developer said he couldn't make the
parameter "optional". (He apparently got some sort of exception when
he tried. I guess that internally a cast to a boolean happens, which
cannot be null.)
Please use 'Boolean' type in the signature, 'null' will be provided if a
matrix parameter is absent. Another option is not to type the explicit
parameters but rely on UriInfo.getPathSegments and get the matrix
parameters from there
I was just wondering if you could do something like
the following (taken from the WADL specs) when using CXF?
Boolean matrix parameters are represented as: ';name' when value is 'true' and
are omitted from identifier when value is 'false'
No, not possible yet; we can def work on supporting that option too;
thanks, Sergey
Is that at all possible using CXF, and if so, could somebody please
point me to the right piece of documentation?
Kind regards,
Christian