Package com.azaptree.wadl

Examples of com.azaptree.wadl.Resources


    }
    return grammars;
  }

  private Resources createWadlResources(final String catalogName) {
    final Resources resources = new Resources();
    resources.setBase(String.format("%s/command-service/%s/", applicationHttpUrlBase, catalogName));
    final CommandCatalog catalog = commandService.getCommandCatalog(catalogName);
    for (final String commandName : catalog.getCommandNames()) {
      final WebRequestCommand<?, ?> command = (WebRequestCommand<?, ?>) commandService.getCommand(new CommandKey(catalogName, commandName));
      resources.getResource().add(command.createCommandResourceWadl());

      if (command.hasXmlSchema()) {
        final Resource resource = new Resource();
        resource.setPath(commandName + ".xsd");
        resources.getResource().add(resource);

        final Doc doc = new Doc();
        doc.getContent().add("The command's XML schema is returned");
        resource.getDoc().add(doc);
View Full Code Here

TOP

Related Classes of com.azaptree.wadl.Resources

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.