Package org.openrefine.commands.project
Class ImportProjectCommand
- java.lang.Object
-
- org.openrefine.commands.Command
-
- org.openrefine.commands.project.ImportProjectCommand
-
public class ImportProjectCommand 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 ImportProjectCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected long
importProject(InputStream inputStream, boolean decompress)
protected long
internalImport(javax.servlet.http.HttpServletRequest request, Properties options)
protected long
internalImportURL(String urlString)
-
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
- Overrides:
doPost
in classCommand
- Throws:
javax.servlet.ServletException
IOException
-
internalImport
protected long internalImport(javax.servlet.http.HttpServletRequest request, Properties options) throws Exception
- Throws:
Exception
-
internalImportURL
protected long internalImportURL(String urlString) throws Exception
- Throws:
Exception
-
importProject
protected long importProject(InputStream inputStream, boolean decompress) throws IOException
- Throws:
IOException
-
-