Package ch.entwine.weblounge.common.site

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


    Module m = site.getModule(moduleId);
    if (m == null)
      throw new WebApplicationException(Status.NOT_FOUND);

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