java.lang.Object
org.cruk.clarity.api.jaxb.JaxbMarshallingTool
Tool to help debugging: a short cut for marshalling an object to a string.
Used to help debugging of the REST client by marshalling the object back into XML form for printing.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMarshals the object into a string of XML.void
setMarshaller
(Jaxb2Marshaller marshaller) Set the marshaller used to create the XML.
-
Constructor Details
-
JaxbMarshallingTool
public JaxbMarshallingTool()
-
-
Method Details
-
setMarshaller
@Autowired @Qualifier("clarityJaxbMarshaller") public void setMarshaller(Jaxb2Marshaller marshaller) Set the marshaller used to create the XML.- Parameters:
marshaller
- The Jaxb2Marshaller.
-
marshal
Marshals the object into a string of XML.- Parameters:
thing
- The object to marshal.- Returns:
- The XML string.
-