Class DatabaseCommand
- java.lang.Object
-
- org.openrefine.commands.Command
-
- org.openrefine.extension.database.cmd.DatabaseCommand
-
- Direct Known Subclasses:
ConnectCommand
,ExecuteQueryCommand
,SavedConnectionCommand
,TestConnectCommand
,TestQueryCommand
public abstract class DatabaseCommand 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, servlet
-
-
Constructor Summary
Constructors Constructor Description DatabaseCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DatabaseConfiguration
getJdbcConfiguration(javax.servlet.http.HttpServletRequest request)
protected void
sendError(int status, javax.servlet.http.HttpServletResponse response, Exception e)
protected void
sendError(int status, javax.servlet.http.HttpServletResponse response, DatabaseServiceException e)
-
Methods inherited from class org.openrefine.commands.Command
addHistoryEntryAndRespond, doDelete, doGet, doPost, doPut, getEngine, getEngineConfig, getIntegerParameter, getLongParameter, getProject, getProjectMetadata, getSortingConfig, hasValidCSRFToken, hasValidCSRFTokenAsGET, init, logRequests, redirect, respondCSRFError, respondError, respondError, respondJSON, respondJSON, respondOK, respondWithErrorPage
-
-
-
-
Method Detail
-
getJdbcConfiguration
protected DatabaseConfiguration getJdbcConfiguration(javax.servlet.http.HttpServletRequest request)
- Parameters:
request
-- Returns:
-
sendError
protected void sendError(int status, javax.servlet.http.HttpServletResponse response, Exception e) throws IOException
- Parameters:
status
-response
-e
-- Throws:
IOException
-
sendError
protected void sendError(int status, javax.servlet.http.HttpServletResponse response, DatabaseServiceException e) throws IOException
- Parameters:
status
-response
-e
-- Throws:
IOException
-
-