Package org.eweb4j.util.xml

Examples of org.eweb4j.util.xml.XMLWriter.toXml()


        writer.setCheckStatck(true);
        writer.setSubNameAuto(true);
        writer.setClass(cls);
        writer.setRootElementName(null);
        this.context.getResponse().setContentType(MIMEType.XML);
        this.context.getWriter().print(writer.toXml());
      } else {
        this.context.getWriter().print("@Produces 注解暂时不支持JSON 、XML以外的渲染技术");
      }
     
      this.context.getWriter().flush();
View Full Code Here


      XMLWriter writer = BeanXMLUtil.getBeanXMLWriter(obj);
      writer.setSubNameAuto(true);
      writer.setClass(cls);
      writer.setRootElementName(null);
      this.context.getResponse().setContentType(MIMEType.XML);
      this.context.getWriter().print(writer.toXml());
      this.context.getWriter().flush();
    } catch (Exception e) {
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.