Package org.openrefine.commands.lang
Class LoadLanguageCommand
- java.lang.Object
-
- org.openrefine.commands.Command
-
- org.openrefine.commands.lang.LoadLanguageCommand
-
public class LoadLanguageCommand 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 LoadLanguageCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoGet(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 org.openrefine.commands.Command
addHistoryEntryAndRespond, doDelete, doPut, getEngine, getEngineConfig, getIntegerParameter, getLongParameter, getProject, getProjectMetadata, getSortingConfig, hasValidCSRFToken, hasValidCSRFTokenAsGET, init, logRequests, redirect, respondCSRFError, respondError, respondError, respondJSON, respondJSON, respondOK, respondWithErrorPage
-
-
-
-
Method Detail
-
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, IOExceptionPOST 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
-
-