Class XMLConverter

java.lang.Object
io.virtualan.core.util.XMLConverter

@Service("xmlConverter") public class XMLConverter extends Object
xml response converter.
Author:
Elan Thangamani
  • Constructor Details

    • XMLConverter

      public XMLConverter()
  • Method Details

    • returnAsXml

      public String returnAsXml(Method method, org.springframework.http.ResponseEntity responseEntity, String response)
    • xmlToObject

      public static Object xmlToObject(Class type, String xmlString) throws javax.xml.bind.JAXBException
      Throws:
      javax.xml.bind.JAXBException
    • objectToXML

      public static String objectToXML(Class type, Object obj)
    • convertAsXml

      public String convertAsXml(Method method, org.springframework.http.ResponseEntity responseEntity, String json)
    • getReturnType

      public Class getReturnType(Method method)