Package org.openrefine.wikidata.commands
Class PreviewWikibaseSchemaCommand
java.lang.Object
com.google.refine.commands.Command
org.openrefine.wikidata.commands.PreviewWikibaseSchemaCommand
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.refine.commands.Command
Command.HistoryEntryResponse -
Field Summary
Fields inherited from class com.google.refine.commands.Command
csrfFactory, logger, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoPost(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 com.google.refine.commands.Command
doDelete, doGet, doPut, getEngine, getEngineConfig, getIntegerParameter, getProject, getProjectMetadata, hasValidCSRFToken, hasValidCSRFTokenAsGET, init, logRequests, performProcessAndRespond, redirect, respond, respond, respondCSRFError, respondException, respondJSON, respondJSON, respondWithErrorPage
-
Constructor Details
-
PreviewWikibaseSchemaCommand
public PreviewWikibaseSchemaCommand()
-
-
Method Details
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException 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.- Overrides:
doPostin classCommand- Throws:
javax.servlet.ServletExceptionIOException
-