Package com.google.refine.commands.lang
Class LoadLanguageCommand
java.lang.Object
com.google.refine.commands.Command
com.google.refine.commands.lang.LoadLanguageCommand
-
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 TypeMethodDescriptionvoiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) voiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) POST is supported but does not actually change any state so we do not add CSRF protection to it.Methods inherited from class com.google.refine.commands.Command
doDelete, doHead, doPut, getEngine, getEngineConfig, getIntegerParameter, getProject, getProjectMetadata, hasValidCSRFToken, hasValidCSRFTokenAsGET, init, logRequests, performProcessAndRespond, redirect, respond, respond, respondCSRFError, respondException, respondJSON, respondJSON, respondWithErrorPage
-
Constructor Details
-
LoadLanguageCommand
public LoadLanguageCommand()
-
-
Method Details
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - Overrides:
doGetin classCommand- Throws:
javax.servlet.ServletExceptionIOException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException POST is supported but does not actually change any state so we do not add CSRF protection to it. This ensures existing extensions will not have to be updated to add a CSRF token to their requests (2019-11-10)- Overrides:
doPostin classCommand- Throws:
javax.servlet.ServletExceptionIOException
-