[
https://issues.apache.org/jira/browse/SYNCOPE-285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13720593#comment-13720593
]
Andrei Shakirin commented on SYNCOPE-285:
-----------------------------------------
@GET
@Path("{type}/list")
// TODO '/list' path will be removed once CXF/JAX-B bug is solved
<T extends AbstractTaskTO> List<T> list(@PathParam("type") TaskType
taskType);
@GET
@Path("{type}")
<T extends AbstractTaskTO> List<T> list(@PathParam("type") TaskType
taskType,
@QueryParam("page") int page, @QueryParam("size")
@DefaultValue("25") int size);
The different is only query parameters in second method. CXF by default cannot
make a decision about method selection based on query params only.
It is necessary either to define different URLs for method (safe variant) or
implement own ResourceComparator based on query params.
>From my perspective I will leave different URLs for methods (perhaps discover
>the better name as "list").
Regards,
Andrei.
> Complete CXF migration
> ----------------------
>
> Key: SYNCOPE-285
> URL: https://issues.apache.org/jira/browse/SYNCOPE-285
> Project: Syncope
> Issue Type: Bug
> Reporter: Francesco Chicchiriccò
> Fix For: 1.2.0
>
>
> Complete the migration to Apache CXF.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira