Package org.openrefine.wikibase.commands
Class PreviewWikibaseSchemaCommand
- java.lang.Object
-
- org.openrefine.commands.Command
-
- org.openrefine.wikibase.commands.PreviewWikibaseSchemaCommand
-
public class PreviewWikibaseSchemaCommand extends Command
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openrefine.commands.Command
Command.HistoryEntryResponse
-
-
Field Summary
-
Fields inherited from class org.openrefine.commands.Command
csrfFactory, logger, servlet
-
-
Constructor Summary
Constructors Constructor Description PreviewWikibaseSchemaCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
This command uses POST but is left CSRF-unprotected since it does not incur a side effect or state change in the backend.-
Methods inherited from class org.openrefine.commands.Command
addHistoryEntryAndRespond, doDelete, doGet, doPut, getEngine, getEngineConfig, getIntegerParameter, getLongParameter, getProject, getProjectMetadata, getSortingConfig, hasValidCSRFToken, hasValidCSRFTokenAsGET, init, logRequests, redirect, respondCSRFError, respondError, respondError, respondJSON, respondJSON, respondOK, respondWithErrorPage
-
-
-
-
Method Detail
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
This command uses POST but is left CSRF-unprotected since it does not incur a side effect or state change in the backend. The reason why it uses POST is to make sure large schemas and engines can be passed as parameters.
-
-