• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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?
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic