Package org.openrefine.wikidata.commands
Class CommandUtilities
java.lang.Object
org.openrefine.wikidata.commands.CommandUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrespondError(javax.servlet.http.HttpServletResponse response, String errorMessage) Helper introduced to ease returning error messages from a response.
-
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 ofCommand: the respond method uses the "status" JSON key instead of the "code" one required by the JS code.- Parameters:
response-errorMessage-- Throws:
IOException
-