users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Support for marshalling/un-marshalling using JAF

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Mon, 13 Aug 2012 20:17:29 +0200

Bill, Sergey,

can you share the details on how do you currently provide support for JAF-based entity marshalling/un-marshalling as described in:
4.2.1, step 6
4.2.2, step 7
See in also in the context of the Jersey issue (filed by our TCK test engineer):
http://java.net/jira/browse/JERSEY-1066

I am not sure how to interpret the condition "...if a suitable data handler can be found using the JavaBeans Activation Framework...". Does it mean that:
in case of un-marshalling you are trying to construct a DataHandler instance using the entity input stream and the entity content type and then you are calling dataHandler.getContent() while checking that the type of the returned instance matches the required return type?
in case of marshalling you are creating a DataHandler using the application-provided entity instance and the effective entity content type and then you call dataHandler.writeTo(entityStream) method?

Many thanks,
Marek