Package com.azaptree.wadl

Examples of com.azaptree.wadl.Application


  private void generateWADL(final Request baseRequest, final HttpServletResponse response) {
    // TODO: implement HTTP caching
    response.setStatus(HttpStatus.OK_200);
    response.setContentType("application/vnd.sun.wadl+xml");

    final Application app = new Application();
    app.setGrammars(createWadlGrammars());
    for (String catalogName : commandService.getCommandCatalogNames()) {
      app.getResources().add(createWadlResources(catalogName));
    }

    try {
      final JAXBContext wadlJaxbContext = JAXBContext.newInstance(Application.class.getPackage().getName());
      final Marshaller marshaller = wadlJaxbContext.createMarshaller();
View Full Code Here

TOP

Related Classes of com.azaptree.wadl.Application

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.