Package com.google.refine.commands.row
Class GetRowsCommand
java.lang.Object
com.google.refine.commands.Command
com.google.refine.commands.row.GetRowsCommand
Retrieves rows from a project (or importing job).
Those rows can be requested as either: - the batch of rows starting at a given index (included), up to a certain size
- the batch of rows ending at a given index (excluded), again up to a given size. Filters (defined by facets) and the
row/record mode toggle can also be provided.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classprotected static classNested 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 accepts both POST and GET.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
-
GetRowsCommand
public GetRowsCommand()
-
-
Method Details
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException This command accepts both POST and GET. It is not CSRF-protected as it does not incur any 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
-