Package org.restlet.ext.xml

Examples of org.restlet.ext.xml.DomRepresentation


   * @return
   * @throws IOException
   */
  @Get("xml")
  public Representation getXmlServicesList() throws IOException {
        DomRepresentation representation = new DomRepresentation(  
                MediaType.TEXT_XML);  
        // Generate a DOM document representing the item.  
        Document d = representation.getDocument();  
 
    Element rootItem = d.createElement(SERVICE_LIST_NODE_NAME);  
    d.appendChild(rootItem);  
    ServicePublisher publisher = new XmlResourcePublisher(rootItem, d);
View Full Code Here


   * @return
   * @throws IOException
   */
  @Get("xml")
  public Representation getXmlServicesList() throws IOException {
        DomRepresentation representation = new DomRepresentation(  
                MediaType.TEXT_XML);  
        // Generate a DOM document representing the item.  
        Document d = representation.getDocument();  
 
    Element rootItem = d.createElement(SERVICE_LIST_NODE_NAME);  
    d.appendChild(rootItem);  
    ServicePublisher publisher = new XmlResourcePublisher(rootItem, d);
View Full Code Here

TOP

Related Classes of org.restlet.ext.xml.DomRepresentation

Copyright © 2018 www.massapicom. 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.