Class XMLConverter


  • @Service("xmlConverter")
    public class XMLConverter
    extends java.lang.Object
    xml 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.String convertAsXml​(java.lang.reflect.Method method, org.springframework.http.ResponseEntity responseEntity, java.lang.String json)  
      java.lang.Class getReturnType​(java.lang.reflect.Method method)  
      static java.lang.String objectToXML​(java.lang.Class type, java.lang.Object obj)  
      java.lang.String returnAsXml​(java.lang.reflect.Method method, org.springframework.http.ResponseEntity responseEntity, java.lang.String response)  
      static java.lang.Object xmlToObject​(java.lang.Class type, java.lang.String xmlString)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XMLConverter

        public XMLConverter()
    • 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)