Class CommandUtilities

java.lang.Object
org.openrefine.wikidata.commands.CommandUtilities

public class CommandUtilities extends Object
  • Constructor Details

    • CommandUtilities

      public CommandUtilities()
  • Method Details

    • respondError

      public static void respondError(javax.servlet.http.HttpServletResponse response, String errorMessage) throws IOException
      Helper introduced to ease returning error messages from a response. Curiously this is not part of Command: the respond method uses the "status" JSON key instead of the "code" one required by the JS code.
      Parameters:
      response -
      errorMessage -
      Throws:
      IOException