Package ch.entwine.weblounge.common.site

Examples of ch.entwine.weblounge.common.site.Site.toXml()


    if (site == null) {
      throw new WebApplicationException(Status.NOT_FOUND);
    }

    // Create the response
    String siteXml = site.toXml();
    siteXml = siteXml.replaceAll("<password.*</password>", "");
    siteXml = siteXml.replaceAll("( xmlns.*?>)", ">");
    siteXml = ConfigurationUtils.processTemplate(siteXml, site, environment);
    ResponseBuilder response = Response.ok(siteXml);
    return response.build();
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.