Package io.virtualan.core.util
Class XMLConverter
- java.lang.Object
-
- io.virtualan.core.util.XMLConverter
-
@Service("xmlConverter") public class XMLConverter extends java.lang.Objectxml response converter.- Author:
- Elan Thangamani
-
-
Constructor Summary
Constructors Constructor Description XMLConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringconvertAsXml(java.lang.reflect.Method method, org.springframework.http.ResponseEntity responseEntity, java.lang.String json)java.lang.ClassgetReturnType(java.lang.reflect.Method method)static java.lang.StringobjectToXML(java.lang.Class type, java.lang.Object obj)java.lang.StringreturnAsXml(java.lang.reflect.Method method, org.springframework.http.ResponseEntity responseEntity, java.lang.String response)static java.lang.ObjectxmlToObject(java.lang.Class type, java.lang.String xmlString)
-
-
-
Method Detail
-
returnAsXml
public java.lang.String returnAsXml(java.lang.reflect.Method method, org.springframework.http.ResponseEntity responseEntity, java.lang.String response)
-
xmlToObject
public static java.lang.Object xmlToObject(java.lang.Class type, java.lang.String xmlString) throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
objectToXML
public static java.lang.String objectToXML(java.lang.Class type, java.lang.Object obj)
-
convertAsXml
public java.lang.String convertAsXml(java.lang.reflect.Method method, org.springframework.http.ResponseEntity responseEntity, java.lang.String json)
-
getReturnType
public java.lang.Class getReturnType(java.lang.reflect.Method method)
-
-