This has been done with only two objects “Earthpart” and “Earthquake”.
When I call localhost / earthpars When, I will get an xml list of the earthquake part.
But only the earthquake object xlinked to localhost/earthquake/{id} has more information {multiple, how long, etc.}}
Soon: on localhost/ There is only xlink to localhost/earthquake/{id} in earthpars.
The current technical part:
To be honest, the request is to use camel-cxf and jaxb to build REST services. Use naming It is possible to build xlinks and jaxb in space, but this is obviously not the way to go! So the question is: Is there any information about xlink and jaxb, or is this not the method of xlinks?
> http://bdoughan.blogspot.com/2010/07/xmladapter-jaxbs-secret-weapon.html
I want to build a rest service through cxf.
This has been done. There are only two objects “Earthpart” and “Earthquake”.
When I call localhost/earthpars, I will get an xml of the earthquake part List.
But only the earthquake object xlinked to localhost/earthquake/{id} has more information {multiple, how long, etc.}}
Soon: in localhost/earthpars, only localhost/earthquake/{id }’S xlink.
The current technical part:
To be honest, the request is to use camel-cxf and jaxb to build REST services. It is possible to build xlinks and jaxb using namespaces, but This is obviously not the way to go! So the question is: is there any information about xlink and jaxb, or is this not the method of xlinks?
You can use XmlAdapter to convert child objects to xlink representation. For more information about XmlAdapter, please refer to:
> http://bdoughan.blogspot.com/2010/07/xmladapter-jaxbs-secret-weapon.html