Package org.openrefine.commands.project
Class GetModelsCommand
- java.lang.Object
-
- org.openrefine.commands.Command
-
- org.openrefine.commands.project.GetModelsCommand
-
public class GetModelsCommand extends Command
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
GetModelsCommand.ModelsResponse
-
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 GetModelsCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
This command uses POST but is left CSRF-unprotected as it does not incur a state change.protected void
internalRespond(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
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
-
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 as it does not incur a state change.- Overrides:
doPost
in classCommand
- Throws:
javax.servlet.ServletException
IOException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
doGet
in classCommand
- Throws:
javax.servlet.ServletException
IOException
-
internalRespond
protected void internalRespond(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletException
IOException
-
-