mirror of https://github.com/apache/jclouds.git
0387b1bb92
Now JAXB response parser is activated by default if the Accept header is set to application/xml or the method is annotated with the @JAXBResponseParser annotation (this way we can still use it to parse documents with vendor-specific mime-types). This will not break current XML parsers, since they must be explicitly defined with the @XMLResponseParser annotation, and will provide a default XML parsing mechanism. The only requirement will be to have domain objects annotated with standard Java JAXB annotations. It would be great to refactor the @XMLResponseParser annotation to be more flexible and to allow using other parsers than SAX, this way the @JAXBResponseParser annotation could be removed. However, this change may affect existing providers and must be studied with care. |
||
---|---|---|
.. | ||
src | ||
pom.xml |