Package org.goobi.production.plugin.interfaces

Examples of org.goobi.production.plugin.interfaces.ICommandPlugin.help()


  private void generateHelp(HttpServletResponse resp) throws IOException {
    String allHelp = "";
    List<IPlugin> mycommands = PluginLoader.getPluginList(PluginType.Command);
    for (IPlugin iPlugin : mycommands) {
      ICommandPlugin icp = (ICommandPlugin) iPlugin;
      allHelp += "<h4>" + icp.help().getTitle() + "</h4>" + icp.help().getMessage() + "<br/><br/>";
    }
    generateAnswer(resp, 200, "Goobi Web API Help", allHelp);
  }

  private void generateAnswer(HttpServletResponse resp, int status, String title, String message) throws IOException {
View Full Code Here


  private void generateHelp(HttpServletResponse resp) throws IOException {
    String allHelp = "";
    List<IPlugin> mycommands = PluginLoader.getPluginList(PluginType.Command);
    for (IPlugin iPlugin : mycommands) {
      ICommandPlugin icp = (ICommandPlugin) iPlugin;
      allHelp += "<h4>" + icp.help().getTitle() + "</h4>" + icp.help().getMessage() + "<br/><br/>";
    }
    generateAnswer(resp, 200, "Goobi Web API Help", allHelp);
  }

  private void generateAnswer(HttpServletResponse resp, int status, String title, String message) throws IOException {
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.