|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JaxbJsonMarshaller
Utility service that will allow clients to marshall a Jaxb bean to Json using the same configuration that the REST module uses internally to create Json.
| Method Summary | |
|---|---|
java.lang.String |
marshal(java.lang.Object jaxbBean)
Given a jaxbBean this method will return a JSON string. |
java.lang.String |
marshal(java.lang.Object jaxbBean,
java.lang.Class... jaxbClasses)
Deprecated. since 1.1, use marshal(Object) |
| Method Detail |
|---|
java.lang.String marshal(java.lang.Object jaxbBean)
throws JsonMarshallingException
jaxbBean - the bean to be converted to JSON
JsonMarshallingException - if any error occurs marshalling the JSON object
@Deprecated
java.lang.String marshal(java.lang.Object jaxbBean,
java.lang.Class... jaxbClasses)
throws javax.xml.bind.JAXBException
marshal(Object)
jaxbBean - the bean to be converted to JSONjaxbClasses - the jaxb classes in use by the jaxb bean.
javax.xml.bind.JAXBException - if there's a problem marshalling the bean provided
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||