com.atlassian.plugins.rest.common.json
Interface JaxbJsonMarshaller
- All Known Implementing Classes:
- DefaultJaxbJsonMarshaller
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.
- Since:
- v1.0.2
|
Method Summary |
java.lang.String |
marshal(java.lang.Object jaxbBean,
java.lang.Class... jaxbClasses)
Given a jaxbBean and all the jaxb classes required to convert the bean to JSON this method will return a JSON
string. |
marshal
java.lang.String marshal(java.lang.Object jaxbBean,
java.lang.Class... jaxbClasses)
throws javax.xml.bind.JAXBException
- Given a jaxbBean and all the jaxb classes required to convert the bean to JSON this method will return a JSON
string.
- Parameters:
jaxbBean - the bean to be converted to JSONjaxbClasses - the jaxb classes in use by the jaxb bean.
- Returns:
- a JSON string
- Throws:
javax.xml.bind.JAXBException - if there's a problem marshalling the bean provided
Copyright © 2009 Atlassian. All Rights Reserved.