com.atlassian.plugins.rest.common.json
Class DefaultJaxbJsonMarshaller

java.lang.Object
  extended by com.atlassian.plugins.rest.common.json.DefaultJaxbJsonMarshaller
All Implemented Interfaces:
JaxbJsonMarshaller

public class DefaultJaxbJsonMarshaller
extends java.lang.Object
implements JaxbJsonMarshaller


Constructor Summary
DefaultJaxbJsonMarshaller()
           
DefaultJaxbJsonMarshaller(boolean prettyPrint)
           
 
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. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJaxbJsonMarshaller

public DefaultJaxbJsonMarshaller()

DefaultJaxbJsonMarshaller

public DefaultJaxbJsonMarshaller(boolean prettyPrint)
Method Detail

marshal

public java.lang.String marshal(java.lang.Object jaxbBean)
Description copied from interface: JaxbJsonMarshaller
Given a jaxbBean this method will return a JSON string.

Specified by:
marshal in interface JaxbJsonMarshaller
Parameters:
jaxbBean - the bean to be converted to JSON
Returns:
a JSON string

marshal

@Deprecated
public java.lang.String marshal(java.lang.Object jaxbBean,
                                           java.lang.Class... jaxbClasses)
                         throws javax.xml.bind.JAXBException
Deprecated. 

Description copied from interface: JaxbJsonMarshaller
Given a jaxbBean and all the jaxb classes required to convert the bean to JSON this method will return a JSON string.

Specified by:
marshal in interface JaxbJsonMarshaller
Parameters:
jaxbBean - the bean to be converted to JSON
jaxbClasses - 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 © 2014 Atlassian. All Rights Reserved.