• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need solution for generic Rest service (Apache CXF)

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to apache CXF and REST.

I am using apache CXF and trying to write a generic rest interface which works with any kind of DTO which implents DTOIntf.

Super interface for each DTO is DTOIntf

rest interface which i want to write would be as follows:


This should recieve JSON from client for specific DTOs which should be converted to DTOIntf.

I am not sure how this will be achieved.

Is there any way to pass specific DTO from client which will be mapped to generic DTO interface "dto" of create method?

Can it be done through customizing Jsonprovider implementation?
 
reply
    Bookmark Topic Watch Topic
  • New Topic