Package org.openrefine.commands.expr
Class PreviewExpressionCommand
- java.lang.Object
-
- org.openrefine.commands.Command
-
- org.openrefine.commands.expr.PreviewExpressionCommand
-
public class PreviewExpressionCommand extends Command
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
PreviewExpressionCommand.ErrorMessage
protected static interface
PreviewExpressionCommand.ExpressionValue
protected static class
PreviewExpressionCommand.PreviewResult
protected static class
PreviewExpressionCommand.RowResult
protected static class
PreviewExpressionCommand.SuccessfulEvaluation
-
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 PreviewExpressionCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
The command uses POST but does not actually modify any state so it does not require CSRF.protected static PreviewExpressionCommand.RowResult
evaluate(Properties bindings, ColumnModel columnModel, IndexedRow indexedRow, Record record, String columnName, Cell cell, Map<String,OverlayModel> overlayModels, long projectId, Evaluable eval, boolean repeat, int repeatCount)
protected static void
writeValue(StringBuffer sb, Object v, boolean quote)
-
Methods inherited from class org.openrefine.commands.Command
addHistoryEntryAndRespond, doDelete, doGet, 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
The command uses POST but does not actually modify any state so it does not require CSRF.- Overrides:
doPost
in classCommand
- Throws:
javax.servlet.ServletException
IOException
-
evaluate
protected static PreviewExpressionCommand.RowResult evaluate(Properties bindings, ColumnModel columnModel, IndexedRow indexedRow, Record record, String columnName, Cell cell, Map<String,OverlayModel> overlayModels, long projectId, Evaluable eval, boolean repeat, int repeatCount)
-
writeValue
protected static void writeValue(StringBuffer sb, Object v, boolean quote)
-
-