Np. Please vote for
https://java.net/jira/browse/JAX_RS_SPEC-437
Thanks, Sergey
On 25/11/13 17:04, Christian Balzer wrote:
Thanks for the clarification and help!
Christian
On Mon, Nov 25, 2013 at 4:11 PM, Sergey Beryozkin <sberyoz...@gmail.com> wrote:
I've asked for some clarifications on it, JAX-RS docs say nothing on
supporting such optimizations, and while it is trivial to support we need to
make sure we won;t be supporting a non-portable use of Matrix parameters
Sergey
On 25/11/13 12:55, Sergey Beryozkin wrote:
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
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com