cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TonyTheFish <to...@gamesys.co.uk>
Subject Is it possible to use polymorphic types in a REST endpoint?
Date Tue, 22 Jan 2008 17:49:36 GMT

I am working on a proof of concept application that uses cxf and jaxb.  What
I want to do is feed parameters of type FooA, FooB, FooC to an endpoint that
accepts Foo (superclass) objects.  Something like this:

        @HttpMethod("POST")
	@ProduceMime("application/xml")
	@UriTemplate("/foo/")
	public Response addFoo(Foo foo) { ... stuff ... }

No matter how I manipulate the jaxb annotations on the Foo hierarchy I
cannot persuade addFoo() to accept a FooA object.  Is this even possible?



-- 
View this message in context: http://www.nabble.com/Is-it-possible-to-use-polymorphic-types-in-a-REST-endpoint--tp15024314p15024314.html
Sent from the cxf-dev mailing list archive at Nabble.com.


Mime
View raw message