[
https://issues.apache.org/jira/browse/CAMEL-7652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sergey Beryozkin updated CAMEL-7652:
------------------------------------
Attachment: camel7652.txt
The initial patch:
- CxfRsComponent creates a single CXF Server that manages mulltipe REST DSL
routes (a single CXF JAX-RS endpoint can hold multiple JAX-RS resources)
- Each REST DSL route model is converted into CXF Specific model which is
understood by CXF (when doing the request matching)
- CxfRsDslInvoker is introduced which is a map of CXF ClassResourceInfo
(representing individual route resource) to Camel Consumer/Processor
Changes to the existing code are quite minor:
- CxfRsInvoker had most of its code pushed to AbstractCxfRsInvoker (this is
also extended by CxfRsDslInvoker too), but otherwise it is mostly unchanged
- Existing CxfRsComponent code which creates CxfRsEndpoint has some code to
differentiate between CXFRS URI and the actual CXF Server URI.
This is by no means a final patch. I've validated by tweaking a
camel-servlet-rest-tomcat example to use an absolute CXFRS endpoint. So:
- the tests will have to be provided
- some of the code may need to be cleaned up
- Some work will likely need to be done to have more control over whether an
absolute or relative cxfrs URI needs to be used (ex, when running in OSGI) -
this is what I'm actually planning to do next
- Support for finer grained routes, example, where we have two get on the same
path but with diff produces - need to figure out how to build CXFRS URI in such
cases, etc
I'll have no problems to work on adding tests first to make the patch accepted
If the initial lack of tests is a blocker. Though I'm not sure I can make it
just in time for 2.16.0 as I'm travelling all of next week.
Overall some progress have def been made
Cheers, Sergey
> Rest DSL - Integrate with camel-cxfrs
> -------------------------------------
>
> Key: CAMEL-7652
> URL: https://issues.apache.org/jira/browse/CAMEL-7652
> Project: Camel
> Issue Type: Sub-task
> Components: camel-core
> Reporter: Claus Ibsen
> Fix For: 2.17.0
>
> Attachments: camel7652.txt
>
>
> camel-cxfrs should be integrated with the new Rest DSL.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)