Class GetModelsCommand
java.lang.Object
com.google.refine.commands.Command
com.google.refine.commands.project.GetModelsCommand
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.refine.commands.Command
Command.HistoryEntryResponse, Command.IllegalJsonpException -
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) This command uses POST but is left CSRF-unprotected as it does not incur a state change.protected voidinternalRespond(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Methods inherited from class com.google.refine.commands.Command
checkJSONP, doDelete, doHead, doPut, getEngine, getEngineConfig, getIntegerParameter, getParameters, getProject, getProjectMetadata, hasValidCSRFToken, hasValidCSRFTokenAsGET, init, logRequests, performProcessAndRespond, redirect, respond, respond, respondCodeError, respondCodeError, respondCodeError, respondCodePending, respondCSRFError, respondException, respondJSON, respondJSON, respondNoJsonpException, respondOkDone, respondStatus, respondStatusError, respondStatusErrors, respondStatusOk, respondStatusOk, respondWithErrorPage
-
Constructor Details
-
GetModelsCommand
public GetModelsCommand()
-
-
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 as it does not incur a state change.- Overrides:
doPostin classCommand- Throws:
javax.servlet.ServletExceptionIOException
-
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
-
internalRespond
protected void internalRespond(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletExceptionIOException
-