Hi all,

is it possible with CXF to have two (or more) methods in a single class that
share the same REST URL (@Path annotation) and also the same HTTP Operation
(e.g. @POST) and only differ in Type of a method parameter?

Example:

@Path("user")
public class UserController {

        @POST
        @Path("/search")
        public List<User> searchUser(SearchType complexSearch) {
                . . .
        }

        @POST
        @Path("/search")
        public List<User> searchUser(AnotherSearchType anotherSearch) {
                . . .
        }

        . . .
}



--
View this message in context: 
http://cxf.547215.n5.nabble.com/JAX-RS-Method-overloading-tp5717638.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to